Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/379.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 缩进<;头></头>;日蚀_Html_Eclipse_Indentation_Auto Indent - Fatal编程技术网

Html 缩进<;头></头>;日蚀

Html 缩进<;头></头>;日蚀,html,eclipse,indentation,auto-indent,Html,Eclipse,Indentation,Auto Indent,当我点击Ctrl+Shift+F时,我需要Eclipse(开普勒)在..中缩进html标记 目前,这: <html> <head> <title>Insert title here</title> <script type="text/javascript"> function func() { console.log("Hello world"); } </script> </head> <body>

当我点击Ctrl+Shift+F时,我需要Eclipse(开普勒)在
..
中缩进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>

在此处插入标题
/*作用*/
一些文本

您可以尝试转到: 窗口>首选项>Web>HTML文件>编辑器


在内联字段中添加/删除要缩进的内容。据我所见,它不包括head标记,所以请尝试添加到列表中。

无意义的回答,因为列表中有或没有(默认)head都不会改变缩进的方式。缩进正确地处理了上述内容。不要说没有意义的答案,而是提供另一个解决方案。不幸的是,这不会产生OP要求的格式。似乎没有办法使用Eclipse Kepler回答这个问题。下面的链接似乎有您想要的内容:使用vscode代替:D
<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>