By default, the indentation width for the HTML tags and other HTML code is one tab. You can override this setting by changing the TabWidth feature attribute of the Dom object.

Change the tab width

  1. In the Help Producer Project Editor, select Filter, Advanced, and click Embedded Script to open the Help Producer code editor.
  2. Insert the following code fragment into the embedded script, where n specifies the number of spaces to indent. A number of -1 specifies to insert a single tab instead of spaces.
    Dom.SetFeature("TabWidth", n);

Example

To use no indentation in all HTML files, insert the following code into your script:

Dom.SetFeature("TabWidth", 0);

See Also

Tips and Tricks