Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pgbiel/typst-ansi-gui
Small GUI to highlight Typst code with ANSI escape codes using https://github.com/frozolotl/typst-ansi-hl
https://github.com/pgbiel/typst-ansi-gui
Last synced: 2 months ago
JSON representation
Small GUI to highlight Typst code with ANSI escape codes using https://github.com/frozolotl/typst-ansi-hl
- Host: GitHub
- URL: https://github.com/pgbiel/typst-ansi-gui
- Owner: PgBiel
- License: apache-2.0
- Created: 2024-03-08T20:50:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-24T12:39:31.000Z (7 months ago)
- Last Synced: 2024-06-25T03:36:16.401Z (7 months ago)
- Language: Rust
- Homepage:
- Size: 683 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# typst-ansi-gui
Small GUI to highlight some Typst code using ANSI escape codes with [@frolozotl](https://github.com/frozolotl)'s amazing https://github.com/frozolotl/typst-ansi-hlMade with [iced](https://iced.rs/).
You can **try it in your browser:** https://pgbiel.github.io/typst-ansi-gui/
![app screenshot](https://github.com/PgBiel/typst-ansi-gui/assets/9021226/7a60c269-b78b-4ee6-a0a9-93966fa61d36)
## 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`.
## License
Licensed under MIT or Apache-2.0, at your choice.