This class can highlight source code keywords with color.
It can take source code of a given language and searches it for given keywords that have special meaning in that language.
The class highlights the keywords using HTML tags to mark them with certain colors.
The keywords and colors to highlight are configurable parameters.
Syntax highlighting is use to show different colors to be given to dozens of different lexical sub-elements of syntax.These include keywords, comments, control-flow statements, variables, and other elements.Programmers often customize their settings to show as much useful information as possible without making the code difficult to read. |