Documentation Center

Creating custom HTML file types

You can create custom HTML file types to process specific files from a third-party application.

Procedure

  1. Decide for which projects you want to configure file type settings:
    • For the active project, go to the Projects view, and on the Home tab, select Project Settings.
    • For all future projects, go to File > Options.
  2. Select File Types.
  3. In the File Types pane, select New.
  4. In the File Type Information dialog, select HTML, and then specify your custom information:
    1. File type name (mandatory) - Enter a user-friendly name for the file type. This is the name that will appear in the navigation tree.
    2. File type icon (optional) - Select Browse to select an icon. Existing file types use icons from the installation assembly. You cannot browse for these icons. This appears alongside the file name.
    3. File type identifier (mandatory) - Enter a unique identifier for this set of file types.
    4. Name of individual document - This appears in the Save as dialog, which is displayed when you close the file.
    5. Name of document category- This is displayed in the drop-down list associated with the File open dialog, which is displayed when you open the file.
    6. File dialog wildcard expression - Specify a wildcard name expression for this file type. When you open the file during translation, the Open Document dialog displays this expression in a drop-down list.
  5. Select Next.
  6. On the HTML Elements Import page, select whether you want to base your new HTML file type on the predefined HTML 5 configuration, or use an existing SGML, HTML, XML, XSD or INI file to define the HTML elements of the new file type.
  7. Select Next.
  8. Complete the: Parser, File Detection, Entities settings, Writer settings, Whitespace Settings pages.
  9. Select Finish.
    The new, custom file type appears in the File Types navigation tree.