Syntax Highlighter in WordPress

Posted: October 24, 2009 in WordPress
Tags: ,

It is likely that for techies, a program or a code snippet need to be put as part of the blog post. To do this, embed your code in this format :

The list of supported language types can be found here.

Here is a small code taken from “Expert C Programming“.

#include <stdio.h>
#include <time.h>

int
main(void)
{
 time_t biggest = 0x7FFFFFFF;
 printf("biggest = %s \n", ctime(&biggest) );

 return 0;
}

This plugin is really useful and good.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s