Load HTML into Programs

This utility stores the Prefix, the HTML Filename, the SM32 Program Name and the HTML Directoty Name between executions of the utility. Often while programming you will be modifying the same html file over and over again so you can simply do a 'util html' and click Load Html. This utility updates the disk copy of the SM32 Program so if you have it in your workspace you should reload it after the 'util html'.

Prefix:
To have this utility choose the SM32 Program name for you and to have the 'Load All Html' work properly you must choose and stick with a Prefix. If you create an html file called START.HTML and you set a Prefix of D_ then a Program named D_START is created in your SETDISK 0 directory. You will then do a CALL "D_START",P![all] to display the START.HTML page.

First Load:
The first time (there is no program) you load an html file the utilily gets a copy of the program $__EMPTY and changes the REM 10 to match the program name.

HTML Filename:
You can load a filename into this field by either the pull down Select list or browsing your hard drive. The Select list contains all the .HTM and .HTML files found in 'Enter Directory Name'. Once the HTML Filename is selected the utility generates a program name with the Prefix and the root part of the HTML name. If this program exists (in any SETDISK) its pathname is placed in the SM32 Program Name box. If it does not exits the program name is added to the path of SETDISK 0 (First Load).

SM32 Program Name:
You can change the default name by using the browse button.

Load Html - button: In the SM32 Program the utility deletes lines 80000 thru 89999 and replaces them with a routine that when called returns the HTML file in a string. No other lines are modified.
The Generated routine is accessed as follows:
140 CALL GET_HTML,A$ ; REM GET_HTML is located at LINE 80002
145 A$=DCMP(A$) ; REM DECOMPRESS A$
150 REM A$ now contains the complete HTML file

Load All Html - button: The utility goes through the whole directory and updates the html in the associated program. It uses the prefix and the root html name as the program name.