Creating and Editing HTML Tidy Profiles
(tick_24Pro, tick_24Std, cross_24Lite)

The tidyprofiles.xml file contains HTML Tidy profiles that are used to configure HTML Tidy when it is used with the HTML Tidy Tool in CSE HTML Validator. The tidyprofiles.xml file is usually located in a folder like C:\Documents and Settings\(username)\Application Data\AI Internet Solutions\CSE HTML Validator\16.0 (Windows XP) or C:\Users\(username)\AppData\Roaming\AI Internet Solutions\CSE HTML Validator\16.0 (Vista and Windows 7/8). By editing this file, you can create multiple profiles with different command line parameters. This mechanism provides a high level of control over HTML Tidy, letting you control all possible options. When using and configuring HTML Tidy in CSE HTML Validator, you can easily choose from the available profiles specified in tidyprofiles.xml.

NOTE: HTML Tidy profiles are all contained in the tidyprofiles.xml file. Each profile does not have a separate file.

To create a new HTML Tidy profile, edit tidyprofiles.xml and add a new "profile" tag in the "tidyprofiles" section. When adding a new "profile" tag:

Do not use the same profile name for more than one profile. Profile names are case-sensitive.

The "args" attribute lets you specify with what command line parameters HTML Tidy is called. See the HTML Tidy Quick Reference Page (new window) for what's available.

Use an optional "hint" attribute to describe the profile.

To easily edit this file, choose Options->Validator Engine Options->Edit Configuration Files->HTML Tidy Profiles in the editor.


If you want to specify a lot of options, then you may want to create a separate settings/options file for HTML Tidy and add a profile that uses the -config option to specify the location of the file. For the format of the HTML Tidy settings/options file, see HTML Tidy's own documentation.

If you need to use double quotes in the value for an attribute, then you can enclose the value in single quotes and/or use the " character reference. For example, args='-config "C:\My Tidy Configs\config1.txt"' or args="-config "C:\My Tidy Configs\config1.txt"".

Example tidyprofiles.xml File

<?xml version="1.0"?>
 <profile name="Default"
   hint="Uses HTML Tidy's default options, so no arguments are used." />
 <profile name="Indent 1"
   args="--indent 1 --indent-spaces 1"
   hint="Indents element content 1 space." />

HTML Tidy Links