Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Why the internal JSP files have such a poor code formatting?

Avatar

Level 7

For example, the blocks are not separated by new lines and sometimes there are empty scriptlets in them:

<%@ page import="blah blah" %> <% %><%

I have a feeling the JSP has been converted from code initially written in another way or maybe some code is automatically appended to them, but the formatting is very poor anyway.

It would be great if you could improve the formatting in the upcoming versions.

1 Reply

Avatar

Level 7

CQ 5.6.0 used to have a built-in code formatter in CRXDE Lite. http://alivecycle.wordpress.com/2013/08/21/crxde-lite-code-formatting/

Seems Adobe removed it in AEM 6.0.0 (and possibly 5.6.1). Adobe - why was this removed? Can we re-enable it?

EDIT: It seems that this feature is still alive and working.