Мне нужно, чтобы Eclipse (Kepler) отступал от html-тегов внутри <head>...</head>
, когда я нажимаю Ctrl+Shift+F
В настоящее время это:
<html>
<head>
<title>Insert title here</title>
<script type="text/javascript">
function func() {
console.log("Hello world");
}
</script>
</head>
<body>
<p onclick="func()">Some text</p>
</body>
</html>
становится таким, когда я нажимаю комбинацию клавиш.
<html>
<head>
<title>Insert title here</title>
<script type="text/javascript">
function func() {
console.log("Hello world");
}
</script>
</head>
<body>
<p onclick="func()">Some text</p>
</body>
</html>
Мне нужно, чтобы все в пределах <head>...</head>
было с отступом, а также все теги в пределах <html>...</html>
.
В идеале так:
function func() {
console.log("Hello world");
}
<html>
<head>
<title>Insert title here</title>
<script type="text/javascript">
/* function */
</script>
</head>
<body>
<p onclick="func()">Some text</p>
</body>
</html>