indent of xhtml

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

indent of xhtml

David Herring

using vim 6.3.58, why don't lines betwen match div tags, form tages etc
get indented in xhtml file ?

i.e edit test.xhtml ,
 type gg=G and file looks like blow. The only indents are on the lines
of javascript ?

thx for any help, dave


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Click 2 Park</title>
<link type="text/css" rel="stylesheet" href="stylesheets/{{$COMPANY}}.css"/>
<link rel="stylesheet" type="text/css" media="all"
href="/commonStyle/calendar/calendar-win2k-cold-1.css"
title="win2k-cold-1"/>
<script type="text/javascript" src="/commonJavascript/common.js"></script>
</head>
<body>
<script type="text/javascript">
function SubmitNavForm(page)
{
    document.NavForm.{{$PAGE_FP}}.value = page;
    document.NavForm.submit();
}
</script>

<form name="NavForm" method="get" action="{{#ACTION#}}">
<input type="hidden" name="{{$PAGE_FP}}" value=""/>
<input type="hidden" name="{{$LOGOUT_FP}}" value="{{$FALSE}}"/>
</form>

<div class="main">
<p class="title">Test Title</p>
</div>
</body>
</html>



--

David Herring
---
NetFM Ltd
T: 01344 769068
M: 07973 673027
---
http://www.journey2share.co.uk/
The number 1 trusted car share solution