ManiaScript syntax highlighting and autocompletion for Sublime Text 2 and 3.
This is a fork of the repo ST2-ManiaScript
In Sublime Text 2, open the menu Preferences -> Browse Packages...
then create the folder ManiaScript and copy-paste the files ManiaScript.tmLanguage
and ManiaScript.sublime-completions
in there.
- Install Package Control
- Install the package
ManiaScript
- Restart SublimeText 2 or 3
- Enjoy!
ManiaScript.tmLanguage
ManiaScript.sublime-completions
These files define a language grammar for syntax highlighting ManiaScript files. You'll get the following:
- SublimeText will automatically load this syntax when you'll open a .Script.txt file
- Highlight most of the ManiaScript classes/enums/variables
- You can autocomplete some ManiaScript functions and classes
Snippet | Trigger | Output |
---|---|---|
#Include frame | Include | `#Include "..." as ...` |
declare | dec | `declare ... ...;` |
declare persistent | dec:p | `declare persistent ... ... for ...;` |
function | fun | ```... ... (...) { ... }``` |
cast | via strg+shift+p | `( as ...)` |
Thanks first to Tgys for the first version of this syntax.
Please feel free to comment, suggest, stab, pull request and fork.