Seems like something like this would be a really good fit inside of Atom.io (Github's webkit based editor), it could be done probably a lot more seamless as well. This looks like they got very lucky with some of the features they were able to cram in :P, clickable buttons for instance.