I didn’t mean the code could handle any programming language. I meant that the Pythonscript coder could account for it (any programming languages they are interested in) at coding time. :)
And of course I meant any “realistic” programming language with a decent syntax, not necessarily the languages with hellish syntaxes. Thus, not ANY programming language; I should have been clearer.
I’ve done this sort of thing before in MultiEdit’s macro language (CMAC) for the C family of languages, and Perl/Python. That’s what I’m basing my “wouldn’t be too hard” comment on.