# googlearchive/code-prettify

An embeddable script that makes source-code snippets in HTML prettier.

Repository: https://github.com/googlearchive/code-prettify
Canonical: https://ross.abutalabs.com/products/code-prettify
Language: JavaScript
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2020-04-21T16:43:49+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4151, "days_push": 2325, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5756, forks 885 (observed 2026-08-28T04:09:29.242583+00:00)

## What it is
An embeddable JavaScript library that adds syntax highlighting to source-code snippets in HTML pages via a simple script include and CSS classes. It supports many C-like, Bash-like, and XML-like languages out of the box with extensible language handlers.

## Use cases
- highlight code snippets on a blog or documentation site
- add syntax coloring to HTML pages without a build step
- make source code in <pre> blocks readable
- embed a lightweight code highlighter via CDN script tag
- support many languages with automatic detection

## When to choose
- you need a zero-build, drop-in script tag highlighter for a static HTML page
- you want broad cross-browser support and tiny footprint
- you're maintaining a legacy site already using prettyprint classes

## When to avoid
- starting a new project - the repo is archived and unmaintained since 2020
- you need modern language support or active bug fixes
- you're using a bundler-based workflow where Prism or Shiki fit better

## Facets
- artifact type: library
- maturity: abandoned
- function: parser, frontend-framework
- domain: web-development, frontend, developer-tools, documentation
- platform: browser
- tags: syntax-highlighting, code-snippets, embeddable-script, archived, client-side, javascript

## Member repositories
- googlearchive/code-prettify (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:29.242583+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-29T17:53:16.268258+00:00, confidence not recorded.
  - readme: https://github.com/googlearchive/code-prettify (fetched 2026-08-28T04:09:29.242583+00:00, sha 728db410c5d1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
