Font highlight color ==================== Text in a Word document can be "highlighted" with a number of colors, providing text background color. The visual effect is similar to that produced using a highlighter (often fluorescent yellow) on a printed page. Protocol -------- Text is highlighted by assigning a member of `WD_COLOR_INDEX` to `Font.highlight_color`. >>> font = paragraph.add_run().font >>> font.highlight_color None >>> font.highlight_color = WD_COLOR_INDEX.YELLOW >>> font.highlight_color YELLOW (7) >>> font.highlight_color = WD_COLOR_INDEX.TURQUOISE >>> font.highlight_color TURQUOISE (3) >>> font.highlight_color = None >>> font.highlight_color None Enumerations ------------ * `WdColorIndex Enumeration on MSDN`_ .. _WdColorIndex Enumeration on MSDN: https://msdn.microsoft.com/EN-US/library/office/ff195343.aspx XML Semantics ------------- Mapping of `WD_COLOR_INDEX` members to `ST_Highlight` values:: AUTO = 'default' BLACK = 'black' BLUE = 'blue' BRIGHTGREEN = 'green' DARKBLUE = 'darkBlue' DARKRED = 'darkRed' DARKYELLOW = 'darkYellow' GRAY25 = 'lightGray' GRAY50 = 'darkGray' GREEN = 'darkGreen' PINK = 'magenta' RED = 'red' TEAL = 'darkCyan' TURQUOISE = 'cyan' VOILET = 'darkMagenta' WHITE = 'white' YELLOW = 'yellow' Specimen XML ------------ .. highlight:: xml Baseline run:: Black text on white background Blue text, Bright Green Highlight:: Blue text on bright green background Red text, Green Highlight:: Red text on green background Schema excerpt -------------- .. highlight:: xml According to the schema, run properties may appear in any order and may appear multiple times each. Not sure what the semantics of that would be or why one would want to do it, but something to note. Word seems to place them in the order below when it writes the file.::