mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
Fix example code in README
This commit is contained in:
parent
3ebedec6c1
commit
76ef1fea41
@ -63,7 +63,9 @@ require "tartrazine"
|
|||||||
|
|
||||||
lexer = Tartrazine.lexer("crystal")
|
lexer = Tartrazine.lexer("crystal")
|
||||||
theme = Tartrazine.theme("catppuccin-macchiato")
|
theme = Tartrazine.theme("catppuccin-macchiato")
|
||||||
puts Tartrazine::Html.new.format(File.read(ARGV[0]), lexer, theme)
|
formatter = Tartrazine::Html.new
|
||||||
|
formatter.theme = theme
|
||||||
|
puts formatter.format(File.read(ARGV[0]), lexer)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
Loading…
Reference in New Issue
Block a user