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