You can use properties start, end, before, and after to add text or code around every instance of a format; and property replace to substitute text or code for each instance. All five apply to text formats; before, after, and replace apply to table formats also.
These properties are not based on CSS, because many current browsers (notably Internet Explorer) do not support the CSS settings required. Therefore, DITA2Go adds the code for these properties directly to HTML output.
The content-adding properties provide alternatives to the corresponding [StyleCode*] sections in your project configuration file. For example:
[WordStyles] isbn = CodeStart
[StyleCodeStart] isbn = ISBN:
[isbn] start = ISBN:
You can include macros in the content-adding settings; see §37.9.3 Surrounding or replacing text with code or macros. Each setting must either fit all on one line, or reference a macro. Any regular configuration settings in [StyleCode*] sections in your project configuration file, or in a general configuration template, override content-adding properties.
Table 37-10 shows exactly where each added content is placed in output.
Some examples for HTML output:
[FormatName] before = <h3 class="caution">Caution!</h3> start = <i>For example: </i> end = <$MyEndingMacro> after = <hr style="width:50%;"/>
[FormatName] before = \\pard \\s<$_stylenum("CautionFormat")> Caution!\\par start = {\\i For example:\\~ } end = <$MyEndingMacro> after = \\pard\\li2880\\ri2880\\brdrb\\brdrw20\\brdrsp120\\par
For RTF content, you can also use the following predefined macros:
[TOC] based = Heading2 font size = 13pt line height = 16pt margin top = 8pt section = FrontSection tabs = dot R3in end = \\tab \\~<$_PageRef>