How can I use Alex Gorbatchev`s Syntax Highlighter on content loaded after 'window' emits 'load' event? I am trying this way:
$.ajax({
url: file,
success: function(data) {
$('.fileName').text(file);
$('#fileSource > pre').text(data);
SyntaxHighlighter.all();
}
});
... but it is not working. I need to mention that the ajax call can occure at any time after the page loads.
Regards