Skip to content

Inspiravetion/highlightrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

highlightrs

"A command line utility to turn arbitrary rust code into syntax highlighted html"

Currently based on rustdoc::html::highlight::highlight but transitioning to using syntax::parse::parser::Parser to get an AST to then highlight.

As of now,

$> highlightrs 'let a = "b";'

produces

<pre class='rust '>
<span class='kw'>let</span> <span class='ident'>a</span> <span class='op'>=</span> <span class='string'>&quot;b&quot;</span>;
</pre>

Usage

Options:
    -i --inputfile FILE use a file for the input
    -o --outfile FILE   use a file for the output
    -h --help           print this help menu

About

"A command line utility to turn rust code into syntax highlighted html"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages