Re: XHTML syntax highlighting and indenting
Christl Timon wrote:
> But the more importantPut the following line into ~/.vim/after/indent/html.vim:
> thing is indenting. XHTML requires each <p> to be closed by </p>, each
> <br> must be written as <br /> etc. The indenting should reflect his.
> For example, when I type "<p>", then press return I expect the cursor
> (indicated by the underscore) to be in the next line, indented by
> &sw, like this:
> But currently it's
let g:html_indent_tags = g:html_indent_tags . '\|p'
This adds '<p>' to the list of tags that increase the indent level.
Jürgen Krämer Softwareentwicklung
Habel GmbH mailto:jkraemer@...
Hinteres Öschle 2 Tel: (0 74 61) 93 53 15
78604 Rietheim-Weilheim Fax: (0 74 61) 93 53 99