On Feb 4, 2:20 pm, Allan Wind <[email protected]> wrote:
> Is a way to reformat html section? I.e. html-aware flavor of gq that
> transforms:
>
> <div class="a"><span class="b"></span></div>
>
> to:
>
> <div class="a">
> <span class="b"></span>
> </div>
>
While you could write your own formatexpr, the best way to do this
would probably be to use an external tool. I believe HTMLTidy would
work nicely (though I've never tried it).
If you set your 'formatprg' option to use the external tool, then you
can just use gq to invoke it.
:help 'formatprg'
:help 'formatexpr'
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---