SimpleSyntax
Comment syntax for config files
Details
Installs
- Total 633
- Win 360
- Mac 92
- Linux 181
Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 | 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