Just an idea that I think might be useful and worth considering for inclusion at some point in the future, a kind of preprocessor for the UI XML.

This would be useful for a number of things but specifically for reusing UI XML code; you would be able to define a block of XML and then reuse it over and over simply by referencing a preprocessor directive.

For example, lets say we define a block of code as follows..

#define MY_CODE
            <textLabel ... />

I could then reuse the above block of code as many times as is needed with something like this...


or to ensure the UI XML remains as standard formatted XML you could have a new tag, something like this...

<preprocessor name="MY_CODE"/>

This would certainly be useful and could save time as I'm finding that I'm repeating a lot of common blocks of code on a number of panels.

Obviously no urgency on this but just a thought.



asked 12 May '13, 18:55

Craig's gravatar image

accept rate: 6%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 12 May '13, 18:55

Seen: 2,186 times

Last updated: 12 May '13, 18:55

© Copyright Gerger 2017