Browse Source

Add config for package control installation

pull/1/head
Unai 2 years ago
committed by GitHub
parent
commit
232a782841
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions
  1. +26
    -0
      README.md

+ 26
- 0
README.md View File

@@ -10,6 +10,8 @@ Another feature of **SimpleSyntax** is the possibility to add symbols/sections i

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](http://facelessuser.github.io/ApplySyntax/) with the following preferences:

If installed manually:

``` json
"syntaxes":
[
@@ -32,6 +34,30 @@ It is up to the user to enable the syntax, since many config files have the same
]
```

If installed through package control:

``` json
"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`



Loading…
Cancel
Save