One word. VIM.
I also managed to have vim automatically apply HTML syntax coloring to my Pyblosxom blog entries. At first I had this sort of involved script function that didn’t even work right. But after a little digging, I noticed that vim already supported what I was trying to do natively.
If you too would like to use vim to edit your blogs, then add this to your ~/.vimrc, replacing $PATH with the actually path to your Pyblosxom datadir. You can use ~ in your path as well. If you’d like to run more than one command, you can separate them with pipes (|).
Edit: I am somehow not surprised that Planet KDE stripped my CSS
styles from my HTML tags.
autocmd BufRead,BufNewFile
$PATH/* set syntax=html