3.5 Using wildcards in configuration settings

In a variable-key setting, you can apply the same value to multiple keys by substituting a wildcard “*” or “?” for all or part of the key name, as follows:

You can use wildcards whenever the key is a format name or an identifier, provided you have not turned off wildcard usage (see §4.1.10 Specifying how to treat cases, spaces, and wildcards). For example, to make all paragraphs whose format names start with Heading appear bold and centered in HTML output:

[HtmlStyles]
Heading*=Bold Center

You can exclude one or more key names from a group by listing the exceptions first:

[HtmlStyles]
Heading 4=
Heading 3=Bold Left
Heading*=Bold Center
z????title=Bold Right
*=Left

In this example:

DITA2Go applies the first entry in a section that matches for each key name, so always put the exceptions before the general case.

Previous Topic:  3.4 Specifying file paths in configuration settings

Next Topic:  3.6 Commenting out configuration sections

Parent Topic:  3. Editing configuration files

Sibling Topics:

3.1 Working with DITA2Go configuration files

3.2 Understanding where project settings come from

3.3 Understanding the rules for configuration settings

3.4 Specifying file paths in configuration settings

3.6 Commenting out configuration sections