Original Post
Short story is that I want to store snippets of Python code in XML. Kind of similar to how WoW GUI elements can store Lua snippets in their XML. My problem is that Python's syntax is indentation-based, so I get syntax errors depending on how nested/indented the containing XML element is. My naive approach is going to be counting the number of tabs preceding the first line of code and then remove that many tabs after each new line character. *ugh!* Just wondering if anyone had dealt with this before and knows of any good, general, solutions that might be better than what I'm thinking of.