Masiar
unread,Nov 1, 2011, 6:10:17 PM11/1/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to syntaxhighlighter
Hi all,
I have a stream of data, so to speak, in a way that my JavaScript
refreshes the content of the div containing some piece of code every
now and then. The first time the code snippet is loaded the syntax
highlighter does it's job, but from the second on, I can only see the
piece of code but no highlighting.
I'm filling the div with a simple innerHTML from the div object. Then
I also tried to call SyntaxHighlighter.all(); but the code is not
highlighted anymore.
Is there a function that "refreshes" the highlighter in a way that
does again the highlighting on the new piece of code loaded into the
div?
Thanks,
Masiar