Liquid Studio Documentation
User Interface Guide / Options / Editors / DTD Editor Options
In This Topic
    DTD Editor Options
    In This Topic

    By default "Use System Default" is checked, which means the settings for the editor are taken from the Default Options page.

    When this is un-checked the settings can be customized for each individual editor.

    Indent Size

    The number of columns used for a tab. This is also the number of columns XML data will be indented by.

    Use

    Tabs - a tab is used to for each indent.

    Spaces - a number of spaces characters is used for each indent.

    Show Line Numbers

    Indicates if line numbers should be shown in the left hand margin

    Show Whitespace

    Non-visible characters like spaces and tabs are shown in the editor (default is off).

    Word Wrap

    Line lines are wrapped when displayed in the editor (default is off).

    Can cause performance problems when line lengths are very long (typically if a large xml file is unformatted and exists as a single line of text).

    Enable Macros

    Enabled keyboard macros to be recorded and played back (default is enabled).

    Show XML Tooltips

    If this is true the tooltips are shown within the XML Code Editor when a element/attribute is hovered over.

    Indent Attributes

    If this is checked then when attributes are auto formatted then they are placed one per line. If it's not checked then they are all placed on the same line as the opening element.

    Ignore Significant Whitespace Formatting XML

    Causes leading and trailing whitespace to be ignored (default is false). Whitespace before and after data contained within an XML Element is considered to be significant to most parsers. It will therefore be preserved when formatting your XML documents, which can cause them to look verbose. Consider the XML sample.

     

    The following XML is formatted as follows

    Copy Code
    <?xml version="1.0" encoding="utf-8"?>
    <library>
    <book id="b0836217462" available="yes">
    <isbn>
       08362   17462
    </isbn>
    </book>
    </library>
    

    Formatting and respecting the Significant whitespace (i.e. unchecked) will result in the following (note the data within the isbn element is the same, but it's not cleanly formatted).

     

    Copy Code
    <?xml version="1.0" encoding="utf-8"?>
    <library>
        <book id="b0836217462" available="yes">
            <isbn>
       08362   17462
    </isbn>
        </book>
    </library>
    

    Formatting and ignoring the Significant whitespace (i.e. checked) will result in the following (note the data within the isbn element has changed, the leading and trailing whitespace has been removed).

     

    Copy Code
    <?xml version="1.0" encoding="utf-8"?>
    <library>
        <book id="b0836217462" available="yes">
            <isbn>08362   17462</isbn>
        </book>
    </library>
    

    See Also