Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NWBY/rito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rito

A syntax highlighter written in Rust. Pronounced like "rito" in burrito or Dorito.

Features

  • Supports multiple languages
  • Supports inline code highlighting
  • Supports line numbers
  • Supports diff highlighting
  • Supports custom themes
  • Supports custom styles

Usage

Command-line

$ rito --help
Rito Syntax Highlighter

Passing a file as input and printing to stdout:

$ rito --language=rust --input=src/main.rs

Passing a string as input and printing to stdout:

$ rito --language=rust --code='fn main() { println!("Hello, world!"); }' --full

Passing a file as input and saving to a file:

$ rito --language=rust --input=src/main.rs --output=output.html --full

Passing a string as input and saving to a file:

$ rito --language rust --code "fn main() { println!(\"Hello, world!\"); }" --output highlighted.html --full

Reading from stdin:

echo "console.log('Hello, world!');" | rito --language javascript --full

About

Syntax highlighter written in Rust. Pronounced the same way as burrito or Dorito

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published