Class HtmlLineState
- Namespace
- SharpConsoleUI.Highlighting
- Assembly
- SharpConsoleUI.dll
Per-line parser state for the HTML highlighter (tracks comment/script/style blocks).
public record HtmlLineState : SyntaxLineState, IEquatable<SyntaxLineState>, IEquatable<HtmlLineState>
- Inheritance
-
HtmlLineState
- Implements
- Inherited Members
- Extension Methods
Constructors
HtmlLineState(bool, bool, bool)
Per-line parser state for the HTML highlighter (tracks comment/script/style blocks).
public HtmlLineState(bool InComment = false, bool InScript = false, bool InStyle = false)
Parameters
InCommentboolTrue when the line begins inside an unterminated HTML comment.
InScriptboolTrue when the line begins inside an open <script> block.
InStyleboolTrue when the line begins inside an open <style> block.
Properties
InComment
True when the line begins inside an unterminated HTML comment.
public bool InComment { get; init; }
Property Value
InScript
True when the line begins inside an open <script> block.
public bool InScript { get; init; }
Property Value
InStyle
True when the line begins inside an open <style> block.
public bool InStyle { get; init; }