xmlgrammar

Patch main haxe grammar to get xml syntax highlighting in strings
https://github.com/jeremyfa/haxe-xmlgrammar

To install, run:

haxelib install xmlgrammar 0.1.2 

See using Haxelib in Haxelib documentation for more information.

README.md

xmlgrammar

Patch main haxe grammar to get xml syntax highlighting in strings.

This utility fetched main haxe grammar file and patches it to provide syntax coloring of xml tags in single-quoted strings (see preview below).

preview of haxe xmlgrammar

How to use

First of all, install the utility with haxelib install xmlgrammar.

Output patched grammar in YAML format

haxelib run xmlgrammar --yaml

Output patched grammar in PLIST format

haxelib run xmlgrammar --plist

Patch Visual Studio Code extension (vshaxe)

This command will detect your installed version of vshaxe and patch its haxe grammar file. Simply restarting Visual Studio Code after the patch should make xml syntax highlighting work.

haxelib run xmlgrammar --vscode

On windows, detection of your Visual Studio Code extensions directory is not supported yet, but you could provide your extension directory with --vscode-ext-path %USERPROFILE%\.vscode\extensions. --vscode-ext-path option can also be used if you want to patch a non-standard vscode extension path.

haxelib run xmlgrammar --vscode --vscode-ext-path 'path/to/your/.vscode/extensions'
Contributors
jeremyfa
Version
0.1.2
Published
7 years ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub