Re: formatting

From: Mike Schrag (mschra..dimension.com)
Date: Mon Jun 04 2007 - 14:47:08 EDT

  • Next message: Anjo Krank: "Re: formatting"

    All of these are controlled by a RenderContext internally, it is just
    not exposed as a preferences GUI yet. The list of supported items:

       private int _indentSize; (number of spaces in an indent)
       private boolean _indentTabs; (.. or indent as tabs)
       private boolean _addMissingQuotes; (put quotes around attributes
    that don't have them)
       private boolean _spaceInEmptyTags; (turn <br/> into <br />)
       private boolean _spacesAroundEquals; (test="" vs test = "")
       private boolean _lowercaseTags; (<WEBOBJECT NAME = ""> =>
    <webobject NAME = "">)
       private boolean _lowercaseAttributes; (<WEBOBJECT NAME = ""> =>
    <webobject name = "">)

    ms

    On Jun 4, 2007, at 2:36 PM, Lars Sonchocky-Helldorf wrote:

    >
    > Am 02.06.2007 um 05:43 schrieb Mike Schrag:
    >
    >> Formatting is committed ... cmd-shift-f or Edit=>Refactor=>Format in
    >> the HTML editor.
    >
    > Great work, now I can cleanup lots of sloppy code (mostly bad
    > indentation, forgotten quotes for attributes, uppercase tags from
    > WOBUILDER) with just a single keystroke. Thats saves me hours. I
    > just got two little wishes ...
    >
    >
    > Currently the code is formatted with spaces between the attribute
    > name, the equal sign and the attribute value. This looks a little
    > obscure for my taste especially when lots of attributes are present
    > and the code is not syntax-highlighted. In my opinion the second
    > one looks much more readable then the first one
    >
    > <td colspan = "3" rowspan = "5" width = "50%" height = "105"
    > bgcolor = "#66FFFF">
    >
    > vs.
    >
    > <td colspan="3" rowspan="5" width="50%" height="105"
    > bgcolor="#66FFFF">
    >
    > however, since some people might think differently here, I think
    > having some preferences options here would be gold.
    >
    >
    > Currently the indentation is done using two spaces. I for my part
    > usually prefer one tab here. Again this is a matter of taste and I
    > would be really happy to have that configurable too
    >
    >
    > Thanks,
    >
    > Lars



    This archive was generated by hypermail 2.0.0 : Mon Jun 04 2007 - 14:48:17 EDT