-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax highlighting support with highlight.js or similar #175
Comments
It looks like highlightjs is pretty simple to support, looking over the pull-requests there to see an example of adding syntax highlighting for a new thing: You'd only need identifiers, and our keywords ("case", "default", .. "true", "while"). I guess catching strings, and numbers would be nice too. I could have a stab at it, though I'm not sure how likely it would be to be accepted. |
I've hacked up a quick demo, and it seems to work. I'll past the code into this issue once I'm happier, and submit a PR to the original project.
|
Pull-request opened, we'll see how well I did: You can take the |
This pull-request adds a simple highlight.js-helper for syntax highlighting of evalfilter code. This closes #175.
Turns out they're too busy to accept/maintain new languages in the highlight.js project, so I've added a snippet beneath Hope that's enough. |
Thanks for the quick turn around. The |
How much work would it be to have syntax highlighting support using something like https://highlightjs.org/?
The text was updated successfully, but these errors were encountered: