mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-31 09:49:37 +00:00
Require main branch sixteen for now, line-highlight style improvements
This commit is contained in:
17
src/main.cr
17
src/main.cr
@@ -23,12 +23,13 @@ HELP
|
||||
|
||||
lexer = Tartrazine.lexer("crystal")
|
||||
theme = Tartrazine.theme(ARGV[1])
|
||||
formatter = Tartrazine::Json.new
|
||||
# formatter.standalone = true
|
||||
# formatter.class_prefix = "hl-"
|
||||
# formatter.line_number_id_prefix = "ln-"
|
||||
# formatter.line_numbers = true
|
||||
# formatter.highlight_lines = [3..7, 20..30]
|
||||
# formatter.linkable_line_numbers = false
|
||||
# formatter.wrap_long_lines = false
|
||||
# formatter = Tartrazine::Json.new
|
||||
formatter = Tartrazine::Html.new
|
||||
formatter.standalone = true
|
||||
formatter.class_prefix = "hl-"
|
||||
formatter.line_number_id_prefix = "ln-"
|
||||
formatter.line_numbers = true
|
||||
formatter.highlight_lines = [3..7, 20..30]
|
||||
formatter.linkable_line_numbers = false
|
||||
formatter.wrap_long_lines = false
|
||||
puts formatter.format(File.read(ARGV[0]), lexer, theme)
|
||||
|
Reference in New Issue
Block a user