🌜
🌞

Best JavaScript Syntax Highlighting Libraries

highlight.js

highlight.js

v11.6.0

Syntax highlighting with language autodetection.

Last Commit
Sep 24, 2022
GitHub Stargazers
20.5K
License
BSD-3-Clause
Contributors
lowlight

lowlight

v2.7.0

Virtual syntax highlighting for virtual DOMs and non-HTML things

Last Commit
Jul 13, 2022
GitHub Stargazers
446
License
MIT
Contributors
10
refractor

refractor

v4.7.0

Lightweight, robust, elegant virtual syntax highlighting using Prism

Last Commit
Aug 23, 2022
GitHub Stargazers
489
License
MIT
Contributors
13
prismjs

prismjs

v1.28.0

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

Last Commit
Aug 23, 2022
GitHub Stargazers
10.6K
License
MIT
Contributors
99
react-syntax-highlighter

react-syntax-highlighter

v15.5.0

syntax highlighting component for react with prismjs or highlightjs ast using inline styles

Last Commit
Apr 29, 2022
GitHub Stargazers
2,838
License
MIT
Contributors
48
@highlightjs/cdn-assets

@highlightjs/cdn-assets

v11.6.0

Syntax highlighting with language autodetection. (pre-compiled CDN assets)

Last Commit
Sep 24, 2022
GitHub Stargazers
20.5K
License
BSD-3-Clause
Contributors
emphasize

emphasize

v5.0.0

ANSI syntax highlighting for the terminal

Last Commit
May 30, 2021
GitHub Stargazers
96
License
MIT
Contributors
2
vue-highlightjs

vue-highlightjs

v1.3.3

Syntax highlighting with highlight.js for Vue.js 2.x

Last Commit
May 24, 2021
GitHub Stargazers
331
License
MIT
Contributors
6
@uiw/react-textarea-code-editor

@uiw/react-textarea-code-editor

v2.0.3

A simple code editor with syntax highlighting.

Last Commit
Aug 29, 2022
GitHub Stargazers
221
License
MIT
Contributors
2
@observablehq/highlight.js

@observablehq/highlight.js

v2.0.0

Syntax highlighting with language autodetection.

Last Commit
Sep 24, 2022
GitHub Stargazers
20.5K
License
BSD-3-Clause
Contributors
100
rehype-prism-plus

rehype-prism-plus

v1.4.2

rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers

Last Commit
Jul 5, 2022
GitHub Stargazers
80
License
MIT
Contributors
@joshgoebel/highlight.js-cdn-assets

@joshgoebel/highlight.js-cdn-assets

v10.0.0-test.5

Syntax highlighting with language autodetection.

Last Commit
Sep 24, 2022
GitHub Stargazers
20.5K
License
BSD-3-Clause
Contributors
100
ngx-highlight-js

ngx-highlight-js

v14.0.0

Angular for syntax highlighting with highlight.js

Last Commit
Jun 24, 2022
GitHub Stargazers
22
License
MIT
Contributors
2
@stylable/language-service

@stylable/language-service

v5.1.0

Stylable Language Services - syntax highlighting, completions, hinting and more for the Stylable CSS preprocessor.

Last Commit
Sep 22, 2022
GitHub Stargazers
1,178
License
MIT
Contributors
29
react-refractor

react-refractor

v2.1.7

Super-thin React wrapper for refractor (Syntax highlighting using VDOM)

Last Commit
Apr 9, 2022
GitHub Stargazers
52
License
MIT
Contributors
3
highlight-es

highlight-es

v1.0.3

Highlight ECMAScript syntax for the console or any other medium.

Last Commit
Apr 22, 2018
GitHub Stargazers
22
License
MIT
Contributors
3
svelte-highlight

svelte-highlight

v6.2.1

Syntax Highlighting for Svelte using highlight.js

Last Commit
Sep 18, 2022
GitHub Stargazers
128
License
MIT
Contributors
2
react-highlight.js

react-highlight.js

v1.0.7

A lightweight React wrapper around the Highlight.js syntaxt highlighting library

Last Commit
Mar 20, 2020
GitHub Stargazers
103
License
MIT
Contributors
3
@theme-ui/prism

@theme-ui/prism

v0.14.7

A syntax highlighting component based on [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) that works seamlessly with Theme UI.

Last Commit
Sep 24, 2022
GitHub Stargazers
4,685
License
MIT
Contributors
98
cli-highlight

cli-highlight

v2.1.11

Syntax highlighting in your terminal

Last Commit
Mar 28, 2021
GitHub Stargazers
255
License
ISC
Contributors
8
prism-themes

prism-themes

v1.9.0

Additional themes for the Prism syntax highlighting library.

Last Commit
May 22, 2022
GitHub Stargazers
1,016
License
MIT
Contributors
30