Placeholder Value formatting

Placeholders can be configured so that they show their content in a formatted way. Learn more about how to format your placeholder content using the methods described below.

HTML

A simple way to format your placeholder is to use HTML syntax to define the look of your content in your placeholder. This will of course only work if your placeholder format is set to HTML.

Word Styles

A very powerfull way to do formating is to reference an existing Word style (Word paragraph styles only) in your placeholder content. To do that you can use the HTML class attribute.

Sample 1 (custom style)

<p class="mystylename">My Text</p><br>

In this example the class attribute is referencing the style called 'mystylename'. This will then format the 'My Text' using the 'mystylename' Word Style.

Please note: If you use a style name that does not exist, the Designer Add-In will create the style for you.

Please note: Be aware that if you type a new style name slowly, it could happen that the Designer Add-In creates multiple styles while you are typing. So, it might be best to paste the style names in one go to avoid creating unwanted styles!

Please note: If you are referencing an already existing style be aware that the Designer Add-In will only recognize styles in lower caps (Word limitation). So please make sure that any existing custom style you want to reference is in lower caps.

Please note: If you are referencing an already existing built in style make sure you have used it at least once before you use it in your HTML. If the style has not been used in your document before, the style will loose its formatting when used for the first time via your HTML.

Please note: adding a <br> at the end of your HTML is currently necessary due to a bug in Word.

Sample 2 (built-in style)

<p class="msoSubtitle">My Text</p><br>

In this example the class attribute is referencing a built-in Word style called 'Subtitle'. This will then format the 'My Text' using the 'Subtitle' Word Style.

Please note: adding a <br> at the end of your HTML is currently necessary due to a bug in Word.

BolD

With the <b></b> tag (b standing for bold or strong) you can for instance have parts of your content appear in bold.

Sample

This is <b>my</b> text

This sample will appear as 'This is my text' in the placeholder in Word.

To learn more about how to use HTML to format your content check out any HTML reference. Be aware that not all HTML options will be supported by Word.