Skip to content

ManiaScript syntax highlighting and autocompletion for Sublime Text 2 & 3

Notifications You must be signed in to change notification settings

PRGfx/sublime-maniascript

 
 

Repository files navigation

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.

About

ManiaScript syntax highlighting and autocompletion for Sublime Text 2 & 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%