|
2 years ago | |
---|---|---|
DquoteComments.tmPreferences | 2 years ago | |
DslashComments.tmPreferences | 3 years ago | |
ExclaComments.tmPreferences | 3 years ago | |
HashComments.tmPreferences | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 2 years ago | |
SemiComments.tmPreferences | 3 years ago | |
messages.json | 3 years ago | |
ssDquote.sublime-syntax | 2 years ago | |
ssDquote.tmLanguage | 2 years ago | |
ssDquote.tmPreferences | 2 years ago | |
ssDslash.sublime-syntax | 3 years ago | |
ssDslash.tmLanguage | 3 years ago | |
ssDslashsymbols.tmPreferences | 3 years ago | |
ssExcla.sublime-syntax | 3 years ago | |
ssExcla.tmLanguage | 3 years ago | |
ssExclasymbols.tmPreferences | 3 years ago | |
ssHash.sublime-syntax | 3 years ago | |
ssHash.tmLanguage | 3 years ago | |
ssHashsymbols.tmPreferences | 3 years ago | |
ssSemi.sublime-syntax | 3 years ago | |
ssSemi.tmLanguage | 3 years ago | |
ssSemisymbols.tmPreferences | 3 years ago |
This Sublime Text 3 package contains 4 simple syntax files. They only highlight and enable comments and is intended for use with configuration files.
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
).
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
MIT License