I just installed this cool Wordpress plugin that adds syntax highlighting to source code that you put in blog posts. It’s one of those “activation only” plugins that bloggers love so much. I’ll probably add some code snippets to my posts from now on, so this plugin will come in handy. Has support for HTML, CSS, PHP and many more.
Check this out:
#wrapper {
width: 950px;
margin: 0 auto;
background: #FFFFFF;
border-left: 15px solid #0F0802;
border-right: 15px solid #0F0802;
}
Similar Articles
Was This Love?




One Trackback
[...] Google Syntax Highlighter for WordPress - 47 views [...]
4 Comments
I was missing syntax highlighting in Wordpress. I’m Gonna Try It. 10x!
Just FYI… I have no idea why but Wordpress MU strips the attributes from the pre tags
How does this work on 2.5? Any trouble with it? I’ve been looking for a similar tool for quite some time now. Does it have an option to also display a line number? That would be very useful for coding reference.
Yeah, seems to work fine in WP 2.5 too and yes, it does have line numbers. The only thing that bugs me is the fact that it takes some time to load and in the meantime you see the non styled PRE tag. Until I find something better, this works fine for me.