I am using Problem in bitbucket repository
This seems like a solution, but when I use the unpacked shCore.js file from the repository, my IDE points to a syntax error and I get javascript errors when I try to run it anyway.
Another solution that I found in several answers on other similar Stack Overflow posts is to use SyntaxHighlighter.highlight () instead of .all () after the page loads. However, this does not work.
The function I use:
function loadSyntaxHighLighter() {
SyntaxHighlighter.autoloader(
'ahk ' + app.assets + 'js/syntaxhighlighter/brushes/shBrushAhk.js',
'aps ' + app.assets + 'js/syntaxhighlighter/brushes/shBrushAppleScript.js'
);
SyntaxHighlighter.defaults['toolbar'] = false;
if (SyntaxHighlighter != 'undefined') {
SyntaxHighlighter.highlight();
} else {
SyntaxHighlighter.all();
}
}
Does anyone know how to fix this? (Or can someone tell me how I can make the change suggested on the bitbucket)
thank