SimpleSyntax
Comment syntax for config files
Details
Installs
- Total 637
- Win 361
- Mac 95
- Linux 181
Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 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 | 0 | 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