Class ConsoleOut
Provides helper methods for writing colored fragments or tooltips to the console.
public static class ConsoleOut
- Inheritance
-
ConsoleOut
- Inherited Members
Methods
Write(Word)
Writes a word to the console.
public static void Write(Word word)
Parameters
wordWordThe word to write.
Write(string, Fragment)
Writes text to the console with specific fragment style information.
public static void Write(string text, Fragment fragment)
Parameters
Write(string, IEnumerable<Fragment>)
Writes source code with fragments to the console. Does not include basic syntax highlighting for keywords.
public static void Write(string source, IEnumerable<Fragment> fragments)
Parameters
sourcestringThe source code.
fragmentsIEnumerable<Fragment>A list of fragments for color information.
WriteLine(Tooltip)
Writes a tooltip to the console.
public static void WriteLine(Tooltip tooltip)
Parameters
tooltipTooltipThe tooltip to write.