Configure colors for the redline preprocessor
Use redline version to allow 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. You can reconfigure it to use other colors.
The redline.ditaval file is a standard ditaval file with
revision property values configured in the <revprop> element.
rev attribute only for
flagging. See the DITA language specification.To configure colors for the redline preprocessor:
-
Open the redline preprocessor defined at
%OutputGenDir%/data/resources/redline.ditaval.
Note: If this is the first time that you are modifying the redline.ditaval file, open the redline.ditaval.orig file and save it as redline.ditaval after you remove the .orig suffix.
-
Locate the
valattribute for the new behavior.Default configuration
<?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>Suppose you need to update the highlight flag defined in theval="deltaxml-add"from its default.<revprop action="flag" val="deltaxml-add" backcolor="#3399CC" changebar="style:solid;width:1pt;offset:5pt;color:#3399CC"/> -
Update the property attributes to align with the new behavior.
Table 1. Possible redline attributes for the revision property <revprop> element Attribute
Valid option Description and valid values
actionBehavior of the flag or highlight
flagInclude and highlight the modified content in the output
passthroughInclude, but do not highlight, the modified content in the output valType of action to flag
deltaxml-addText added since the last revision
deltaxml-deleteText removed from the last revision
backcolorBackground color of the modified text
Note: Enter a six-digit color hex code, such asCC0000for red.Note: The preprocessor ignores this attribute ifactionis not set toflag.changebarCharacteristics of the change bar
Note: The preprocessor ignores this attribute ifactionis not set toflag.styleStyle of change bar line, such as type of line and its location to the marked text, with the default as a solid line
[none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset]widthValue in points for width of change bar, with no width points (
Xpt) as defaultplacementPlacement of the change bar relative to the marked text
[start | end | left | right | inside | outside | alternate]offsetValue in points for width of offset from marked text, with no offset points (
Xpt) as defaultcolorHex value for color, with blue ( #3399CC) as defaultSuppose you want to change the background and change bar color from blue to green and change the change bar itself from a solid line to a dotted line.<revprop action="flag" val="deltaxml-add" backcolor="#76EE00" changebar="style:dotted;width:1pt;offset:5pt;color:#76EE00"/> -
Save and close the custom
ditavalfile, such as redline-acme.ditaval or redline.ditaval.custom. - Restart the Ixiasoft Output Generator service.