frozolotl / typst-ansi-gui

Small GUI to highlight Typst code with ANSI escape codes using https://github.com/frozolotl/typst-ansi-hl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typst-ansi-gui

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.

app screenshot

Usage

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.

Installing

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.

Building

Just run cargo build and the built application will be at target/debug/typst-ansi-gui. You can then run it.

Formatting and Checking

To format the code, run cargo fmt. To check, run cargo clippy.

About

Small GUI to highlight Typst code with ANSI escape codes using https://github.com/frozolotl/typst-ansi-hl

License:MIT License


Languages

Language:Rust 94.6%Language:HTML 5.4%