Can you build in the ability to click elements in the tree or classes and auto populate the into the text? Kind of like an excel formula. Maybe if you click and element you have some kind of option to reference the ID or class.. Click on the text to toggle maybe.