Rusty Code
Display source code on screen using Macroquad, built with Rust.
Demo
The application can also run in the browser:
Examples
Display a Gist by adding the Gist id as the gist
query parameter:
https://ollej.github.io/rusty-code/demo/index.html?gist=7834a1320cbc1bcfb50304f51c19e618
Show URL encoded sourcecode with the code
parameter, also use language
parameter to set language for syntax highlighting:
Open a Gist
Enter a Gist id:
Show sourcecode
Enter sourcecode:
Usage
Run from command line to display sourcecode syntax highlighted on screen using the Macroquad game library.
rusty-code 0.6.0
A small tool to display sourcecode files
USAGE:
rusty-code [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-c, --code <code> Code to display, overrides both `filename` and `gist`
-f, --filename <filename> Path to sourcecode file to display [default: assets/helloworld.rs]
-g, --gist <gist> Gist id to display, if set, will override `filename` option
-l, --language <language> Language of the code, if empty defaults to file extension
-t, --theme <theme> Path to theme.json file [default: assets/theme.json]
License
Copyright 2022 Olle Wreede, released under the MIT License.