I've been reading some plugin code.
The code is not helped by having extremely long lines with no
whitespace and by being unindented.
Some of the worse culprits are extremely long filter expressions
which I can't even print reasonably since they have no line feeds
and are very wide.
It seems like a blank in filter code changes the meaning of the code so
I can't add white space and new lines to make the filters more readable
(is this correct?)
I was also wondering if it were possible to color code
and correctly indent widget code to make it more readable.
Indented HTML is far easier to read than unindented.
It's common practice to color code strings and variables and punctuation
in programming languages to make the code easier to visually parse
I would have thought that this would be possible in the TW editor
- there is a wiget parse tree, so I guess this could be pretty printed and
colored to show the structure and meaning of the constructs.
Are there any plugins to neatly format and pretty print plugin code?
Cheers
/Joe