code-colors
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

code-colors

Code syntax highlighting for the web. Uses Prism for parsing.

Why I created this library? I needed a simple React component that highlights code, but there was none which satisfied the following requirements:

  • Dynamically loads highligting parsers.
  • Executs highlighting in a web worker.
  • While code is parsed in the worker, renders raw un-highlighted source without any flickering.
  • A simple to use React component.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.3.0
    81
    • latest

Version History

Package Sidebar

Install

npm i code-colors

Weekly Downloads

189

Version

2.3.0

License

Apache-2.0

Unpacked Size

75.9 kB

Total Files

35

Last publish

Collaborators

  • streamich