Publish syntax colorized code from html

I came across this pretty slick way of getting reasonable syntax highlighting for code copied into PowerPoint, email, etc. by exporting the buffer as HTML directly from Vim.

Now you have no excuses for ugly formatting and lack of syntax highlighting in your presentations!

Filed under  //  html   presentations   vim  
Posted

Quickly tidy XML in vim on Linux

If you find yourself staring at an ugly representation of an XML doc, use the following command to tidy it up using xmllint:

$!xmllint --format --recover - 2>/dev/null

Filed under  //  linux   vim   xml  
Posted