Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 1.78 KB

README.md

File metadata and controls

77 lines (61 loc) · 1.78 KB

Sublime-ManiaScript

ManiaScript syntax highlighting and autocompletion for Sublime Text 2 and 3.

This is a fork of the repo ST2-ManiaScript

Installation

Primary method

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.

Alternative method

  • Install Package Control
  • Install the package ManiaScript
  • Restart SublimeText 2 or 3
  • Enjoy!

Content

Updated Syntax Coloring & Autocompletion

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

Snippets

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 ...)`

Contribution

Thanks first to Tgys for the first version of this syntax.

Please feel free to comment, suggest, stab, pull request and fork.