péguelo para las etiquetas etiqueta entre documento código cuerpo codigo html eclipse indentation auto-indent

para - etiquetas html



sangrar etiquetas dentro de<head></head> en eclipse (1)

Puede intentar ir a: Ventana> Preferencias> Web> Archivos HTML> Editores.

Agregue / elimine lo que desea sangrar del campo en línea. Por lo que vi no incluye la etiqueta de cabecera, así que intente agregar en la lista.

Necesito Eclipse (Kepler) para sangrar las etiquetas html dentro de <head>...</head> cuando presiono Ctrl + Shift + F

Actualmente, esto:

<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>

se convierte en esto cuando golpeo la combinación de teclas.

<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>

Necesito que todo dentro de <head>...</head> esté sangrado y también todas las etiquetas dentro de <html>...</html> .

Idealmente de esta manera:

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>