I'm building a Seaside application and I'm searching for a way to highlight some code snippets on the browser with JS. I found highlight.js which support Smalltalk syntax but it doesn't work. I add this script and hljs.initHighlightingOnLoad(); in the header but it doesn't work.
Probably I miss something but what?
I use highlight.js from CDN:
I also define a format function like:
and use
for highlightable block. Then I call
format()
when the page is loaded (or a dynamic content with code is loaded into page)