aramk / crayon-syntax-highlighter

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
https://wordpress.org/plugins/crayon-syntax-highlighter/
GNU General Public License v3.0
1.1k stars 250 forks source link

JavaScript version #117

Open greduan opened 10 years ago

greduan commented 10 years ago

I have been getting into Node.js recently and I have found it to be great, especially DocPad which is great for static website generators.

So my question is, are there any plans to implement this into Node.js/JavaScript?

The idea would be to highlight the code with spans and then use CSS to highlight those spans. Or something along those lines.

aramk commented 10 years ago

This sounds like a great idea. I switched my site from Wordpress to Jekyll so had the same idea of using Crayon on the js frontend. Instead of generate it statically however (or necessarily) I've started work on https://github.com/aramkocharyan/crayon.js. At the moment I don't really have time to work on it, but at some point it'll be ready to use as a jquery plugin and remove the need for a server completely.

greduan commented 10 years ago

Excellent! I'll stick with Highlight.js while I wait patiently. :)

And I forgot to say, while I did mention a Node.js version where the code recognition runs on the server, a version that runs everything client-side would be nice as well.

While you're on Jekyll, before you finish your website, you might want to look into DocPad sorta like Jekyll but much more powerful. :)

aramk commented 10 years ago

Awesome, thanks I'll check it out.

On 30 August 2013 22:53, Eduán Lávaque notifications@github.com wrote:

Excellent! I'll stick with Highlight.js while I wait patiently. :)

And I forgot to say, while I did mention a Node.js version where the code recognition runs on the server, a version that runs everything client-side would be nice as well.

While you're on Jekyll, before you finish your website, you might want to look into DocPad http://docpad.org/ sorta like Jekyll but much more powerful. :)

— Reply to this email directly or view it on GitHubhttps://github.com/aramkocharyan/crayon-syntax-highlighter/issues/117#issuecomment-23558891 .