Loading ...
Sorry, an error occurred while loading the content.

Re: XHTML syntax highlighting and indenting

Expand Messages
  • Jürgen Krämer
    Hi, ... Put the following line into ~/.vim/after/indent/html.vim: let g:html_indent_tags = g:html_indent_tags . |p This adds to the list of tags that
    Message 1 of 2 , Feb 3, 2003
    • 0 Attachment
      Hi,

      Christl Timon wrote:

      > But the more important
      > 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:
      >
      > <p>
      > _
      >
      > But currently it's
      >
      > <p>
      > _
      >

      Put the following line into ~/.vim/after/indent/html.vim:

      let g:html_indent_tags = g:html_indent_tags . '\|p'

      This adds '<p>' to the list of tags that increase the indent level.

      Regards,
      Jürgen

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.