# rouge-ruby/rouge

A pure Ruby code highlighter that is compatible with Pygments

Repository: https://github.com/rouge-ruby/rouge
Canonical: https://ross.abutalabs.com/products/rouge
Homepage: https://rouge.jneen.ca/
Language: Ruby
License: NOASSERTION
License Family: other
Topics: syntax-highlighting, ruby, minitest, rubocop
Last push: 2026-08-26T15:31:41+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 5115, "days_push": 7, "days_rel": 28, "gap_med": 77.0, "n_releases_24m": 9}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3451, forks 815 (observed 2026-08-28T04:08:05.291000+00:00)

## What it is
Rouge is a pure Ruby syntax highlighter supporting over 200 languages, with output to HTML or ANSI 256-color text. Its HTML output is compatible with Pygments stylesheets, and it serves as Jekyll's default highlighter.

## Use cases
- highlight code snippets in a Ruby web app
- syntax highlight code in Jekyll blog posts
- colorize code in the terminal
- generate CSS for code highlighting styles
- replace Pygments in a Ruby project
- render code blocks as HTML with themes

## When to choose
- you need syntax highlighting in a Ruby project without Python dependencies
- you use Jekyll and want its default highlighter
- you want Pygments-compatible HTML output with existing stylesheets
- you need ANSI-colored code in terminal output

## When to avoid
- your project is not in Ruby and Pygments is available
- you need highlighting for a language Rouge does not support
- you need extremely high-performance highlighting of very large files

## Facets
- artifact type: library
- maturity: active
- function: parser, templating, cli, developer-tools
- domain: developer-tools, web-development, documentation, frontend
- platform: ruby, cli, cross-platform
- tags: syntax-highlighting, code-highlighter, pygments-compatible, jekyll, ansi-colors, lexers

## Member repositories
- rouge-ruby/rouge (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:05.291000+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:37:34.508344+00:00, confidence not recorded.
  - readme: https://github.com/rouge-ruby/rouge (fetched 2026-08-28T04:08:05.291000+00:00, sha e8fa96b876c8)
  - homepage: https://rouge.jneen.ca/ (fetched 2026-08-29T09:31:20.085358+00:00, sha 0418c31d70e6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
