Archive for the ‘WordPress’ Category

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.