saveAsHtml command
Use the saveAsHtml command to save the document as a file in a format suitable for display in an HTML browser.
Syntax
saveAsHtml [ prompt | visible | block | lineNumbers ] [...] [ "filename" ]
Parameters
prompt Use the optional parameter prompt to prompt the user for the name of the file under which this document should be saved. visible Use the optional parameter visible to indicate that only the visible elements should be saved. block Use the optional parameter block to indicate that only the selected text should be saved. lineNumbers Use the optional parameter lineNumbers to indicate that line numbers should be displayed to the left of each line. filename Use the filename parameter to specify the file name under which this document should be saved. If no file name is specified, the document is saved under the name in the name setting with the extension ".html" added.
Status
The status parameter will be set to one of the following:
null Indicates that the save was successful. save.failed Indicates that the save was unsuccessful. save.cancelled Indicates that the save was cancelled by the user.
Examples
saveAsHtml saveAsHtml "test.java.htm"
Editor commands, actions, and parameters
name parameter
visible parameter
save action
saveAs action
Default editor commands