Small GUI to highlight some Typst code using ANSI escape codes with @frolozotl's amazing https://github.com/frozolotl/typst-ansi-hl
Made with iced.
You can try it in your browser: https://pgbiel.github.io/typst-ansi-gui/
Run the application, paste your Typst code at the top, and press Highlight
. Then, press Copy
to copy the generated ANSI.
You can then paste the copied highlighted code on Discord as such:
```ansi
PASTE IT HERE
```
You should now see your Typst code with proper syntax highlighting.
You can run cargo install --git https://github.com/PgBiel/typst-ansi-gui --locked typst-ansi-gui
, which will build the application from source and install.
Just run cargo build
and the built application will be at target/debug/typst-ansi-gui
. You can then run it.
To format the code, run cargo fmt
. To check, run cargo clippy
.
Licensed under MIT or Apache-2.0, at your choice.