highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 11.x11.12.0No known advisoryLatest line
- 10.x and older10.7.34 open advisories, worst moderate · last release Jun 2021, no longer updatedTo 11.12.0
Latest releases
All 98 releases- 11.x · latest line
11.12.0
12 Aug 2026- Security
fix(c, cpp) bound the run of type tokens in front of a function name (ReDoS), issue #4362 [Jayesh Bhade]
- Security
fix(xml) remove recursive sublanguage references to prevent ReDoS petejm
fix(parser) count named capture groups when rewriting backreferences spokodev
Parser Engine:
fix(parser) count named capture groups when rewriting backreferences spokodev
New Grammars:
Add FreeDesktop config file (
.desktop/ systemd) grammar [gg582]Added 3rd party Cedar grammar to SUPPORTED_LANGUAGES [Dhruv Maniya]
Added 3rd party DAX and M (Power Query) grammars to SUPPORTED_LANGUAGES [jiaopengzi]
Added 3rd party Djot grammar to SUPPORTED_LANGUAGES [Mark Scherer]
Added 3rd party Igor Pro grammar to SUPPORTED_LANGUAGES [Ryne Andal]
Added 3rd party Jaiva grammar to SUPPORTED_LANGUAGES [Lehlogonolo Poole]
Added 3rd party Liquidsoap grammar to SUPPORTED_LANGUAGES [Romain Beauxis]
Added 3rd party MoonBit grammar to SUPPORTED_LANGUAGES [Kaida-Amethyst]
Added 3rd party Pkl grammar to SUPPORTED_LANGUAGES [Dan Chao]
Added 3rd party RAScript grammar to SUPPORTED_LANGUAGES [Joshua Raphael]
Added 3rd party Veryl grammar to SUPPORTED_LANGUAGES [Naoya Hatta]
Added 3rd party Why3 grammar to SUPPORTED_LANGUAGES [JGalego]
Added 3rd party Xojo grammar to SUPPORTED_LANGUAGES [patricksalo]
Referenced existing 3rd party ES|QL grammar in SUPPORTED_LANGUAGES [Styx0x6]
Core Grammars:
fix(c) only match real
atomic_*type names, not C11 atomic functions, issue #3837 [Mark Xian]- Security
fix(c, cpp) bound the run of type tokens in front of a function name (ReDoS), issue #4362 [Jayesh Bhade]
fix(c, cpp) scope angle-bracket header string to
#include, issue #3505 [Pablo]fix(c, cpp) stop a raw string's closing delimiter from swallowing quotes, issue #3585 [David Pavlovschii]
enh(cmake) add
blockandendblockkeywords [Anonymous Maarten]fix(cmake) only highlight standalone numbers, not digits that begin an identifier (e.g.
3rdparty), issue #4170 [Mark Xian]fix(cpp) require a word boundary before numeric literals so digits inside identifiers aren't highlighted as numbers, issue #4231 [Mark Xian]
fix(crystal) stop treating integer division
//as a regex literal [Zain Asif]enh(csharp) support digit separators in binary literals and numeric type suffixes, and stop highlighting the leading
_of an identifier, issue #4258 [Sarath Francis]enh(css) add corner-shape properties [Hama Tanveer]
enh(css) support six-digit
unicode-rangevalues [Konstantin Baltsat]enh(dart) add highlighting for class and function names [guuido]
enh(dns) highlight registered CAA property tags, issue #4475 [Joey Huang]
enh(dns) improve grammar: character strings, TXT, classes, escapes, addresses [Checconio]
enh(dos) add
batchas an alias, issue #4395 [Hashim Khan]enh(gherkin) update keyword list [Hirse]
enh(gherkin) variables can't contain whitespace [Hirse]
enh(gherkin) docstrings can use backticks [Hirse]
enh(go) recognize binary integer literals [spokodev]
enh(groovy) support underscores in numeric literals [greymoth]
fix(haskell) highlight
wherein GADT and closed type-family declarations, issue #3753 [Konstantin Baltsat]enh(java) improve detection of types, including generic and array types [Hannes Wallnoefer]
enh(javascript) add
selfto built-in variables [Dsaquel]enh(kotlin) add
ktmandktxaliases [DarkMatter-999]fix(leaf) fix bug in Leaf keyword highlighting [Francesco Paolo Severino]
fix(lisp) preserve highlighting after quoted multiplication expressions [arturict]
enh(llvm) support block C-style comments [utam-1]
enh(lua) add Lua 5.5
globalkeyword [Nibiri]fix(markdown) don't treat a
***or___thematic break as the start of bold text, issue #3719 [Mayank Gupta]enh(nsis) enhance NSIS rules [Jan T. Sott]
enh(python) add missing builtins:
aiterandanext(3.10),frozendictandsentinel(3.15) [Hugo van Kemenade]enh(python) correctly highlight
lazy importsyntax from PEP 810 [Peter Bierma]enh(python) support t-strings [Nicolas Le Cam]
fix(ruby) don't treat the scope resolution operator
::as a symbol, issue #4294 [Hashim Khan]enh(rust) add
safekeyword [Frances Wingerter]enh(rust) include the
rawborrow operator in keywords [Shiva Kiran Koninty]enh(rust) parse f16 and f128 literals [usamoi]
fix(rust) allow function invocations whose names start with a keyword [Xia Li-yao]
fix(rust) recognize
\\and\"char-literal escapes so highlighting doesn't leak, issue #4351 [Sarath Francis]enh(shell) match period (.) as part of shell prompt [Ian Wienand]
enh(sqf) update to Arma 3 v2.22 [LouMontana]
- Security
fix(xml) remove recursive sublanguage references to prevent ReDoS petejm
Documentation:
docs(php) explain the difference between
phpandphp-template[Zain Asif]Document LLVM IR in SUPPORTED_LANGUAGES [Jan Schultke]
Document the existing
pwshalias for PowerShell [helpimnotdrowning]List languages with category "common" in SUPPORTED_LANGUAGES [Marc Bernard]
Remind contributors to run
npm i[Proliecan]
Themes:
Added Equinox theme [Griffon Langyer]
Build / Tooling:
(build) allow third-party packages to override default languages [Lysxia]
(build) use Trusted Publishers in the publishing pipeline [allejo]
fix(types) allow RegExp in
Mode.keywords[KJyang-0114]refactor(tools) replace
@colors/colorswith ansis [webdiscus]
CONTRIBUTORS
11.11.2
11 Aug 2026Fix illegal handling at end of input code [Josh Goebel]
Added 3rd party Aiken grammar to SUPPORTED_LANGUAGES [Josh Marchand]
Added 3rd party VoltScript grammar to SUPPORTED_LANGUAGES [Chester Moses]
Happy belated Summer Solstice to all who celebrate. This is a maintenance release that includes all of the merged PRs through July 2025 (last year).
Note
As you may have noticed, highlight.js has been inactive since last summer, through no one's fault; maintaining open source projects is time-consuming. I'll be doing my best to keep the lights on around here, but I'll need the community's help. If you are interested in helping review pull requests, contributing, or even becoming a maintainer, speak up in #1678.
Important
The 11.11.2 Git tag was published on June 22, 2026, and the npm package was published on August 11, 2026. For any cautious onlookers, nothing malicious has happened. In December 2025, npm revoked all classic tokens for improved security. Since we haven't had a release since July 2025, I didn't notice that our release pipeline was broken because it uses a now-revoked token. Pull request #4427 was opened to fix our release pipeline, and it took some time to get things right. Version 11.11.2 was published to npm after the PR was merged and we had a successful run of the new release workflow.
If you see two 11.11.2 releases on your GitHub feed circa June 2026, this was an accident by a maintainer. A
11.11.2tag was created prematurely on GitHub and caused a run failure during the release pipeline since all work to bump the release had not been completed. There was no version 11.11.2 that was accidentally published to npm or the CDNs; therefore, the Git tag has been recreated to point to f273f00.Parser Engine:
Fix illegal handling at end of input code [Josh Goebel]
New Grammars:
Added 3rd party Aiken grammar to SUPPORTED_LANGUAGES [Josh Marchand]
Added 3rd party VoltScript grammar to SUPPORTED_LANGUAGES [Chester Moses]
Added 3rd party Gleam grammar to SUPPORTED_LANGUAGES [Filip Hoffmann]
Added 3rd party Magik grammar to SUPPORTED_LANGUAGES [Sebastiaan Speck]
Added 3rd party Prisma grammar to SUPPORTED_LANGUAGES [SungHyun Kim]
Added 3rd party Bicep grammar to SUPPORTED_LANGUAGES [Anthony Martin]
Added 3rd party L4 grammar to SUPPORTED_LANGUAGES [Thomas Gorissen]
Added 3rd party Abc Notation grammar to SUPPORTED_LANGUAGES [NriotHrreion]
Core Grammars:
fix(cpp) exclude keywords from function calls [Eisenwave]
enh(csp) add missing directives / keywords from MDN (7 more) [Max Liashuk]
enh(ada) add new
parallelkeyword, allow `` for Ada 2022 [Max Reznik]fix(javascript) correctly highlight 'for await' again [wolfgang42]
fix(diff) fix unified diff hunk header regex to allow unpaired numbers [Chris Wilson]
enh(php) support single line and hash comments in attributes, constructor and functions [Antoine Musso]
fix(ex) adds support for
?'char literal and missingdefguardpkeyword [Kevin Bloch]enh(json) add json5 support [Kerry Shetline]
fix(csharp) Support digit separators [te-ing]
fix(css)
unicode-rangeparsing, issue #4253 Kerry Shetline
Documentation:
Update link to Odin grammar to maintained version [Marian Pekár]
Fix type
highlightdeprecated message [Brandon Dong]Fix CONTRIBUTING.md broken badge link [SungHyun Kim]
Alphabetized languages + upper-cased BASIC in SUPPORTED_LANGUAGES.md [Adam Lui]
Deduplicate JSON from SUPPORTED_LANGUAGES [Lukasz Czajczyk]
Themes:
Cybertopia themes render correctly in shadow DOM [hbgl]
Added "vs Dark " theme [Twineee1]
CONTRIBUTORS
11.11.1
25 Dec 2024Fixes regressions with Rust grammar in 11.11.0 release.
Dependency tracking
Know when your own dependencies move
This page watches highlight.js. inlinr reads your package.json and keeps the same watch on every dependency you declare, then tells you only what needs you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 20 Nov 2026. Releases and advisories last read 20 Nov 2026.
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.