Topic: Suggestion for better usability of preset xml

I am using the preset.xml quite a lot and would love to have more structure in it. As an example, it would be great to group  options in a way like this:

<!-- thumbnail options -->
    thumbPadding="4"
    thumbHoverFrameWidth="1"
    thumbFrameHoverColor="999999"
    thumbFrameColor="555555"
    thumbFrameWidth="1"
    thumbFrameStyle="SQUARE"
    thumbHAlign="LEFT"
    thumbVAlign="BOTTOM"
<!-- end of thumbnail options -->

<!-- fixed layout options -->
    useFixedLayout="true"
    imageAreaWidth="510"
    imageAreaHeight="340"
    imageAreaX="240"
    imageAreaY="0"
    thumbAreaY="320"
    thumbAreaX="0"
    captionX="35"
    captionY="230"
<!-- end of fixed layout options -->

etc.

This would help a great deal. I tried it the way as described but the xml cannot be rendered. Maybe you can implement something like this in the flash rendering.

Re: Suggestion for better usability of preset xml

I tried it the way as described but the xml cannot be rendered.

Please see this FAQ to see if is helps with this particular problem: http://simpleviewer.net/simpleviewer/su … #trouble_9

Steven Speirs
SimpleViewer Support Team.

Re: Suggestion for better usability of preset xml

Hi Steven,

I can see that my question wasn't precise enough. What I want to know is: How can I add comments into the preset.xml without breaking it. I like to structur code by the use of comments, I'd like to do this with preset.xml too.

Best regards

Re: Suggestion for better usability of preset xml

Comments cannot be used within tags.
The comments in the example you posted above are all within the opening <simpleviewergallery> tag.

Steven Speirs
SimpleViewer Support Team.