# raspu/Highlightr

iOS & OSX Syntax Highlighter.

Repository: https://github.com/raspu/Highlightr
Canonical: https://ross.abutalabs.com/products/highlightr
Language: Swift
License: MIT
License Family: permissive
Topics: highlight, ios-lib, ios, macos, swift-library, syntax-highlighting, sample-gif
Last push: 2026-02-13T10:31:36+00:00

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

## Adoption (not part of the score)
Stars 1868, forks 304 (observed 2026-08-28T04:05:46.436453+00:00)

## What it is
Highlightr is a Swift library for iOS and macOS that wraps highlight.js via JavaScriptCore to convert code strings into syntax-highlighted NSAttributedStrings. It supports 185 languages and 89 themes, including real-time highlighting through an NSTextStorage subclass. As of 2026 it is no longer actively maintained.

## Use cases
- highlight code snippets in an iOS app
- render syntax-highlighted code in a macOS text view
- build a real-time code editor with live highlighting on Apple platforms
- convert a string of source code into an NSAttributedString with colors
- support many programming languages with automatic language detection
- apply custom themes to code display in Swift apps

## When to choose
- you need syntax highlighting in an iOS or macOS app with broad language support
- you want NSAttributedString output for UITextView or NSTextView
- you prefer highlight.js themes and language coverage over a native parser

## When to avoid
- you need an actively maintained dependency (the project is abandoned; consider HighlighterSwift)
- you need maximum performance for very large files
- you target platforms other than iOS or macOS

## Facets
- artifact type: library
- maturity: abandoned
- function: ui-components, parser
- domain: developer-tools, text-editors, frontend
- platform: -
- tags: syntax-highlighting, highlightjs, nsattributedstring, javascriptcore, swift, ios, macos

## Member repositories
- raspu/Highlightr (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:46.436453+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-30T03:15:16.529554+00:00, confidence not recorded.
  - readme: https://github.com/raspu/Highlightr (fetched 2026-08-28T04:05:46.436453+00:00, sha d80bd864c998)
- Data as of 2026-08-30T08:39:29.467469+00:00.
