SyntaxHighlighter - Call SyntaxHighlighter.all() to highlight dynamically generated XML

萝らか妹 提交于 2019-12-06 11:48:50

The solution is to use highlight() instead of all().

Here is a JSFiddle, note that external resources are used: http://jsfiddle.net/menelaosbgr/TXzZH/

Understood. I was hoping to get an answer that would also support the newer version. Either way the jsfiddle is broken so at least adding a comment mentioning version might be helpful.

Thanks for the reply.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!