Lingo To HTML Exporter

A utility for converting Lingo to marked-up HTML. Paste some Lingo into the 'Input" box and view the HTML in the "output" box.

Screenshot of Lingo-HTML Exporter Screenshot of Lingo-HTML Exporter

The following styles are used in the HTML:

 .Lingo 

{

    font-family: "Courier New", Courier, mono;

    font-size: 12px;

    background-color: #FFFFFF;

    border: 1px dotted #CCCCCC;

    padding: 4px;

 }



.Lingokeyword {

    color: #0000C8;

}



.LingoCustom {

    color: #008000;

}



.LingoDefault {

    color: #000000;

}



.LingoLiteral {

    color: #808080;

}



.LingoComment {

    color: #C80000;

}

Note - this is an authoring only utility (it only runs in Director in 'authoring mode') since it is getting Director's scriptEditor to the bulk of the work.

Downloads

You can download a ZIP (20k) of the Utility Movie here (put into Director's Xtras folder and access it via the Xtras menu).

You can download the Director 8.5 source file here. (requires OS Controls Xtra)

Configuration

Note: If you have changed your default text and colour preferences in Director, you will need to change the preferences used by this utility movie - look for a file called "LingoToHTMLUtil4.txt" in the prefs folder of Director (the movie will create it the first time it is run). It will look like this:

$LingoHTMLParser

FontNames="Monaco, Courier New" size=1

LingoDefault="#000000"

LingoKeyword="#0000C8"

LingoCustom="#004000"

LingoLiteral="#404040"

LingoComment="#C80000"

$(script "App")

myLastDirectory=MrsPeel:Users:lukew:Desktop:

ExportFullHTML=0

You will need to edit the colours to match your preferences set in Director.

First published 13/06/2005