Declaration
public static ConsoleColoredString Colorize(
RhoElement text
)
Summary
Converts the specified
RhoML parse tree into a console colored string according to
CommandLineParser-specific rules. This method is used to convert
DocumentationRhoMLAttribute
documentation into colored text. See Remarks.
Remarks
A number of named tags have a special meaning. Any tag named after a value of
ConsoleColor
results in that color. Both spellings of gray/grey are supported. The {h}...{} named tag stands for the
highlight color (white). {nowrap}...{} can be placed around text that must not be broken into multiple lines
by the word wrapper. The tags {field}, {option}, {command} and {enum} are used to refer to the corresponding
command line syntax element, and is highlighted the same way the documentation generator would highlight
references to these entities.