C# Class Core.Colorizer

显示文件 Open project: jflam/repl-lib Class Usage Examples

Public Methods

Method Description
Colorize ( DlrEngine engine, string code, TokenInfo>.Action proc ) : List
ColorizeErrors ( string error ) : List

Private Methods

Method Description
CreateLeadingWhitespaceRun ( string code, int position, TokenInfo token ) : System.Windows.Documents.Run
CreateTextRun ( string code, TokenInfo token ) : System.Windows.Documents.Run

Method Details

Colorize() public static method

public static Colorize ( DlrEngine engine, string code, TokenInfo>.Action proc ) : List
engine DlrEngine
code string
proc TokenInfo>.Action
return List

ColorizeErrors() public static method

public static ColorizeErrors ( string error ) : List
error string
return List