SkillAgentSearch skills...

Highlight

A syntax highlighter for JSON data completely written in Swift with no dependencies

Install / Use

/learn @nkristek/Highlight
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Highlight

CI Status

This library provides a syntax highlighter which currently supports highlighting JSON data. It is fully written in Swift and there are no additional dependencies. It uses a compatibility layer for colors and fonts for UIKit and AppKit and the default theme supports dark mode on both platforms.

Features

This library provides a JsonSyntaxHighlightProvider which can either be instanciated or accessed through a static instance JsonSyntaxHighlightProvider.shared.

It parses the given String and highlights the given NSMutableAttributedString by setting the color and font on specific areas.

Installation

Currently supported methods of importing it:

  • SwiftPM: https://github.com/nkristek/Highlight.git
  • Manually copying all files in the Sources folder

Contribution

If you find a bug feel free to open an issue. Contributions are also appreciated.

View on GitHub
GitHub Stars40
CategoryDevelopment
Updated1y ago
Forks3

Languages

Swift

Security Score

80/100

Audited on Mar 18, 2025

No findings