Table of Contents

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

InComment bool

True when the line begins inside an unterminated HTML comment.

InScript bool

True when the line begins inside an open <script> block.

InStyle bool

True 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

bool

InScript

True when the line begins inside an open <script> block.

public bool InScript { get; init; }

Property Value

bool

InStyle

True when the line begins inside an open <style> block.

public bool InStyle { get; init; }

Property Value

bool