Configure colors for the redline preprocessor
Redlining allows users to compare a map with an earlier version of itself. By default, the PDF output file highlights added text in blue and deleted text in red, but you can change these colors.
<?xml version="1.0" encoding="UTF-8"?>
<!-- This sets the background for deleted text to red and for added text to blue. Used by redline PDF transform -->
<val>
<!-- the changebar attribute supports the following fields :
style:[none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset]
width:Xpt
placement:[start | end | left | right | inside | outside | alternate]
offset:Xpt
color: #FFFFFF - color code -->
<revprop action="flag" val="deltaxml-add" backcolor="#3399CC" changebar="style:solid;width:1pt;offset:5pt;color:#3399CC"/>
<revprop action="flag" val="deltaxml-delete" backcolor="#CC0000" changebar="style:solid;width:1pt;offset:5pt;color:#CC0000"/>
</val>
The redline.ditaval file is a
standard Ditaval file, and the values are configured in the <revprop> element. The <revprop>
element identifies a value in the rev
attribute that must
be highlighted by the redline preprocessor. Unlike the other conditional processing
attributes, which can be used for both filtering and flagging, the rev
attribute can only be used for flagging.
<revprop>
element, see the DITA language
specification.The following attributes are supported in the <revprop> element:
Attribute | Description |
---|---|
action |
Behavior of the flag; valid values are:
|
val |
Type of action to flag; valid values are:
|
backcolor |
Background color of the modified text; enter a six-digit
color hex code (for example, CC0000 for red).
This attribute is ignored if action is not set
to flag . |
changebar |
Characteristics of the change bar; valid values are:
This
attribute is ignored if action is not set to
flag . |
To change the default colors for the redline preprocessor: