Nick's posterous http://nicktj.posterous.com Most recent posts at Nick's posterous posterous.com Fri, 13 Jan 2012 09:36:43 -0800 Publish syntax colorized code from html http://nicktj.posterous.com/publish-syntax-colorized-code-from-html http://nicktj.posterous.com/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!

Permalink | Leave a comment  »

]]>
http://posterous.com/images/profile/missing-user-75.png http://posterous.com/users/heOPIhURBYqT0 Nick Jones nicktj Nick Jones
Thu, 12 Jan 2012 12:41:00 -0800 Quickly tidy XML in vim on Linux http://nicktj.posterous.com/quickly-tidy-xml-in-vim-on-linux http://nicktj.posterous.com/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

Permalink | Leave a comment  »

]]>
http://posterous.com/images/profile/missing-user-75.png http://posterous.com/users/heOPIhURBYqT0 Nick Jones nicktj Nick Jones