-
Notifications
You must be signed in to change notification settings - Fork 0
Home
- Install PlistJsonConverter
- Create a new file with the following content
{
"name": "Syntax Name",
"scopeName": "source.syntax_name",
"fileTypes": [""],
"patterns": [],
"uuid": ""
}
- name - Syntax name used for identification
- scopeName - Scope to be applied to the entire view .
- Generally something like
source.java. However, if not source code, may use something liketext.plain
- Generally something like
- fileTypes - Files or extensions used to automatically apply this syntax.
- Generally something like
*.java
- Generally something like
- patters - Patterns to apply scopes to. This effects syntax highlighting.
- uuid - Identifier for the syntax file. Can be generated in the ST console using the following commands.
import uuid
uuid.uuid4()
ST configuration is managed through JSON files. If you are unfamiliar with JSON and plan to use ST, it is worthwhile to obtain a level of understanding of JSON. When there is malformed JSON, ST may fail to load. However, it will likely prompt with the offending file. Be sure this file has valid syntax. If there are problems restarting ST after fixing the error, be sure the process has actually terminated. A bug in ST causes it to remain running, even after a failure occurs.
- OS X: ~/Library/Application Support/Sublime Text 2/Packages/
- Windows: %APPDATA%/Sublime Text 2/Packages/
- Linux: ~/.config/sublime-text-2/Packages/
or
- OS X: ~/Library/Application Support/Sublime Text 3/Packages/
- Windows: %APPDATA%/Sublime Text 3/Packages/
- Linux: ~/.config/sublime-text-3/Packages/
Note in ST3, packages can be run directly from *.sublime-package files. These are renamed zips. It is possible to override specific files in *.sublime-package by creating a folder with the appropriate name in the Packages folder. Ensure the file you create has the same name as the file you are trying to override. To make this easier, you may also use PackageResourceViewer.