Packages

highlight.js

11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed

Your version

11.9.0

9 Oct 2023Where it was published

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 node build styles/*.css files now ship un-minified
    with minified counterparts as: styles/*.min.css mvorisek
    (this makes things consistent with our cdn builds)

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 if while for [Omar Hussein]

  • enh(armasm) added x0-x30 and w0-w30 ARMv8 registers [Nicholas Thompson]

  • enh(haxe) added final, is, macro keywords 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 abstract declaration from keyword [Robert Borghese]

  • fix(bash) do not delimit a string by an escaped apostrophe [hancar]

  • enh(swift) support macro keyword [Bradley Mackey]

  • enh(swift) support parameter pack keywords [Bradley Mackey]

  • enh(swift) regex literal support [Bradley Mackey]

  • enh(swift) @unchecked and @Sendable support [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 !assert compiler 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_access is 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 record and var as keywords Guillaume Laforge

Developer Tool:

  • (chore) Update dev tool to use the new highlight API. [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.