Hi I am trying to post some code examples on my blog and am struggling with the fact that the geekzone site strips bits out to avoid cross site scripting hacks.
So what is the best way to post coding examples on geekzone?
The only luck I have had is to replace < with <
I would really like a solution that could also use syntax highlighting if possible.
I have been trying out some different things. One is http://tohtml.com/php/ which is pretty good as it does syntax highlighting, unfortunately geekzone stips the colour codes but all the syntax is correct.
I can't use Live Writer as it passes the non html version of the code. Also editing of the post isn't possible as the special html codes are converted into standard html codes and so get stripped on editing.
Still it works.
What I would like to see is the html code use something like php htmlentities so all the special character would be converted into the likes of <
Just a thought.