markwatkinson / luminous

Accurate and powerful syntax highlighting library
http://luminous.asgaard.co.uk
GNU Lesser General Public License v2.1
50 stars 5 forks source link

WordPress Plugin #25

Open jasondavis opened 11 years ago

jasondavis commented 11 years ago

I am really thankful for this project, I currently use the RainbowJS syntax highlighter on my WordPress sites, it is lightweight and fast but I have always preferred a NICE/GOOD backend syntax highlighter in PHP. I had tried GESHI before but it does not highlight a lot of things that the other highlighters do and it seems really bloated and not put together well.

If anyone has the time, this would be a great highlighter to create a WordPress plugin with

markwatkinson commented 11 years ago

Unfortunately from what I can tell, lightweight and good are incompatible aims for syntax highlighters :)

I don't use Wordpress and don't know much about developing for it so I'll have to leave this open in the hope that someone else picks it up, but it would be great to see one.

It seems to me that the difficult part of this is unrelated to the highlighting per se, and instead relates to making the code block syntax fit neatly within the entry's text while avoiding any problems with the rich text editor. I wonder if these problems have been solved well by any other highlighting plugins (I'm sure there are at least a few using GeSHi), and, license permitting, might be adapted to use Luminous.

dcblogdev commented 11 years ago

I've created a Wordpress plugin I've left the original luminous files intact, I'll issues a pull request in the meantime you can see it at https://github.com/daveismyname/luminous