MCPcopy
hub / github.com/syntaxhighlighter/syntaxhighlighter

github.com/syntaxhighlighter/syntaxhighlighter @v4.0.1 sqlite

repository ↗ · DeepWiki ↗ · release v4.0.1 ↗
58 symbols 121 edges 31 files 20 documented · 34%
README

SyntaxHighlighter v4

GratiPay Build Status Downloads Version

SyntaxHighlighter is THE client side highlighter for the web and web-apps! It's been around since 2004 and it's used virtually everywhere to seamlessly highlight code for presentation purposes.

The history of this project predates majority of the common web technologies and it has been a challenge to dedicate time and effort to keep it up to date. Everything used to be in one file and assign window variables... Horrors!

SyntaxHighlighter is currently used and has been used in the past by Microsoft, Apache, Mozilla, Yahoo, Wordpress, Bug Labs, Freshbooks and many many other companies and blogs.

:zap: Reporting an issue? See Filing Issues. :zap:

Get Started

FAQ

  • v4 is fully compatible with old brushes and themes, see Building instructions.
  • The ? was completely removed for cleaner, more seamless experience.
  • You still have to HTML escape < when using <pre/> tags.

Older Version

If you are looking for v3 documentation and download, you can find it on the old site.

Support

As it always goes with open source, you are welcome to use SyntaxHighlighter free of charge. If you are using and enjoying my work, maybe you could buy me a beer (or if you don’t drink – a coffee and bagel will do just fine, a good kind of bagel though, you know… with wonderful stuff inside to make it glorious, like smoked salmon and creamcheese… not just butter).

Please click here to donate via PayPal and just like they say on TV – give generously! It motivates me to keep working on this (12 years now and counting).

License

MIT

Core symbols most depended-on inside this repo

registerBrush
called by 4
src/core.js
string
called by 3
src/dasherize.js
offsetMatches
called by 3
src/html_script.js
add
called by 3
src/html_script.js
findElement
called by 2
src/dom.js
findParentElement
called by 2
src/dom.js
getElementsByTagName
called by 2
src/dom.js
findBrush
called by 2
src/core.js

Shape

Function 54
Class 2
Method 2

Languages

TypeScript100%

Modules by API surface

src/dom.js13 symbols
tests/smoke.test.js8 symbols
src/utils.js7 symbols
tests/integration/no-compat.test.js5 symbols
src/core.js5 symbols
tests/fixtures/test_brush_v4_es6.js4 symbols
src/html_script.js4 symbols
tests/integration/compat.test.js3 symbols
tests/integration/commonjs.test.js2 symbols
src/dasherize.js2 symbols
tests/fixtures/test_brush_v4.js1 symbols
tests/fixtures/test_brush_v3.js1 symbols

Dependencies from manifests, versioned

babel-cli6.4.5 · 1×
babel-core6.1.21 · 1×
babel-loader6.2.0 · 1×
babel-preset-es20156.1.18 · 1×
babel-register6.4.3 · 1×
bluebird3.0.5 · 1×
brush-base4.0.0 · 1×
brush-xml4.0.0 · 1×
chai3.4.1 · 1×
cheerio0.19.0 · 1×
codecov1.0.1 · 1×
domready1.0.5 · 1×

For agents

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

⬇ download graph artifact