Home Download Buy Blog Forum Support

Bemused at HTML auto indent

Bemused at HTML auto indent

Postby kc_ on Thu Jun 03, 2010 11:40 pm

Hi, I have been using beta 20100529 for a day or so now, and have started doing my first bit of proper work with it.

I have encountered some pretty odd auto indentation behaviour when writing out some nested div tags.

Code: Select all
<body>
    <div id="hi">
        <div id="hei">
    </div>
</body>


Imagine that I have that code structure. When I press enter with the cursor at the end of the "<div id="hei">" line, it auto indents into the same position as the starting tag, which is fine.
I type </ and it is still all fine - I start to type div, and it moves the indentation back a tab for god knows what reason so the end result is...

Code: Select all
<body>
    <div id="hi">
        <div id="hei">
    </div>
    </div>
</body>


instead of the intended...

Code: Select all
<body>
    <div id="hi">
        <div id="hei">
        </div>
    </div>
</body>


I don't want to turn auto indention off completely, as it can be quite useful. But this behaviour gets pretty damn annoying when I am trying to quickly type out a layout.

Is this a bug, or intended behaviour?

Thanks.
kc_
 
Posts: 1
Joined: Thu Jun 03, 2010 11:28 pm

Re: Bemused at HTML auto indent

Postby asmodai on Fri Jun 04, 2010 2:01 pm

Related to this, the latest beta I use (20100529) seems to ignore my HTML setting of tabSize 2. Instead it keeps on using 4 spaces.

(Or did I miss something in the latest betas?)
asmodai
 
Posts: 73
Joined: Mon Mar 01, 2010 10:42 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 23 guests