crowdfavorite / wp-capsule

The developer's code journal (built on WordPress)
https://crowdfavorite.com/capsule/
GNU General Public License v2.0
172 stars 27 forks source link

LESS syntax highlighting issues #32

Closed curtismchale closed 11 years ago

curtismchale commented 11 years ago

LESS syntax doesn't highlight properly and the 'code' comments don't start break appropriately.

screen shot 2013-07-08 at 11 35 57 am

Here is the markup I was using inside capsule.

https://gist.github.com/curtismchale/5951318

alexkingorg commented 11 years ago

If you'd like to submit LESS syntax highlighting as a patch we'd certainly look at adding it.

curtismchale commented 11 years ago

I can take a stab at that sure. I took a quick poke around at it looks like I'd actually submit that over on https://github.com/crowdfavorite/wp-capsule-ui correct?

alexkingorg commented 11 years ago

That's correct - most of the highlighting comes from Ace

https://github.com/ajaxorg/ace

Looks like there is LESS support there already:

https://github.com/ajaxorg/ace/tree/master/lib/ace/mode

So it should be just a matter of adding that language to Capsule.

curtismchale commented 11 years ago

LESS highlighting actually does work. the issue was with my content which I found as I was trying to reduce the test case and start a patch.