Download the Wordpress plugin from: http://wordpress.org/plugins/wp-syntaxhighlighter/ As of the date of this answer, the most recent version was
wp-syntaxhighlighter.1.7.3.zip
Extract the
*.js
and*.css
files from the subfolders within the folderlang-pack-for-wp-syntaxhighlighter
and organize them to your liking. In my case, I chose to place the*.js
language files inside the foldersyntaxhighlighter/scripts/
in the standard version. There was only one*.css
file -- i.e.,shBrushProcessing.css
and I chose to place that inside the foldersyntaxhighlighter/styles/
in the standard version.In your
*.html
file, ensure the path to the brush javascript file is correct -- e.g., forlisp
use:<script type="text/javascript" src="syntaxhighlighter/scripts/shBrushLisp.js"></script>
In your
*.html
file, the brush must correspond to the brush javascript file -- e.g., forlisp
use:<pre class="brush: lisp">
syntaxhighlighter -- how to add the optional language pack to standard version
-
05-07-2023 - |
Question
The standard version of syntaxhighlighter 3.0.83 ( http://alexgorbatchev.com/SyntaxHighlighter/download/ ) is similar to the plugin for Wordpress which contains an optional language pack ( http://wordpress.org/plugins/wp-syntaxhighlighter/ ) -- e.g., Biferno, Clojure, DOS batch file, F#, LISP, Lua (only for SyntaxHighlighter 3.0), MEL Script, Objective-C, PowerCLI, Processing, R, S, S-PLUS, Tcl, Verilog, Vim Script and YAML. I'm looking for a way to add the optional languages to the standard version -- any assistance in that regard would be appreciated.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow