Monday, October 24, 2011

tidy reformat beautify html xml emacs

sudo apt-get install emacs

nxhtml-mode is derived from nxml-mode (NxmlMode).
It adds a lot of things useful for XHTML.
Among other things it adds some way of handling multiple modes, folding, an improved interface to Tidy etc.

Installation instruction

tidy html
Go to nXhtml -> tools -> Tidy XHTML -> Tidy Buffer

To Compile nxhtml.el goto
Menu nXhtml -> nXhtml help and Setup -> Byte compile nXhtml

work well with inline php b/c no bug of 'always shift/indent php code'
(3rd of execution lead 6 spaces indent,4th lead 8 ,5th lead 10 ....)

More info
HTML Editing With Emacs

No comments:

Post a Comment