3 ms·
Am I right to understand that it would be the equivalent of visual studio's wpf designer [1], where you have the WYSIWYG editor side by side with an xml editor
by cm2187 3y ago
Am I right to understand that it would be the equivalent of visual studio's wpf designer [1], where you have the WYSIWYG editor side by side with an xml editor and you can make the change in either of them and it translates into the other?
If it is, it would have been really really cool.
[1] https://i.stack.imgur.com/8pJnn.png https://i.stack.imgur.com/8pJnn.png
- rbehrends 3y agoNo. It's more like what the following piece of code produces: def convert(xml): import re parsed = re.split(r"(<.+?>)", xml) output = parsed[0] tags_with_pos = [] for i in range(1, len(parsed), 2): tags_with_pos.append((parsed[i], len(output))) output += parsed[i+1] return tags_with_pos, output