This is a small syntax highlighting extention for the Wesnoth Markup Language (WML). It is used to create addons for Battle for Wesnoth.
Please use the WML color theme to get the best results!
is an open source, turn-based strategy game with a high fantasy theme. It features both singleplayer and online/hotseat multiplayer combat.
- Install a Java runtime (JRE), like from here.
- Uninstall previous version and install the VSIX extension from this repo (available from latest CI runs, check Actions tab above).
- Open an Addon folder with a valid
_main.cfgvia the Open Folder VSCode option. Enter Wesnoth gamedata path and userdata path in the prompt after you install it. - That's it. You will get success indication like this:
- Go To Definition for WML macro calls.
- Hover info for WML macro calls.
- Completion for macro directives and macro calls.
- Hover info for WML paths. Show image preview if path is image.
- Completion for tag names.
- Shows help page link for tag names on hover.
- Preliminary Wesnoth path autocomplete. (Triggered by '/')
- Wesnoth Unit Type ids autocomplete. (Triggered by '=')
Note: this is still very much a prototype. Please be forgiving and report any errors you come across. A log is usually available in Output tab in VSCode under WML LSP Server category.
LSP support in conjunction with my LSP4j based LSP server here.
- fixed typo in name :blushing:
- added \# po:
- added #ifhave
- added #ifnhave
- better auto indentation
- added automatic indent after opening tags and automatic deindent of closing tags
- fixed comments without a blank between # and text not recognized
- added #arg
- added #ifnver
- added #warning
- added #error
- added # wmllint:
- added # wmlindent:
- added # wmlscope:
- numerics and booleans are bold
Initial release of WMl Syntax Highlighting Support