+1
That's my personal "formatting guidelines" for years now. For UIs like HTML, FTL, XML. Even for
codes (PHP, Perl, C/C++, Lisp, etc), if I wasn't working in a team that followed other
space-indentation policies.
About the 4-space Java indentation, I think it's not too big. Always good to force programmers to
UN-NEST their codes (eg, straighten out deeply nested 'if' conditional blocks).
Jonathon
Adrian Crum wrote:
I read the section on code formatting guidelines and I agree with the
Sun Java coding guidelines for Java code.
The problem is with ftl files. Using 4 space indentation with nested
HTML elements within nested freemarker conditionals adds up to 30 to 40
character indentations. Can't we accept two space indentation for ftl
files?