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