Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
I’m sure there’s a way to do it in CSS, but I find that really cool looking code examples benefit from a syntax highlighter plugin.
http://wordpress.org/extend/plugins/search.php?q=syntax+highlighter
My favorite is this one, but you may prefer one of the others.
+1 for the SyntaxHighlighter plugin, works great!
What am I doing wrong? I tried both plugins you linked to and both of them don’t work. What do I have to do to get these to work?
Isn’t there just a way to style your code or something…?
How are you using the code tags on your blog?
You could most likely style the CSS in some way if you’re looking for something simple and not too extravagant. But in order to point you in the right direction I need to know how you are posting the code in the first place.
Personally I just use CSS. Try styling on code
, pre
and pre code
.
Well how do I actually use the plugin? There’s no instructions so I don’t know what I’m meant to do?
The
tags are in a different font and that’s it, so isn;t there a way to change it’s CSS without needing plugins?
If you look at the ‘Installation’ tab on the plugin page it shows you how to display the code.
Example:
[php]Your code goes here.[/php]
That will display your code with PHP highlighting
I’ve uninstalled them.
I’ve just used the pre tags and styled it myself.
Mush easier and actually works.