ZigBrains
ZigBrains copied to clipboard
Zmpl integration
Hi, at the request of this reddit comment I am checking to see how feasible it would be to add Zmpl (templating language for Jetzig) to ZigBrains.
I have a feeling ZLS integration would be needed first so please feel free to close this issue if that's the only required step.
Thanks in advance !
For the time being, you can import the vscode zmpl syntax highlighting into intellij pretty easily, you just need to:
- make sure you have the
TextMate Bundles
plugin enabled in intellij - download the https://github.com/z1fire/zmpl-syntax-highlighting-vscode repo, and extract it into a directory
- go to
Editor -> TextMate Bundles
, click on the plus symbol, and select the directory that contains the zmpl syntax highlighting's package.json file - once you click OK,
zmpl
should appear in the TextMate Bundles list, and you should have basic syntax highlighting in zmpl files
I won't be able to add any of the deeply integrated features (go to definition, etc.) without native ZLS support unfortunately, so anything i implemented in ZigBrains would be almost functionally equivalent to doing it with TextMate bundles.
Keep this issue open for now and bump it when the ZLS team starts working on adding zmpl support.
I'm also open to pull requests if someone else is willing to work on it, as I don't really do web development, so I don't have a lot of motivation to spend a lot of time integrating and debugging this.
@FalsePattern Thanks a lot for the quick and informative response - I'll pick up with the ZLS author, it's been on my TODO list for a while. Enjoy the rest of your weekend !