Open GoogleCodeExporter opened 9 years ago
We are also seeing this. Same results regarding IE 7, firefox 3.1 beta, Chrome.
Original comment by graham.d...@gmail.com
on 18 Nov 2008 at 4:44
If I search and replace '<' with '<' then it goes away.
Original comment by Mitch.C....@gmail.com
on 18 Nov 2008 at 4:59
Search and replace in your code?
Original comment by graham.d...@gmail.com
on 18 Nov 2008 at 6:27
Copy the code to say Notepad, search and replace, then copy the results to your
HTML
page.
Original comment by Mitch.C....@gmail.com
on 18 Nov 2008 at 6:37
Yeah, I see that seems to work. Bit of a PITA. Would be nicer to add something
like:
String.prototype.escapeHTML = function () {
return(
this.replace(/&/g,'&').
replace(/>/g,'>').
replace(/</g,'<').
replace(/"/g,'"')
);
};
then pass str.escapeHTML() to the brush...
Original comment by graham.d...@gmail.com
on 18 Nov 2008 at 6:58
You should be converting your '<' and '>' to the html equivalent > and < (and
other html entities) otherwise you're not creating valid html on your page.
As syntax highlighter is client side javascript, you run the risk of your
browser
interpreting the < > as tags before the javascript is called.
Original comment by mdjwo...@gmail.com
on 6 Dec 2008 at 10:29
Try specifying attribute el as verbatim:
%CODE{lang="cpp" el="verbatim"}%
#include <iostream>
void foo() {
}
%ENDCODE%
Original comment by tay...@hotmail.com
on 13 Feb 2009 at 12:06
Original issue reported on code.google.com by
Mitch.C....@gmail.com
on 13 Nov 2008 at 8:44