XmlFormattingInfo Class

Provides formatting info for XML documents.

Definition

Namespace: Ookii.FormatC
Assembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.3.2+a0abe9e363271833c90424d1444b43a67fa5858f
C#
public class XmlFormattingInfo : IFormattingInfo
Inheritance
Object    XmlFormattingInfo
Implements
IFormattingInfo

Remarks

Because the XML formatter is regular expression based, it has some limitations.

The most important is that use of the > character as text (not part of an XML tag) is not handled correctly. If the > character occurs within an attribute value, any further attributes of that element will not be colored correctly. If the > character occurs in the text content of the document, it will be colored as an element delimiter.

To avoid these issues, we recommend that you encode the > character as > in XML documents that you wish to process with FormatC.

Constructors

XmlFormattingInfo Initializes a new instance of the XmlFormattingInfo class.

Properties

CaseSensitive Gets a value that indicates whether the language to be formatted is case sensitive.
Patterns Gets a list of regular expression patterns used to identify elements of the code.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

See Also