Syntax highlighting for code in Wordpress
I came across a post about syntax highlighting for code in Wordpress on Thomas Roach’s blog who in turn saw it on Tyler Muth’s blog. There is a plugin called syntax highlighter which does all the beauty. Use is very simple:
Download it from here.
Upload to your blog’s plugins folder and extract it over there.
Now (on Wordpress) go to Plugins page and activate the plugin.
To use it wrap your code like
and you are done.
Wanna see, how does it look like
SQL>drop database;
Isn’t beautiful
Hi Amardeep
i’m new to blogging (starting today), and am trying to use Wordpress, I have two questions
1. Where do I find my blogs plugins folder ?
2. Where (on Wordpress) do I find Plugins page to activate the plugin?
many thanks
NeilC
7 Mar 08 at 5:30 am
Hi Neil
Not sure if you have signed up with wordpress.com for a blog or registered your own domain name and trying to setup blog using wordpress software.
If its latter then:
1. Where do I find my blogs plugins folder ?
It will be in /blog/wp-content folder of your blog.
2. Where (on Wordpress) do I find Plugins page to activate the plugin?
On your Dashboard go to plugins page and from there you can activate the installed plugins.
Hope that helps…
Sidhu
Sidhu
7 Mar 08 at 6:55 am
[...] issue I just came to know that whereever i am using syntaxhighlighter to format the code, it doesn’t display properly in Internet Explorer. May be something to do [...]
Oracle and more - Amardeep Sidhu » Blog Archive » Upgrading to Wordpress 2.5
30 Mar 08 at 5:46 pm