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
6 new8 fixed15 changed
Release note
Version 11.3.0
Build:
Add
HighlightJSnamed export (#3295) [Josh Goebel]Add
.defaultnamed export to CJS builds (#3333) [Josh Goebel]
Parser:
Add first rough performance testing script (#3280) [Austin Schick]
Add
throwUnescapedHTMLto warn against potential HTML injection [Josh Goebel]Expose
regexhelper functions viahljsinjection [Josh Goebel]concat
lookahead
either
optional
anyNumberOfTimes
Grammars:
fix(ts) some complex types would classify as JSX (#3278) [Josh Goebel]
fix(js/ts) less false positives for
class X extends Y(#3278) [Josh Goebel]enh(css): add properties from several W3C (Candidate) Recommendations
fix(js/ts)
Float32Arrayhighlighted incorrectly (#3353) [Josh Goebel]fix(css) single-colon psuedo-elements no longer break highlighting (#3240) [Josh Goebel]
fix(scss) single-colon psuedo-elements no longer break highlighting (#3240) [Josh Goebel]
enh(fsharp) rewrite most of the grammar, with many improvements [Melvyn Laïly]
enh(go) better type highlighting, add
errortype [Josh Goebel]fix(js/ts) regex inside
SUBSTis no longer highlighted [Josh Goebel]fix(python) added support for unicode identifiers (#3280) [Austin Schick]
enh(css/less/stylus/scss) improve consistency of function dispatch (#3301) [Josh Goebel]
enh(css/less/stylus/scss) detect block comments more fully (#3301) [Josh Goebel]
fix(cpp) switch is a keyword (#3312) [Josh Goebel]
fix(cpp) fix
xor_eqkeyword highlighting. [Denis Kovalchuk]enh(c,cpp) highlight type modifiers as type (#3316) [Josh Goebel]
enh(css/less/stylus/scss) add support for CSS Grid properties [monochromer]
enh(java) add support for Java Text Block (#3322) [Teletha]
enh(scala) add missing
doandthenkeyword (#3323) [Nicolas Stucki]enh(scala) add missing
enum,exportandgivenkeywords (#3328) [Nicolas Stucki]enh(scala) remove symbol syntax and fix quoted code syntax (#3324) [Nicolas Stucki]
enh(scala) add Scala 3
extensionsoft keyword (#3326) [Nicolas Stucki]enh(scala) add Scala 3
endsoft keyword (#3327) [Nicolas Stucki]enh(scala) add
inlinesoft keyword (#3329) [Nicolas Stucki]enh(scala) add
usingsoft keyword (#3330) [Nicolas Stucki]enh(fsharp) added
f#alias (#3337) [Bahnschrift]enh(bash) added gnu core utilities (#3342) [katzeprior]
enh(nsis) add new NSIS commands (#3351) [idleberg]
fix(nsis) set
case_insensitivetotrue(#3351) [idleberg]fix(css/less/stylus/scss) highlight single-colon psuedo-elements properly (#3240) [zsoltlengyelit]
fix(css) add css hex color alpha support (#3360) ierehon1905
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.