class Tartrazine::Ansi

Defined in:

formatters/ansi.cr

Constructors

Instance Method Summary

Instance methods inherited from class Tartrazine::Formatter

format(text : String, lexer : Lexer) : String format, name : String name, name=(name : String) name=, style_defs : String style_defs, theme : Theme theme, theme=(theme : Theme) theme=

Constructor Detail

def self.new(theme : Theme = Tartrazine.theme("default-dark"), line_numbers : Bool = false) #

[View source]

Instance Method Detail

def colorize(text : String, token : String) : String #

[View source]
def format(text : String, lexer : BaseLexer, outp : IO) : Nil #

[View source]
def format(text : String, lexer : BaseLexer) : String #

[View source]
def line_numbers=(line_numbers : Bool) #

[View source]
def line_numbers? : Bool #

[View source]