abstract class Tartrazine::Formatter

Overview

This is the base class for all formatters.

Direct Known Subclasses

Defined in:

formatter.cr

Instance Method Summary

Instance Method Detail

def format(text : String, lexer : Lexer) : String #

Format the text using the given lexer.


[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def style_defs : String #

Return the styles, if the formatter supports it.


[View source]
def theme : Theme #

[View source]
def theme=(theme : Theme) #

[View source]