JBoss工具 - .xhtml缩进

时间:2012-12-26 21:59:32

标签: eclipse jboss-tools

我在项目中添加了JBoss工具,试图添加一些JSF 2 bean感知内容完成。我真的很高兴这是怎么回事。我正在使用Eclipse for Java EE Juno服务版本1 Build id:20120920-0800。我在这个项目中安装了CDI,动态Web模块,Java,javascript,JSF 2.1,JAX-RS 1.1 JBoss Maven Integration 1.0和JPA 2.0方面。

但现在当我在Eclipse中使用ctrl -i来正确“对齐”时,我的.xhtml文件会折叠标签下面的第一层标签。我真的不喜欢它的样子,如果其他人加入这个项目,我认为这不会是标准的。这是它的作用。

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en"
  xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Login Error</title>
    </head>
    <body>
        <h2>Invalid user name or password.</h2>

        <p>Please enter a user name or password that is authorized to access this
            application. For this application, this means a user that has been
            created in the <code>file</code> realm and has been assigned to the
            <em>group</em> of <code>TutorialUser</code>.</p>
        <p><a href="faces/index.xhtml">Return to login page</a></p>
    </body>
</html>
使用ctrl-i后,

成为下面的块

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login Error</title>
</head>
<body>
    <h2>Invalid user name or password.</h2>

    <p>
    Please enter a user name or password that is authorized to access this
    application. For this application, this means a user that has been
    created in the
    <code>file</code>
    realm and has been assigned to the <em>group</em> of
    <code>TutorialUser</code>
    .
    </p>
    <p>
        <a href="faces/index.xhtml">Return to login page</a>
    </p>
</body>
</html>

注意如何和标签都缺少一定程度的缩进。任何有关如何解决此问题或在何处配置它的想法将不胜感激。

0 个答案:

没有答案