Hodges |
|
---|---|
Hi Trustmaster, I was looking at this page http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/ that offers custom brushes for syntaxhighligter outside the standard set. How would I include these extra brushes into your plugin? At the moment the default brushes are all merged together in syntaxhighlighter/lib/scripts/shAll.min.js. For example if I wanted to add shBrushLatex.js could this be appended into line 25 of syntaxhighlighter/syntaxhighlighter.footer.php, for example? Thanks, |
Macik |
|
||||
---|---|---|---|---|---|
As I remember… not. You can not just add addition styles this way. To add it you must do these steps:
Replace:
With something like this (I'm not check the actual code):
We load 2 files (shCore.js, shAutoloader.js) instead of `shAll.min.js` Any way, look at doc for autoloader — http://alexgorbatchev.com/SyntaxHighlighter/manual/api/autoloader.html
https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
|||||
Dit bericht is bewerkt door Macik (2014-05-02 16:33, 11 jaren ago) |