Yes, such tools exist, and they are really hard to use usually. It's hard to copy, hard to refactor, hard to compose, etc., and clicking by mouse is really slow.
I don't say that a good UX couldn't exist for such thing, but we already have that good UX in a form of text. Really. Think of it.