WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Philipp15b
    Member
    Posted 2 years 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();

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic