Namespace SharpConsoleUI.Highlighting
Classes
- BashSyntaxHighlighter
Stateless syntax highlighter for Bash / POSIX shell scripts. Colors comments, single- and double-quoted strings, variable expansions, control keywords, common builtins, numbers, and operators. Strings are treated as line-local (no multi-line state), and a leading
#only starts a comment when it is at the start of a token (index 0 or preceded by whitespace), so that parameter expansions such as${VAR#prefix}are not mistaken for comments.
- CSharpLineState
Per-line parser state for the C# highlighter (tracks open block comments).
- CSharpSyntaxHighlighter
Regex-based syntax highlighter for C#.
- CssLineState
Per-line parser state for the CSS highlighter (tracks open block comments).
- CssSyntaxHighlighter
Syntax highlighter for CSS (and common SCSS/Less line comments).
- DiffSyntaxHighlighter
Syntax highlighter for unified diff output. Colors +lines green, -lines red, @@hunks cyan, and diff headers bold.
- DockerfileSyntaxHighlighter
Syntax highlighter for Dockerfiles (instructions, flags, variables, strings).
- HtmlLineState
Per-line parser state for the HTML highlighter (tracks comment/script/style blocks).
- HtmlSyntaxHighlighter
Syntax highlighter for HTML, delegating to JS/CSS inside script/style blocks.
- JsLineState
Per-line parser state for the JavaScript/TypeScript highlighter.
- JsSyntaxHighlighter
Syntax highlighter for JavaScript/TypeScript, including template literals.
- JsonLineState
Per-line parser state for the JSON highlighter (tracks open block comments).
- JsonSyntaxHighlighter
Regex-free syntax highlighter for JSON (and JSONC comments).
- MarkdownLineState
Per-line parser state for the Markdown highlighter (tracks open fenced code blocks).
- MarkdownSyntaxHighlighter
Syntax highlighter for Markdown source (headings, emphasis, code, links, fences).
- RazorLineState
Per-line parser state for the Razor highlighter (tracks HTML comment, code block, and brace depth).
- RazorSyntaxHighlighter
Syntax highlighter for Razor/.cshtml, mixing HTML and embedded C#.
- SlnSyntaxHighlighter
Syntax highlighter for Visual Studio solution (.sln) files.
- SyntaxHighlighters
Central registry mapping language names (and aliases) to ISyntaxHighlighter instances. The single source of truth for the language→highlighter mapping, shared by the markdown code-block renderer and any other consumer (e.g. MultilineEditControl), so the mapping is never duplicated per consumer.
- XmlLineState
Per-line parser state for the XML highlighter (tracks comment/CDATA blocks).
- XmlSyntaxHighlighter
Syntax highlighter for XML (tags, attributes, comments, CDATA, entities).
- YamlSyntaxHighlighter
Syntax highlighter for YAML (keys, values, comments, anchors, tags, directives).