WoWDevelopment
World of Warcraft syntax highlight, auto-completion and global finder/highlighter for Sublime Text 2/3/4.
Details
Installs
- Total 1K
- Win 910
- Mac 130
- Linux 49
Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
WoWDevelopment
World of Warcraft syntax highlight, auto-completion and global finder/highlighter for Sublime Text 2/3.
Features:
- Full API syntax highlighting for lua, xml and toc files.
- Highlight removed/deprecated events.
- Context based autocompletion support for the whole WoW API with multi-line support.
- Global finder build system, which finds any global variables with detailed information for the current lua file.
- Global highlighter and liter tool with SublimeLinter.
Installation:
- Download the package, unzip it then remove the -master suffix, and copy the folder into your Sublime Text 2/3 Packages folder. You can also install it from the Sublime Package Control.
- Open any of the supported file and set the syntax for the selected file: WoWDevelopment -> WoW Lua, WoW TOC, WoW XML.
- Recommended to delete these default Sublime Lua files to avoid conflicts:
- Recommended autocompletion settings in Sublime Preferences -> Settings :
“auto_complete”: true,
“auto_complete_commit_on_tab”: true,
“auto_complete_cycle”: true,
“auto_complete_selector”: “meta.tag, source - comment”,
“auto_complete_with_fields”: true,
List globals with a build system in the console window with detailed information:
- In Sublime Tools -> Build System -> Select Wow Global Finder.
- Ctrl+B to run the system.
# Adding globals to ignore for the build system: * Add a commented line in the lua file and list the globals with commas: – GLOBALS: math, string, table
How to highlight globals with Sublime Linter:
- First install the SublimeLinter package.
- Then add the path to luacheck.exe to your system PATH table, or to the paths/windows setting in the Sublime Linter settings: “c:\Users\UserName\AppData\Roaming\Sublime Text 3\Packages\WoWDevelopment\WoW Global Finder\”
- Add “wow lua”: “lua”, to the syntax_map in the SublimeLinter settings.
- In Sublime Tools -> SublimeLinter -> Toggle Linter then enable globalfinder and disable any other installed linters.
- Restart Sublime.
# Adding globals to ignore for luacheck in Sublime Linter: * Add a commented line in the lua file and list the globals without commas: – luacheck: globals math string table
Ignored globals: * Global Functions: Reference\API Reference\API Reference (blizzard).sublime-completions.txt * Global Booleans: Reference\Global Reference\Global Booleans.sublime-completions.txt * Global Numbers: Reference\Global Reference\Global Numbers.sublime-completions.txt * Global Strings: Reference\Global Reference\Global Strings.sublime-completions.txt
If you would like to enable autocomplete for these, just change the .txt extension to: .sublime-completions.
Update:
Currently had I to roll back to using .sublime-snippet files instead of .sublime-autocomplete ones, since Sublime Text currently has mutiple issues if any autocomplete files gets loaded for your current syntax. Hopefully it's gonna be fixed soon, and I can go back for autocomplete files to reduce the clutter.
Until then if you have any .sublime-completions file loaded for a syntax, then your buffer competions won't get shown up, and the fuzzy search for the completions brings up a lot more irrelevant hits, since it's also searing in the trigger descriptions.
Initially forked from and based on fRodzet's original work, and used Layback_'s, Vendethiel's and Yuyuli's help to extend it.