muszę Eclipse (Kepler) tiret znaczniki HTML do wewnątrz <head>...</head>
kiedy uderzę Ctrl + Shift + Fwcięć znaczniki odległości <head></head> w Eclipse
Obecnie to:
<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>
staje się to, gdy Uderzyłem w kombinację klawiszy.
<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>
muszę wszystko w <head>...</head>
być wcięty, a także wszystkie znaczniki ciągu <html>...</html>
.
Idealnie w ten sposób:
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>
Poniższy link wydaje się mieć to, czego szukasz: https://stackoverflow.com/questions/17892094/how-to-add-html-editor-to-eclipse – sobz