IFormattingInfoPatterns Property

Gets a list of regular expression patterns used to identify elements of the code.

Definition

Namespace: Ookii.FormatC
Assembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.3.2+a0abe9e363271833c90424d1444b43a67fa5858f
C#
IEnumerable<CodeElement> Patterns { get; }

Property Value

IEnumerableCodeElement
A list of CodeElement classes that provide regular expressions for identifying elements of the code.

Remarks

When implementing this property, you should return a CodeElement for each element that needs a different formatting style, such as keywords, comments or strings. The Name property will be used as the CSS class name in the HTML output of the CodeFormatter.

When processing the source code, the CodeFormatter will process the patterns in the order they are provided here.

See Also