edit: I should mention that this might be a cool example for someone looking to use hljs in React/Flux-- I tried to make it fairly clean. There's a github link on the bottom-left of the website.
Highlight.js – Syntax highlighting for the Web
21–30 of 72 posts
Re: Highlight.js – Syntax highlighting for the Web
#22We use highlight.js at Resonant Core for our blog posts. After reading the comments here, I'm considering forking it to support line numbers :)
A lot of events record the presenters screen and the presenter but expect the presenter to stand in one spot so they don't need a cameraman.
So, it does not work very well to point at a screen when presenting.
Re: Highlight.js – Syntax highlighting for the Web
#23Is this news? I've been using this for quite a while.
Re: Highlight.js – Syntax highlighting for the Web
#24It should be mentioned that this does not support and will indeed never support line numbers due to some strange opinions of the lead developer: http://highlightjs.readthedocs.org/en/latest/line-numbers.ht...
Is line numbers considered "highlighting"? I mean, I get why you would want it but I never would have thought to ask for it.
Re: Highlight.js – Syntax highlighting for the Web
#25It should be mentioned that this does not support and will indeed never support line numbers due to some strange opinions of the lead developer: http://highlightjs.readthedocs.org/en/latest/line-numbers.ht...
Re: Highlight.js – Syntax highlighting for the Web
#26We use highlight.js at Resonant Core for our blog posts. After reading the comments here, I'm considering forking it to support line numbers :)
It would be really helpful when presenting at Events. A lot of events record the presenters screen and the presenter but expect the presenter to stand in one spot so they don't need a cameraman. So, it does not work very well to point at a screen when presenting.
Re: Highlight.js – Syntax highlighting for the Web
#27These syntax highlighters are great but I think that underlie the lack of a defined and accessible AST parse definition for most languages. Highlight.js and others kind of just rely regexes-- https://github.com/isagalaev/highlight.js/blob/master/src/la...
It'd be great if we could parse through programming languages to get their meaning. I want to get tuples back!
``` a = 23 ``` would give
(variable(name=a), assignedTo, number(23))
This does exist for some languages, but mostly compiled ones. But it would make the syntax highlighting even more robust! Antlr is the best one around at the moment. http://www.antlr.org/
Re: Highlight.js – Syntax highlighting for the Web
#28Planning to open source an http API (similar to http://markup.su/highlighter).
Re: Highlight.js – Syntax highlighting for the Web
#29It should be mentioned that this does not support and will indeed never support line numbers due to some strange opinions of the lead developer: http://highlightjs.readthedocs.org/en/latest/line-numbers.ht...
Re: Highlight.js – Syntax highlighting for the Web
#30It should be mentioned that this does not support and will indeed never support line numbers due to some strange opinions of the lead developer: http://highlightjs.readthedocs.org/en/latest/line-numbers.ht...