mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-31 09:49:37 +00:00
HTML formatter option: line_numbers / highlight_lines
This commit is contained in:
@@ -6,5 +6,6 @@ formatter = Tartrazine::Html.new
|
||||
formatter.standalone = true
|
||||
formatter.class_prefix = "hl-"
|
||||
formatter.line_number_id_prefix = "ln-"
|
||||
formatter.line_number_start = 3
|
||||
formatter.line_numbers = true
|
||||
formatter.highlight_lines = [3..7, 20..30]
|
||||
puts formatter.format(File.read(ARGV[0]), lexer, theme)
|
||||
|
Reference in New Issue
Block a user