WinISLE
A recursive text editor.
WinISLE is a simple text editor that utilizes the mystic powers of recursion and transclusion by storing blocks of text in variables, and then allowing the usage of a procedural programming language to interact with them. This is somewhat similar to how LaTeX does things--except with few or no document-centric features, and nothing involving the least bit of typesetting control.
While this does not make ISLE very convenient for most applications of TeX, it is useful for plain-text documents that need to be broken up into sections, element or character names that need to be changed often, or programs centred around random phrase generation.
Code is inserted into text by wrapping it in {{double curly brackets}}. Other blocks of text can be simply referred to as {{blockoftext}}, or {{var("blockoftext")}}. (The latter format, of course, allows for more excitement, like {{var("blockoftext_" & int(_rnd * 20))}} for the contents of blockoftext_[random number from 0 to 19].)
Anyway. You can get a Windows implementation written in VB6 below. The procedural language is Leaflet; refer to this for more guidance.
Also available is a function reference for WinISLE Leaflet, which is basically pure Leaflet. It is below, too. Quaintly, you will need WinISLE to read it, but I guess you could strip out the icon manually and get a plain text file if you really wanted.
WinISLE files