A package for Sublime Text that provides syntax highlighting for INI and related file types like Windows Registry (.reg) files.
The package can be installed via Sublime Text's package manager Package Control. From the command palette choose Package Control: Install Package and search for INI.
The default character for the "toggle comment" functionality (Ctrl+/ on Windows/Linux or ⌘+/ on macOS) in INI files is a semicolon.
It can be changed to #
by adding a custom key binding with a "variant": 2
argument for the toggle_comment
command (this requires Sublime Text build 4130 or later):