# @scalar/code-highlight

> Central methods and themes for code highlighting in Scalar projects

Latest version **0.4.6** (published 2026-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @scalar/code-highlight
pnpm add @scalar/code-highlight
yarn add @scalar/code-highlight
bun add @scalar/code-highlight
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.6 |
| Published | 2026-09-16 |
| First published | 2024-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 15 |
| Unpacked size | 3.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 16148 |
| Author | Scalar |
| Maintainers | cameronrohani, marclave, scalar_geoff, hwkr, hanspagel, amritk, scalar-machine |
| Keywords | syntax, highlight, lowlight, highlightjs |

## Links

- npm: https://www.npmjs.com/package/@scalar/code-highlight
- Repository: https://github.com/scalar/scalar
- Issues: https://github.com/scalar/scalar/issues/new/choose
- npm.io page: https://npm.io/package/@scalar/code-highlight

## Dependencies (15)

- [unified](https://npm.io/package/unified.md) ^11.0.5
- [lowlight](https://npm.io/package/lowlight.md) ^3.3.0
- [rehype-raw](https://npm.io/package/rehype-raw.md) ^7.0.0
- [remark-gfm](https://npm.io/package/remark-gfm.md) ^4.0.1
- [highlight.js](https://npm.io/package/highlight.js.md) ^11.11.1
- [rehype-parse](https://npm.io/package/rehype-parse.md) ^9.0.1
- [remark-parse](https://npm.io/package/remark-parse.md) ^11.0.0
- [rehype-format](https://npm.io/package/rehype-format.md) ^5.0.1
- [remark-rehype](https://npm.io/package/remark-rehype.md) ^11.1.2
- [rehype-sanitize](https://npm.io/package/rehype-sanitize.md) ^6.0.0
- [rehype-stringify](https://npm.io/package/rehype-stringify.md) ^10.0.1
- [remark-stringify](https://npm.io/package/remark-stringify.md) ^11.0.0
- [unist-util-visit](https://npm.io/package/unist-util-visit.md) ^5.1.0
- [hast-util-to-text](https://npm.io/package/hast-util-to-text.md) ^4.0.2
- [rehype-external-links](https://npm.io/package/rehype-external-links.md) ^3.0.0

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 0.4.6 (latest) — 2026-09-16
- 0.4.5 — 2026-08-20
- 0.4.3 — 2026-07-16
- 0.4.2 — 2026-07-15
- 0.4.1 — 2026-07-03
- 0.4.0 — 2026-06-26
- 0.3.6 — 2026-06-17
- 0.3.5 — 2026-06-09
- 0.3.4 — 2026-04-27
- 0.3.3 — 2026-04-16
- 0.3.2 — 2026-04-03
- 0.3.1 — 2026-03-18
- 0.3.0 — 2026-03-04
- 0.2.4 — 2026-02-24
- 0.2.3 — 2026-02-11
- … 41 more at https://npm.io/package/@scalar/code-highlight/versions

## README

# @scalar/code-highlight

Central methods and themes for code highlighting in Scalar projects

---

Scalar is an open-source API platform for teams who want beautiful developer interfaces without vendor lock-in.

- **[API References](https://scalar.com/products/api-references/getting-started)** — Interactive API documentation from OpenAPI and AsyncAPI specs.
- **[Developer Docs](https://scalar.com/products/docs/getting-started)** — Write in Markdown/MDX, generate API references, sync with two-way Git.
- **[SDK Generator](https://scalar.com/products/sdk-generator/getting-started)** — Type-safe SDKs and CLIs in TypeScript, Python, Go, PHP, Java, and Ruby.
- **[API Client](https://scalar.com/products/api-client/getting-started)** — Open-source, offline-first Postman alternative built on OpenAPI.

20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · [scalar.com](https://scalar.com)

---

---
_Source: https://npm.io/package/@scalar/code-highlight · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
