Morrowind script syntax for Sublime Text
----------------------------------------
Features:
- syntax higlighting
- 4 color schemes (VS Dark, Obsidian, Obsidian Light, Obsidian Dark)
- autocompletions
- autoindentation
- symbols support
----------------------------------------
Usage
Extract the `Sublime Text\MWScript` folder in the packages folder (usually `~\AppData\Roaming\Sublime Text 3\Packages\MWScript`).
Load a script or start a new one, and assign the MWScript syntax. `te3` extension is automatically assigned to the syntax.
----------------------------------------
Syntax higlighting
All functions from MWSE/MGE + alpha/MGE-XE are supported.
Colors are: regular functions, MWSE/MGE, MWSE alpha/MGE-XE.
----------------------------------------
Color schemes
After you assign the syntax MWScript to a file, open `Preferences -> Settings - Syntax Specific` and add one of the following:
"color_scheme": "Packages/MWScript/MWScript (VS Dark).hidden-tmTheme",
"color_scheme": "Packages/MWScript/MWScript (Obsidian).hidden-tmTheme",
"color_scheme": "Packages/MWScript/MWScript (Obsidian Dark).hidden-tmTheme",
"color_scheme": "Packages/MWScript/MWScript (Obsidian Light).hidden-tmTheme",
This is needed for syntax highlighting.
----------------------------------------
Autocompletions with fields
Press ctrl+spacebar to have a list of available completions when syntax is applied. Fields are supported for certain completions(press `tab` to change field).
----------------------------------------
Symbols support
Symbols are used for the `go to symbol in project` command in Sublime Text, since there are no functions, they are defined as `;#`, that is a semicolon(begin of comment) plus #. If you then use `go to symbol in project` command, you'll jump to that symbol.