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 an HTML page and press Edit Source. The editor looks like this:

As you can see, the HTML code can be edited in the text box: HTML syntax is highlighted and line numbers are displayed. At the top side of the window, you can find a toolbar with standard character and paragraph formatting tools, like in standard HTML editors. The HTML editor also includes three special buttons that give you access to special commands only available for IE and HTML Viewer publications.
Note: leave the mouse cursor on a button and its description will appear in the small hint window. Using the editorTo 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 (.~HTM extension): see the Environment Options. Special commands First button: adding images
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 dialog boxes if you wish. Second button: insert HEScript/JavaScript calls
This button is especially designed if you work with HEScript scripts (advanced users only). When you click it, some additional menu commands will appear: Call an HEScript function (link): lets you insert an HTML link (<a>) to call a procedure or a function from an 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 an HEScript function (JavaScript): inserts a JavaScript code (compatible with IE Browser publications only) that calls a procedure or a function from an 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 into 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
|