Closed (fixed)
Project:
Syntax Highlighter
Version:
6.x-1.19
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2009 at 15:12 UTC
Updated:
29 Apr 2010 at 12:10 UTC
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
Comment #1
pfrenssen< and > gets converted to & gt ; and & lt ;
Comment #2
mattyoung commentedDo you have an example to show this problem? Is this a bug with the javascript library? I covert any '<' and '>' characters to < and > is the brush then convert < into &lt;?
Comment #3
rgon commentedThis problem seems to be with the bash brush, > shows as >. When I use the perl brush, the > is represented correctly, as >. The same thing happens with < also, < shows as <. Other HTML entities seem all right though I haven't tested exhaustively.
Comment #4
mattyoung commented~
Comment #5
pfrenssenThis has been fixed in SyntaxHighlighter 2.1.364.