How about use highlightjs for code highlight?
-
link: http://highlightjs.readthedocs.org/en/latest/building-testing.html
I just found this support build for node and has supported
swift
, so can we just use this to highlight code?I think this is better, it can build for special languages, so maybe we could make a plugin to make code highlight more flexible.
I'm going to write a plugin to support
swift
, but I don't know what's the best solution. Hope for your advice -
Actually, the markdown plugin did use highlightjs before, and I switched to pygments because highlightjs would choke on very large snippets of code (I believe it was a Varnish script)...
If you dig around in the plugin commit history, you can see the code for highlightjs, possibly
-
@julian said:
Nagios
Thanks, I think if I just enable
swift
highlight that problem maybe will not happen. If it still happened, i'll report a bug to highlightjs. It's repository is very active, I think they will fix that bug soon.I want to have a try on
highlightjs
, so where can I find yourhighlightjs
version plugin? Thanks !By the way, I just found the latest compiled pygments, but I still don't know how to make this work. https://github.com/tmm1/pygments.rb