Class SyntaxText
Syntax text renderable
Inheritance
Namespace
Syntax
public class SyntaxText : SimpleCyclicWriter
Constructors
SyntaxText(Mark?, params object[])
Makes a new instance of the syntax text renderer
Declaration
public SyntaxText(Mark? text = null, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| text | Mark | Text to use |
| vars | object[] | Variables to format the text with |
Properties
PathToHighlight
Path to the Highlight executable (platform-dependent). You can download a copy from here.
Property Value
string
Declaration
public string PathToHighlight { get; set; }
Syntax
Language type
Property Value
string
Declaration
public string Syntax { get; set; }
Text
Text to render
Property Value
string
Declaration
public string Text { get; set; }
UseColors
Whether to use colors or not
Property Value
bool
Declaration
public bool UseColors { get; set; }
Methods
Render()
Renders a syntax text
Returns
string
Rendered text that will be used by the renderer
Declaration
public override string Render()