Имам нужда от 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>