There is a site with ajax navigation and prismjs code highlighting , below 2 screenshots with and without loading with ajax , the problem is that with ajax it doesn’t highlight the code.

http://i.stack.imgur.com/c5NjW.png http://i.stack.imgur.com/YF7K6.png

    1 answer 1

    prismjs need to be called when the html is loaded. If you change html pages during ajax navigation, you need to call Prism.highlightElement(node) again. Here is an example of how I use this library with react.

    • Prism.highlightAll () did so - Red Woolf