Saturday, December 24, 2011

indention of html with jQuery code incorrect

Hi,

The following code can't be correctly indented in vim. Does anybody
know what plugin can help correctly indent this file?


<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#test").click(function(){
$(this).fadeOut();
});
});
</script>
</head>

<body>
<div id="test" style="background:yellow;width:200px">CLICK ME
AWAY!</div>
<p>If you click on the box above, it will be removed.</p>
</body>

</html>

Regards
Peng

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: