mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-09-17 10:48:12 +00:00
Compare commits
1 Commits
v0.5.1
...
357b121af1
Author | SHA1 | Date | |
---|---|---|---|
357b121af1 |
@@ -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
|
||||||
|
Reference in New Issue
Block a user