crayon-syntax-highlighter
crayon-syntax-highlighter copied to clipboard
Dollar signs dropped in syntax highlighted shell code displayed on wordpress site
On my Wordpress driven blog, I use the Crayon-syntax-highlighter plugin (and the Simple-Mathjax plugin).
In the article "Ubuntu – Programme mit Skript starten"
http://www.aviduratas.de/wordpress/?p=121
there are two shell scripts displayed. In the last line of the second one two dollar signs are dropped in
gnome-terminal --geometry=90x25+1000+800 --working-directory="$HOME/$2" -x bash -c "$argbash" &
The rendering is ok (both dollar signs present), when syntax highlighting is switched off. With syntax highlighting on, the dollar signs in "$HOME/$2" are dropped. At first I suspected an interference with the working of the Simple Mathjax plugin, but there are other displayed code boxes where also two dollar signs are present in a line and none of them is dropped. So it is possible a result of a singular coincidence in the content of the line to be highlighted.