Proper implementation/use of code/syntax highlighting
I've already read what I can on a couple of sites and installed this plug-in:
http://en.support.wordpress.com/code/posting-source-code/
http://alexgorbatchev.com/SyntaxHighlighter/
I'm missing how to make it work. Now I have two questions:
- Do I have to type in the Visual window or the HTML window?
- Does TinyMCE mess with this? I've seen my code disappear in the HTML window.
I currently have typed in my code in Visual Window like this:
[sourcecode language="php"]
?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://CMSTrainingVideos.com" );
if ($_GET["page_id"] == 1)
Header( "Location: http://CMSTrainingVideos.com/?p=35");
if ($_GET["page_id"] == 2)
Header( "Location: http://CMSTrainingVideos.com/?p=43");
?
[/sourcecode]
I also tried pre language="php"
with the "Geshi" syntax highligher, and no luck there either.
But nothing is happening, i.e. no syntax highlighting: http://cmstrainingvideos.com/?p=53
Topic code syntax-highlighting plugin-syntaxhighlighter Wordpress
Category Web