Oracle and more – Amardeep Sidhu

My experiences with technology…

Syntax highlighting for code in Wordpress

with 3 comments

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

code.JPG

and you are done.

Wanna see, how does it look like ;)

SQL>drop database;

Isn’t beautiful ;)

Written by Sidhu

March 3rd, 2008 at 10:07 pm

Posted in House Keeping

Tagged with

3 Responses to 'Syntax highlighting for code in Wordpress'

Subscribe to comments with RSS or TrackBack to 'Syntax highlighting for code in Wordpress'.

  1. 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

  2. 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

  3. [...] 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 [...]

Leave a Reply