Forums

SyntaxHighlighter Evolved
[resolved] Highlight again when new content is loaded via AJAX (1 post)

  1. Philipp15b
    Member
    Posted 9 months ago #

    Hello,

    I´m using AJAX in my theme and the problem is that when new content with code is loaded, the SyntaxHighlighter does not highlight it. I have tried

    SyntaxHighlighter.all()

    but nothing happens...

    Edit: I have found the method that highlights directly without waiting for the load event:

    SyntaxHighlighter.highlight();

Reply

You must log in to post.

About this Plugin

About this Topic