-
Notifications
You must be signed in to change notification settings - Fork 31
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 highlight improvements #5
Comments
I ran into the same problem with pygments in my highlighter readarepo-zip. In there I currently use sockets to have one long running python highlighter communicating with nodejs which is more efficient than firing up a process each time. I created node-syntaxhighlighter to make things less complicated, but am still not entirely happy (pygments looks so much nicer). Therefore I'm committed to make talking to pygments from a JavaScript process very efficient without much hassle (talking via stdin/stout). I just created pygmentsjs and hopefully will have something useable by the end of this weekend. You should probably watch the repo in order to stay updated. It will expose a very simple api like node-syntaxhighlighter and you could consider swapping pygmentsjs in later and/or using it as another option. Cheers. |
First issue got addressed by #6, the other two are still open. Clarified the last one. |
First and last issue resolved, highlighting code within scripts should be possible now that thlorenz/node-syntaxhighlighter#2 is fixed? |
prismjs seems to have a nice theme, already supports highlighting inline scripts, but isn't in npm yet: PrismJS/prism#12 |
@ajpiano it looks like scripts-inside-html highlighting stil doesn't work, while thlorenz/node-syntaxhighlighter#2 is supposed to be fixed. What are we missing? |
I don't know why it isn't working, this is why I've been pursuing highlightjs. |
I've pushed my initial work inserting highlightjs to this highlightjs-experimentation branch. Please use this in tandem with the corresponding branch on web-base-template, which provides the styles. There are a few issues that I can mention up that need addressing
|
The text was updated successfully, but these errors were encountered: