How can I use Alex Gorbatchev`s Syntax Highlighter on content loaded after \'window\' emits \'load\' event? I am trying this way:
$.ajax({
url:
I`ve found the answer to my question in one of his examples:
$.ajax({
url: file,
success: function(code) {
$('.fileName').text(file);
var brush = new SyntaxHighlighter.brushes.JScript(),
html;
brush.init({ toolbar: false });
html = brush.getHtml(code);
document.getElementById('source').innerHTML = html;
}
});