• Get the Flash Player to see the slideshow.
  • Categories

  • Authors

  • Great Quotes

    Thirty spokes converge on a hub but it’s the emptiness that makes a wheel work — Lao Tzu - Tao Te Ching

Get in touch...

To have a chat about
your CMS needs...

Call us 0207 193 2014
or
Email us on

Formatting XML & HTML with HTML Tidy

July 31st, 2008 by Richard Aldridge
  1. Get the tidy program from http://www.w3.org/People/Raggett/tidy/
  2. Unzip and run it from the command line, or, place it in your VIM runtime directory, add the following lines to your .vimrc, and when you visually select some text and type ,x on the command line, the selected text will be indented.

“—–
” select xml text to format and hit ,x
vmap ,x :!tidy -q -i –newline LF -xml<CR>
“—

 

Leave a Reply

You must be logged in to post a comment.