SyntaxHighlighter 3.0.83 after AJAX call "Can't find brush for: BRUSH" fix
After implementing pagination on my website, I was not able to highlight the code with SyntaxHighliter plugin. After AJAX call script was throwing an error: "Can't find brush for: BRUSH". After little research I found reported bug and temporary solution...
This fix is works for me and I think it can be helpful to share with others this experience. I made this fix in plugin source code, combine shCore.js, shAutoloader.js and XRegExp.js files into one, minify and compress it with YUICompressor.
If you need it, you can download it from my weblog.
One more thing I want to mention – if you are using Autoloader function for loading brushes you should call it after each AJAX call (off cause if you need to highlight something after). Example:
Join the discussion