Groesbeek, view of the 'National Liberation Museum 1944-1945' in Groesbeek. © Ton Kersten tonkersten.com | Tue Aug 17, 2010 | © Ton Kersten - PA1TON
Most of this template stuff is borrowed ("stolen") from Miek Gieben
stopsoftwarepatents.eu petition banner

Nanoblogger code plugin - Thoughts of a geek

Miek pointed me to a nice plugin for Nanoblogger called the Code Plugin

Some nice examples:

CODE(c){

include

int main( int argc, char* argv[] ) { /* A Hello world example */ (void) printf( "Hello, World!\n" );

return 0;

} }CODE

and

CODE(sh){

!/bin/bash

A Hello world example

echo "Hello world" }CODE

If you want to cut and paste code examples, just go into vi and give it a

CODE(vim){ :%s/^[0-9]* // }CODE