CodeElement Constructor (String, String)FormatC Syntax Highlighting Class Library
Initializes a new instance of the CodeElement class with the specified name and regular expression.

Namespace: Ookii.FormatC
Assembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public CodeElement(
	string name,
	string regex
)

Parameters

name
Type: OnlineSystem String
The name of this pattern. This name will be used as the CSS class name in the generated HTML.
regex
Type: OnlineSystem String
The regular expression for this code element.
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullExceptionname is   or regex is  .
OnlineSystem ArgumentExceptionname is an empty string.
See Also