-
Notifications
You must be signed in to change notification settings - Fork 434
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 #5
Comments
@fredsted have you thought about how you'd like this to be implemented? This is something I might have a go at this weekend. |
@micsco I've been thing of using an editor component like Ace as was suggested, as a bonus I think it also supports other formats like XML which would be really handy. Not sure how well it fits with the existing Angular app, it's not very well written right now so might have to move some things around for something like Ace to fit in. |
What about something like PrismJS? It's not an editor, but I'm not sure there are editing needs for webhooks? |
Another option is HighlightJS. |
I wonder if there's any package that can do formatting as well? Couldn't find anything about it on the PrismJS or HighlightJS website. Right now there's only JSON formatting, but lots of users also post XML to Webhook.site. Something that could auto-pretty print various formats would be neat. |
Looks like we may have to add formatting for XML separately. I'll create a ticket to track it. |
I've created #60 to track XML formatting/pretty printing. |
Basic syntax highlighting for various languages:
Decide on which library to use:
https://highlightjs.org
http://prismjs.com
The text was updated successfully, but these errors were encountered: