SimpleSyntax
Comment syntax for config files
Details
Installs
- Total 630
- Win 357
- Mac 92
- Linux 181
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SimpleSyntax
This Sublime Text 3 package contains 4 simple syntax files. They only highlight and enable comments and is intended for use with configuration files.
Symbols
Another feature of SimpleSyntax is the possibility to add symbols/sections in your file. This is done by creating a comment where the first three characters are >>
followed by an optional string. Then you can use Sublime Text's built in function to goto symbol (default keybinding is: ctrl+r
).
Enabling the syntax
It is up to the user to enable the syntax, since many config files have the same name, but might have different comment types it is hard to do this by filename. Personally i use the package, ApplySyntax with the following preferences:
If installed manually:
"syntaxes":
[
{
"syntax": "ssSemi/ssSemi",
"rules": [{"contains": "syntax:ssSemi"} ]
},
{
"syntax": "ssExcla/ssExcla",
"rules": [{"contains": "syntax:ssExcla"} ]
},
{
"syntax": "ssHash/ssHash",
"rules": [{"contains": "syntax:ssHash"} ]
},
{
"syntax": "ssDslash/ssDslash",
"rules": [{"contains": "syntax:ssDslash"} ]
}
]
If installed through package control:
"syntaxes":
[
{
"syntax": "SimpleSyntax/ssSemi",
"rules": [{"contains": "syntax:ssSemi"} ]
},
{
"syntax": "SimpleSyntax/ssExcla",
"rules": [{"contains": "syntax:ssExcla"} ]
},
{
"syntax": "SimpleSyntax/ssHash",
"rules": [{"contains": "syntax:ssHash"} ]
},
{
"syntax": "SimpleSyntax/ssDslash",
"rules": [{"contains": "syntax:ssDslash"} ]
}
]
And a comment in the settings file that look something like this:
# syntax:ssHash
License
MIT License