To configure a file-type click on the 'Edit' menu and then select 'Configuration options...'. A dialog will be displayed with three separate tabbed pages; select the third page 'File-types'.
Select the file-type you want, and then click on the Edit button (You can also delete an unwanted entry or add a new entry).
A new dialog will be displayed with three tabbed pages. These are:
On this page, you give each file type a short ID and a longer title. You should also set a Filter. This is a list of the file extensions that apply to the file-type. Typically this is an * followed by . and then the extension; for example: *.xml.
You can have several alternative extensions, in which case they should be separated by semi-colons. For example: *.htm;*.html;*.shtm;*.shtml;*.xhtm;*.xhtml. Note: that when a new file is created the first extension in the filter list is the one that gets used.
You may also specify a Highlighter. This tells the editor what method to use to apply syntax highlighting to the text.
XML:Wrench can automatically complete tag elements when working in XML or HTML style documents. If you tick this option, then whenever you type <sometag> the closing tag will be added automatically. The same option will also add " " whenever you add an attribute inside a tag.
This page allows you to set the default name given to new files. You can also specify the location of a help file for that file type.
XML:Wrench creates a new folder for each file-type, these are in the help folder wherever you chose to install XML:Wrench. The help file is usually called index.html. Other help files, images, style-sheets are stored in the same folder.
This page allows you to set the behaviour of the three preview buttons. You can disable the button, or set it to run whatever program Windows would normally use for a file with that extension. Or you can specify some other program.
For example, this is how you might setup HTML files. Preview button 1 mioght bring up Internet Explorer. You might then specify some other web browser on button 2, say Netcape or Opera. The final button might run another editor, perhaps Frontpage or DreamWeaver.
When you create a new file in XML:Wrench you get prompted for the type of the file you are about to create. You can at the same time select a suitable blank/template file to use as a starting point.
This blank file, might have a standard outline of the document, or your standard header & copyright notice.
To add a file to the list of templates, create the file in XML:Wrench and then save it in the appropriate folder. Each file-type has it's own folder and within this there is a folder called blanks for the blank templates.
For example, if you installed XML:Wrench in:
then you would find the blank templates for HTML in: