highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
11.12.0 is the newest release of 11.x.
In short
1 breaking1 removed4 new9 fixed21 changed
- Breaking
CAVEATS / POTENTIALLY BREAKING CHANGES
- Removed
Drops support for Node 14.x, which is no longer supported by Node.js.
Release note
Version 11.9.0
CAVEATS / POTENTIALLY BREAKING CHANGES
- Removed
Drops support for Node 14.x, which is no longer supported by Node.js.
In the
nodebuildstyles/*.cssfiles now ship un-minified
with minified counterparts as:styles/*.min.cssmvorisek
(this makes things consistent with ourcdnbuilds)
Parser:
(enh) prevent re-highlighting of an element [joshgoebel]
(chore) Remove discontinued badges from README [Bradley Mackey]
(chore) Fix build size report Bradley Mackey
New Grammars:
Added 3rd party Iptables grammar to SUPPORTED_LANGUAGES [Checconio]
Added 3rd party x86asmatt grammar to SUPPORTED_LANGUAGES [gondow]
Added 3rd party riscv64 grammar to SUPPORTED_LANGUAGES [aana-h2]
Added 3rd party Ballerina grammar to SUPPORTED_LANGUAGES [Yasith Deelaka]
Core Grammars:
fix(rust) added negative-lookahead for callable keywords
ifwhilefor[Omar Hussein]enh(armasm) added
x0-x30andw0-w30ARMv8 registers [Nicholas Thompson]enh(haxe) added
final,is,macrokeywords and$identifiers [Robert Borghese]enh(haxe) support numeric separators and suffixes [Robert Borghese]
fix(haxe) fixed metadata arguments and support non-colon syntax [Robert Borghese]
fix(haxe) differentiate
abstractdeclaration from keyword [Robert Borghese]fix(bash) do not delimit a string by an escaped apostrophe [hancar]
enh(swift) support
macrokeyword [Bradley Mackey]enh(swift) support parameter pack keywords [Bradley Mackey]
enh(swift) regex literal support [Bradley Mackey]
enh(swift)
@uncheckedand@Sendablesupport [Bradley Mackey]enh(scala) add using directives support
//> using foo bar[Jamie Thompson]fix(scala) fixed comments in constructor arguments not being properly highlighted [Isaac Nonato]
enh(swift) ownership modifiers support [Bradley Mackey]
enh(nsis) Add
!assertcompiler flag [idleberg]fix(haskell) do not treat double dashes inside infix operators as comments [Zlondrej]
enh(rust) added
eprintln!macro [qoheniac]enh(leaf) update syntax to 4.0 [Samuel Bishop]
fix(reasonml) simplify syntax and align it with ocaml [jchavarri]
fix(swift)
warn_unqualified_accessis an attribute [Bradley Mackey]enh(swift) macro attributes are highlighted as keywords [Bradley Mackey]
enh(stan) updated for version 2.33 (#3859) [Brian Ward]
fix(css) added '_' css variable detection [Md Saad Akhtar]
enh(groovy) add
recordandvaras keywords Guillaume Laforge
Developer Tool:
(chore) Update dev tool to use the new
highlightAPI. [Shah Shabbir Ahmmed](enh) Auto-update the highlighted output when the language dropdown changes. Shah Shabbir Ahmmed
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.