Adding a codebox to your wordpress

Éverton Arruda

Adding a codebox to your wordpress blog is really simple, all you have to do is download the one you want, upload it to wp-content/plugins directory in your blog, then you’ll have to access the admin page of your blog and activate it in the plugins section. Just as any other plugin.

I recommend CodeColorer plugin, the one i use here in my blog. CodeColorer is developed by Dmytro Shteflyuk, you can find it at it’s homepage: http://kpumuk.info/projects/wordpress-plugins/codecolorer. This plugins supports more than 100 languages.

After some customizations, my codebox is like this:

1
2
3
4
5
6
7
#include <stdio.h>
/* Hello World in C */
int main()
{
    printf("Hello World!\n");
    return 0;
}

If you want to look for other highlight plugins you can find more at http://wordpress.org/extend/plugins/search.php?q=code+highlight.

:wq


2 Responses to “Adding a codebox to your wordpress”

Leave a Reply