rust-analyzer/rust-analyzer.github.io

Syntax highlighting

Aloso opened this issue · 1 comments

Aloso commented

For syntax highlighting, jekyll already parses the code and wraps tokens in spans with different CSS classes. All we need is some CSS to set the colors, e.g.

pre.highlight .k { /* keyword */
    color: #0b65ca;
}

I want to try minimal syntax highlighting, to keep with the low-color spirit of the website. We don't have a lot of code samples anyway, so just making keywords bold should be enough