IFormattingInfoPatterns Property |
Gets a list of regular expression patterns used to identify elements of the code.
Namespace:
Ookii.FormatC
Assembly:
Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.1.0
Syntax IEnumerable<CodeElement> Patterns { get; }
ReadOnly Property Patterns As IEnumerable(Of CodeElement)
Get
property IEnumerable<CodeElement^>^ Patterns {
IEnumerable<CodeElement^>^ get ();
}
abstract Patterns : IEnumerable<CodeElement> with get
Property Value
Type:
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