Have you encountered an OS X text editor capable of indenting both the line
var x = 2;
and the lines
<it>Item A</it>
<it>Item B</it>
in the following html?
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Test</title>
<script>
function foo_bar() {
var x = 2;
}
</script>
</head>
<body onload="foo_bar()">
<h1>Header</h1>
<ul>
<it>Item A</it>
<it>Item B</it>
</ul>
</body>
</html>
I have tried all emacs packages purporting to do this simple task properly (through a major and a minor mode), but none is adequate. I am too heavily into emacs to abandon it altogether, but I am now looking for an editor other than emacs for this task.