MCPcopy
hub / github.com/highlightjs/highlight.js

github.com/highlightjs/highlight.js @11.11.2 sqlite

repository ↗ · DeepWiki ↗ · release 11.11.2 ↗
343 symbols 716 edges 282 files 79 documented · 23%
README

Highlight.js CDN Assets

install size

This package contains only the CDN build assets of highlight.js.

This may be what you want if you'd like to install the pre-built distributable highlight.js client-side assets via NPM. If you're wanting to use highlight.js mainly on the server-side you likely want the highlight.js package instead.

To access these files via CDN:

https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/

If you just want a single .js file with the common languages built-in: https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/highlight.min.js


Highlight.js

Highlight.js is a syntax highlighter written in JavaScript. It works in the browser as well as on the server. It works with pretty much any markup, doesn’t depend on any framework, and has automatic language detection.

If you'd like to read the full README:

https://github.com/highlightjs/highlight.js/blob/main/README.md

License

Highlight.js is released under the BSD License. See LICENSE file for details.

Links

The official site for the library is at https://highlightjs.org/.

The Github project may be found at: https://github.com/highlightjs/highlight.js

Further in-depth documentation for the API and other topics is at http://highlightjs.readthedocs.io/.

A list of the Core Team and contributors can be found in the CONTRIBUTORS.md file.

Extension points exported contracts — how you extend this code

Emitter (Interface)
(no doc) [1 implementers]
types/index.d.ts
VuePlugin (Interface)
(no doc)
types/index.d.ts
PublicApi (Interface)
(no doc)
types/index.d.ts
ModesAPI (Interface)
(no doc)
types/index.d.ts
HighlightResult (Interface)
(no doc)
types/index.d.ts

Core symbols most depended-on inside this repo

highlight
called by 37
types/index.d.ts
concat
called by 30
src/lib/regex.js
log
called by 20
tools/build_cdn.js
either
called by 15
src/lib/regex.js
toString
called by 13
tools/checkTheme.js
log
called by 13
tools/build_browser.js
mkdir
called by 13
tools/lib/makestuff.js
exec
called by 13
src/lib/mode_compiler.js

Shape

Function 235
Method 68
Class 24
Interface 16

Languages

TypeScript100%

Modules by API surface

src/highlight.js38 symbols
types/index.d.ts23 symbols
src/lib/token_tree.js23 symbols
src/lib/mode_compiler.js20 symbols
tools/checkTheme.js17 symbols
tools/build_browser.js16 symbols
test/regex/index.js13 symbols
tools/build_node.js12 symbols
tools/lib/external_language.js11 symbols
src/lib/regex.js11 symbols
tools/lib/language.js10 symbols
src/lib/html_renderer.js10 symbols

Dependencies from manifests, versioned

@colors/colors1.6.0 · 1×
@rollup/plugin-commonjs28.0.1 · 1×
@rollup/plugin-json6.0.1 · 1×
@rollup/plugin-node-resolve15.3.0 · 1×
@types/mocha10.0.2 · 1×
@typescript-eslint/eslint-plugin7.15.0 · 1×
@typescript-eslint/parser7.15.0 · 1×
clean-css5.3.2 · 1×
cli-table0.3.1 · 1×
commander12.1.0 · 1×
css3.0.0 · 1×
css-color-names1.0.1 · 1×

For agents

$ claude mcp add highlight.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact