Literate Programming from HTML

OK, let’s see if this works…

This is the basic structure of the “Hello, World!” program in C#:

using System;

class Hello
{
   <getchunk id="Main"/>
}

where the Main chunk is defined as :

static void Main()
{
   Console.WriteLine("Hello, World!");
}

C# Command-Line Extraction

And if you clone my Github repository, you can:

$ mono mtangle.exe MyWordPressPage.html HelloWorld

using System;

class Hello
{

static void Main()
{
   Console.WriteLine("Hello, World!");
}

}


You can read a poorly-written bootstrapping explanation here.