go-rouge

go-rouge

Pure-Go syntax highlighting.

Documentation GitHub

What is go-rouge?

go-rouge is a pure-Go (CGO_ENABLED=0) syntax highlighter in the Rouge/Pygments tradition: a family of language lexers that tokenize source and emit highlighted HTML, dependency-light and ready for js/wasm.

Packages

1 module(s) — generated from the org's repos.

RG
rouge
Rouge/Pygments-class lexers that tokenize source and emit highlighted HTML.

Languages

31 lexers — each validated byte-for-byte against the reference rouge 5.0.0 gem.

C
c
C++
cpp, c++
COBOL
cobol
CSS
css
diff
diff, patch, udiff
Docker
docker, dockerfile, Dockerfile, containerfile, Containerfile
Fortran
fortran
Go
go, golang
Hashicorp Configuration Language
hcl
HTML
html
Java
java
JavaScript
javascript, js
JSON
json
JSX
jsx, react
Make
make, makefile, mf, gnumake, bsdmake
Markdown
markdown, md, mkd
PHP
php, php3, php4, php5
Plain Text
plaintext, text
Protobuf
protobuf, proto
Python
python, py
Ruby
ruby, rb
Rust
rust, rs, rust,no_run, rs,no_run, rust,ignore, rs,ignore, rust,should_panic, rs,should_panic
shell
shell, bash, zsh, ksh, sh
SQL
sql
Terraform
terraform, tf
TeX
latex, tex, TeX, LaTeX
TOML
toml
TSX
tsx
TypeScript
typescript, ts
XML
xml
YAML
yaml, yml