Creating custom HTML file types
You can create custom HTML file types to process specific files from a third-party application.
Procedure
- 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.
- Select File Types.
- In the File Types pane, select New.
- In the File Type Information dialog, select HTML, and then specify your custom information:
- File type name (mandatory) - Enter a user-friendly name for the file type. This is the name that will appear in the navigation tree.
- 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.
- File type identifier (mandatory) - Enter a unique identifier for this set of file types.
- Name of individual document - This appears in the Save as dialog, which is displayed when you close the file.
- 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.
- 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.
- Select Next.
- 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.
- Select Next.
- Complete the: Parser, File Detection, Entities settings, Writer settings, Whitespace Settings pages.
- Select Finish.
The new, custom file type appears in the File Types navigation tree.