Internal HTML Editor

HTML Executable features an internal HTML editor that lets you directly edit the source code of HTML pages.

To open it, go to the File Manager, then select a HTML page and press Edit. The editor looks like this:

As you can see, the HTML code can be edited in the text box (the HTML syntax is highlighted).

At the top side of the window, you can find a toolbar with standard character and paragraph formatting tools, like in standard HTML editors. But the HTML editor also includes three special buttons that give you access to special commands only available for the IE Browser and HTML Viewer publications.

Note: leave the mouse cursor on a button and its description will appear in the small hint window.

Using the editor

To modify the HTML code, use the text box and make your changes. Be sure to press OK to confirm your changes; HTML Executable will save changes back to your HTML file. Note that a backup file can be created (.BAK extension): see the Environment Options.

Special commands

First button: adding pictures:

This command lets you insert links to graphics into HTML pages: clicking this button will show you the list of available graphic compatible source files. You can then select the wished graphic file and the associated HTML code will be inserted.

You can use this option to add pictures to the system HTML pages if you wish.

Second button: insert HEScript/JavaScript calls

This button is especially designed if you work with scripts (advanced users only). When you click on it, some additional menu commands will appear:

  • Call a HEScript function (link): lets you insert a HTML link (<a>) to call a procedure or a function from a HEScript script. If you select it, HTML Executable will display all of the script functions available in your project. You can then choose which one you want to insert.
    The result is a normal HTML hyperlink that will call the script function when end users click on it.
     
  • Call a HEScript function (JavaScript): inserts a JavaScript code (compatible with IE Browser publications only) that calls a procedure or a function from a HEScript script. HEScript adds additional features to JavaScript so you can use the power of JavaScript to control your publication's behavior (through HEScript).
    If you select it, HTML Executable will display all of the script functions available in your project. You can then choose which one you want to insert.
    The result is a JavaScript code block (<script>...) that will call the script function when the browser executes the block. You can also modify this JavaScript code to integrate it in your own JavaScript procedures (to respond to control events for instance).
     
  • Get global variable (JavaScript): lets you insert a JavaScript function (compatible with IE Browser publications only) that returns the value of a publication's global variables. Publications use "global variables" to store settings; you can manage global variables through HEScript and JavaScript commands.
    You can also see some samples in the system HTML pages.

To create HEScript scripts, please go to the User Scripts tab.

More information about scripting

Third button: add Adobe Flash player panel

Only for HTML Viewer publications and deprecated feature.

Such publications support playing Adobe Flash movies. To display Flash contents, the HTML viewer works with the Adobe Flash player ActiveX control and a special HTML tag called PANEL that tells the HTML viewer to create a Flash control. Do not worry about this PANEL tag: HTML Executable can automatically convert the normal tags into panel tags when compiling your HTML pages.

Starting with HTML Executable 3.3, you can use the standard OBJECT tag way to display Flash objects in HTML pages.

More information about the PANEL tag in the Main Demonstration: use the "Help|Main Demonstration" help command in HTML Executable.