module Wombat

Defined in:

wombat.cr
wombat/lib_bat.cr
wombat/version.cr

Constant Summary

VERSION = {{ (`shards version /home/runner/work/wombat/wombat/src/wombat`).chomp.stringify }}

Class Method Summary

Class Method Detail

def self.bat_c_version : String #

Returns the version of the bat_c


[View source]
def self.pretty_print(input : String, language : String | Nil = nil, theme : String | Nil = nil, tab_width : Int = 4, colored_output : Bool = true, true_color : Bool = true, header : Bool = false, line_numbers : Bool = true, grid : Bool = true, rule : Bool = true, show_nonprintable : Bool = false, snip : Bool = true, wrapping_mode : Int = 1, use_italics : Bool = true, paging_mode : Int = 1, highlight_line : Int = -1) : Nil #

Pretty print the input string


[View source]
def self.pretty_print_file(path : Path | String, language : String | Nil = nil, theme : String | Nil = nil, tab_width : Int = 4, colored_output : Bool = true, true_color : Bool = true, header : Bool = true, line_numbers : Bool = true, grid : Bool = true, rule : Bool = true, show_nonprintable : Bool = false, snip : Bool = true, wrapping_mode : Int = 1, use_italics : Bool = true, paging_mode : Int = 1, highlight_line : Int = -1) : Nil #

Pretty print the input file


[View source]
def self.pretty_string(input : String, language : String | Nil = nil, theme : String | Nil = nil, tab_width : Int = 4, colored_output : Bool = true, true_color : Bool = true, header : Bool = false, line_numbers : Bool = true, grid : Bool = true, rule : Bool = true, show_nonprintable : Bool = false, snip : Bool = true, wrapping_mode : Int = 1, use_italics : Bool = true, paging_mode : Int = 2, highlight_line : Int = -1) : String #

Get the highlighted string of the input


[View source]