Eclipse EE (Luna) aling JSP and HTML just like XML



I have Eclipse Luna for Java EE Developers and I need to format JSP and HTML files just like XML, so every inner tag will be on a TAB to the right. Here is an example:



<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://ift.tt/kTyqzh">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><%="test123"%></title>
</head>
<body>
</body>
</html>


to



<%@
page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://ift.tt/kTyqzh">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><%="test123"%></title>
</head>
<body>

</body>
</html>


How do I supposed to do that?


No comments:

Post a Comment