Home Download Buy Blog Forum Support

html auto indent

html auto indent

Postby matias1 on Thu Oct 13, 2011 4:01 am

hello, autoindent is not working for HTML? or am i missing something?

Code: Select all
<html>
<head>
   <title></title>
</head>
<body>
<div>| (cursor is here. pressing Enter)</div>
</body>
</html>


here what i get

Code: Select all
<html>
<head>
   <title></title>
</head>
<body>
<div>
|</div>
</body>
</html>


but it should be like that

Code: Select all
[code]<html>
<head>
   <title></title>
</head>
<body>
<div>
    |
</div>
</body>
</html>[/code]
matias1
 
Posts: 7
Joined: Thu Oct 13, 2011 3:43 am

Re: html auto indent

Postby matias1 on Thu Oct 13, 2011 9:24 pm

so no fix for my problem? :(
matias1
 
Posts: 7
Joined: Thu Oct 13, 2011 3:43 am

Re: html auto indent

Postby tito on Thu Oct 13, 2011 11:23 pm

In theory if you indent the "title" tag in that way you should indent that div too. When that div is indented, indentation works correctly.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: html auto indent

Postby jerrybotticelli on Thu Oct 13, 2011 11:51 pm

tito wrote:In theory if you indent the "title" tag in that way you should indent that div too. When that div is indented, indentation works correctly.


Nope.
jerrybotticelli
 
Posts: 6
Joined: Mon Sep 19, 2011 5:06 pm

Re: html auto indent

Postby matias1 on Fri Oct 14, 2011 7:13 am

tito wrote:In theory if you indent the "title" tag in that way you should indent that div too. When that div is indented, indentation works correctly.


tito, the title tag intented because html page was a template. i didn't write the basic html tags myself.
matias1
 
Posts: 7
Joined: Thu Oct 13, 2011 3:43 am

Re: html auto indent

Postby matias1 on Fri Oct 14, 2011 8:50 am

http://www.screenr.com/bq0s

so, no solution for this show-stopper bug or am i missing something? :x
matias1
 
Posts: 7
Joined: Thu Oct 13, 2011 3:43 am

Re: html auto indent

Postby matias1 on Fri Oct 14, 2011 9:37 am

sublimator wrote:Google `Package Control` and try installing ZenCoding


Thank you, installed ZenCoding
matias1
 
Posts: 7
Joined: Thu Oct 13, 2011 3:43 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 30 guests