An Oracle blog – Amardeep Sidhu

March 3, 2008

Syntax highlighting for code in WordPress

Filed under: House Keeping — Sidhu @ 10:07 pm
Tags:

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 😉

3 Comments »

  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

    Comment by NeilC — March 7, 2008 @ 5:30 am | Reply

  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

    Comment by Sidhu — March 7, 2008 @ 6:55 am | Reply

  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 […]

    Pingback by Oracle and more - Amardeep Sidhu » Blog Archive » Upgrading to Wordpress 2.5 — March 30, 2008 @ 5:46 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Theme: Rubric. Get a free blog at WordPress.com

%d bloggers like this: