I experimented with using cfgs in a code editor before but with the aim of making it easier to code on touch screen devices where curly braces and the like are difficult to type. Here's a prototype I started for writing Json.
http://nathanathan.com/cfg-gen/