File Preferences

Figure 14.7. Options - File Types

Options - File Types

The File Types tab allows you to associate certain file types with your preferred editor when opened in PureCM. Press the <New> button or amend existing associations using the <Properties> button. Associations can be removed if necessary using the <Delete> button.

You can specify the file extension if you want to treat files using the same file type differently. For example, you might want to use the default editor to open sln files but use the PureCM editor to open txt files.

Figure 14.8. Options - File Type Settings

Options - File Type Settings

Choose the Type from the drop down list and enter the Subtype. You can also enter an extension if you want to filter these settings based on the file extension. Or leave the extension blank to apply to all files with this file type.


For existing file types it may be worth checking the Properties of a file within PureCM before creating the association. For example, if the file type is listed as 'text/web' then select 'text' from the Type drop down list and type 'web' in the Subtype field.

Enter a preprocessing command in the 'Preprocess Command' field. This command will be run before the file contents are displayed within the PureCM Editor or Diff Tool. '%1' is replaced with the original file path and '%2' is replaced with the new file path.


The Windows GUI is installed with two utility programs - WordToXML and ExcelToXML. If Word and Excel are installed, these programs convert a Word or Excel document to an XML file. Differences made between revisions can now be seen as differences in an XML document, as opposed to a binary hex dump.

Tick the 'This file is xml and needs to be formatted' checkbox if the file content is unformatted xml. When this checkbox is ticked the xml will be properly indented before the contents are displayed within the PureCM Editor or Diff Tool.


The xml formatting is performed after the preprocessor command. So with Microsoft Word files the WordToXML program converts the the Word document to an unformatted xml file. The xml content of this file is then formatted because the 'This file is xml and needs to be formatted' checkbox is ticked.

Figure 14.9. Options - File Editor

Options - File Editor

Select the 'Editors' tab and use the arrow buttons to move your preferred editor to the top of the list. If your preferred editor is not listed, it can be added using the <New> button.


Where you want to use different editors for the same file type, add the editors here and then right click on the file and select 'All Tasks', 'Open Using' to select which one to use.

Alternative 'Diff Apps' and 'Merge Apps' for this file type may be specified in the same way. For a Diff App the '%1' parameter is used for the base file and '%2' is used for the new file. For a Merge App '%1' is used for the base file, '%2' for the server file, '%3' for the local file, '%4' for the saved merge file, '%5' for the server title, '%6' for the local title, and finally '%7' for the merge file title.

Figure 14.10. Options - File Diff Options

Options - File Diff Options

'Diff Options' allows you customise the Diff Tool by adding line numbers and specifying how whitespace, case and tabs are handled for this file type. The 'Use intraline' setting specifies the percentage of a line that should match over which the whole line is marked as modified. If less than the percentage is modified then only the individual edits are marked.

Figure 14.11. Options - File Diff Fonts

Options - File Diff Fonts

'Diff Fonts' allows you to specify the colours and fonts used in the Diff Tool for this file type. These can be individually modified or you can select one of the standard schemes from the drop down list.

Figure 14.12. Options - File Merge Fonts

Options - File Merge Fonts

In a similar way the colours and fonts used in the Resolve Tool for this file type can also be modified.

Press <Ok> when completed.