Nanoblogger code plugin


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

Some nice examples:

#include <stdio.h>

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

	return 0;
}

and

#!/bin/bash

# A Hello world example
echo "Hello world"

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

~~~ {.vim}
:%s/^[0-9]* //
blog 

See also