Class XmlLineState
- Namespace
- SharpConsoleUI.Highlighting
- Assembly
- SharpConsoleUI.dll
Per-line parser state for the XML highlighter (tracks comment/CDATA blocks).
public record XmlLineState : SyntaxLineState, IEquatable<SyntaxLineState>, IEquatable<XmlLineState>
- Inheritance
-
XmlLineState
- Implements
- Inherited Members
- Extension Methods
Constructors
XmlLineState(bool, bool)
Per-line parser state for the XML highlighter (tracks comment/CDATA blocks).
public XmlLineState(bool InComment = false, bool InCData = false)
Parameters
InCommentboolTrue when the line begins inside an unterminated XML comment.
InCDataboolTrue when the line begins inside an unterminated CDATA section.
Properties
InCData
True when the line begins inside an unterminated CDATA section.
public bool InCData { get; init; }
Property Value
InComment
True when the line begins inside an unterminated XML comment.
public bool InComment { get; init; }