highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
Upgrading highlight.js From 10.7.3 to 11.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 24
- changes to make
- 0
- advisories fixed
- 11
- new
- 6
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking11.0.0
- Breaking11.0.0
- Breaking11.0.0
- Breaking11.0.0
- Breaking11.0.0
- Breaking11.0.0
- Breaking11.0.0
- Breaking11.0.0
- Breaking11.0.0
- Breaking11.0.0
Release by release
- Breaking
This is a major release. As such it contains breaking changes which may require action from users.
- Breaking
Please read VERSION_11_UPGRADE.md for a detailed summary of all breaking changes. The below list should only be considered to be a summary.
- Breaking
initHighlighting()andinitHighlightingOnLoad()deprecated. UsehighlightAll(). - Breaking
highlightBlock(el)deprecated. UsehighlightElement(el)
- Breaking
29 other lines we could not sort, mostly version bumps
- 11.0.0
enh(vala) improve language detection for Vala (#3195) [Konrad Rudolph]
- 11.0.0
enh(parser) add
beginScopeandendScopeto allow separate scoping begin and end (#3159) [Josh Goebel] - 11.0.0
enh(parser)
highlightElementnow always tags blocks with a consistentlanguage-[name]class [Josh Goebel] - 11.0.0
enh(parser) support multi-class matchers (#3081) [Josh Goebel]
- 11.0.0
enh(parser) Detect comments based on english like text, rather than keyword list [Josh Goebel]
- 11.0.0
enh(all)
.meta-keyword=>.meta .keyword(nested scopes) (#3167) [Josh Goebel] - 11.0.0
enh(swift) add
actorkeyword (#3171) [Bradley Mackey] - 11.0.0
enh(swift) add
@resultBuilderattribute (#3151) [Bradley Mackey] - 11.0.0
enh(processing) added
pdealias (#3142) [Dylan McBean] - 11.0.0
enh(thrift) Use proper scope for types [Josh Goebel]
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.