Skip to content

jwortmann/ini-syntax

Repository files navigation

INI Syntax

License Version GitHub Actions

A package for Sublime Text that provides syntax highlighting for INI and related file types like Windows Registry (.reg) files.

Installation

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.

Customization

Comment toggling

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):

{
    "keys": ["ctrl+/"],  // or ["super+forward_slash"] on macOS
    "command": "toggle_comment",
    "args": {"block": false, "variant": 2},
    "context": [{"key": "selector", "operand": "source.ini"}]
},

About

Syntax highlighting for INI and REG files in Sublime Text

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages