VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.Markdown.SyntaxHighlighter Class Reference

Contains methods to perform syntax highlighting. More...

Static Public Member Functions

static List< List< FormattedString > > GetSyntaxHighlightedLines (string sourceCode, string language)
 Performs syntax highlighting for a specified language on some source code. More...
 

Detailed Description

Contains methods to perform syntax highlighting.

Definition at line 73 of file SyntaxHighlighting.cs.

Member Function Documentation

◆ GetSyntaxHighlightedLines()

static List< List< FormattedString > > VectSharp.Markdown.SyntaxHighlighter.GetSyntaxHighlightedLines ( string  sourceCode,
string  language 
)
static

Performs syntax highlighting for a specified language on some source code.

Parameters
sourceCodeThe source code to be highlighted.
languageThe name of the language to use for the highlighting.
Returns
A list of lists of FormattedStrings. Each list of FormattedStrings represents a line.

Definition at line 129 of file SyntaxHighlighting.cs.


The documentation for this class was generated from the following file: