Skip to content

Patch main haxe grammar to get xml syntax highlighting in strings

License

Notifications You must be signed in to change notification settings

jeremyfa/haxe-xmlgrammar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Patch main haxe grammar to get xml syntax highlighting in strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages