I noticed that when displaying bash code symbols like < and > are converted to < and >

I found an ugly workaround which inverts this change in post #5 on this page:
http://bitbucket.org/alexg/syntaxhighlighter/issue/25/bash-shell-script-...

It requires you to update the syntaxhighlighter javascript files.

Comments

pfrenssen’s picture

< and > gets converted to & gt ; and & lt ;

mattyoung’s picture

Do you have an example to show this problem? Is this a bug with the javascript library? I covert any '<' and '>' characters to &lt; and &gt; is the brush then convert &lt; into &amp;lt;?

rgon’s picture

This problem seems to be with the bash brush, > shows as &gt;. When I use the perl brush, the > is represented correctly, as >. The same thing happens with < also, < shows as &lt;. Other HTML entities seem all right though I haven't tested exhaustively.

mattyoung’s picture

Status: Active » Closed (won't fix)

~

pfrenssen’s picture

Status: Closed (won't fix) » Fixed

This has been fixed in SyntaxHighlighter 2.1.364.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.