sandeeprsp / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

XML, Java formating problem with "<" and ">" #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write XML with tags whose contains "-" in name eg. <form-name>
2. Try to format using synaxhiglihgter
3. For java code use generic type: List<generated.Var>

What is the expected output? What do you see instead?
XML:
Expected is <form-name>aaa</form-name>
Got: <form -name>aaa</form>

Java:
Expected is List<generated.Var>
Got: List<generated .Var>

What version of the product are you using? On what operating system?
1.5

Please provide any additional information below.
The same problem have Geshi..

Original issue reported on code.google.com by lukasz.d...@gmail.com on 2 Feb 2008 at 12:15

GoogleCodeExporter commented 8 years ago
Concerning the Java generics problem (List<String> is made to List<string> [..]
</string>) the problem probably is not fixable, because as you can see when 
debugging
the code with firebugs at line 699 of file shCore.js the 1.5.1 release the line

        highlighter.Highlight(element[propertyName]);

element[propertyName] already returns the deformed html. The deformation is 
obviously
done by the firefox engine and not fixable by the script.

A workaround for me is to use the encoding 
List<String>

Original comment by aherbe...@googlemail.com on 9 Feb 2008 at 10:01