I am able to solve the first issue. I needed to add checks in map.tpl instead of relying upon pure client-side JS solution.
How about use highlightjs for code highlight?
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 Thanks, by the way, how much line codes will cause choke? 1000 or?
Correction: It was a Nagios script:
Thanks, I think if I just enable
swifthighlight 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 your
highlightjsversion 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