Packages

highlight.js

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

Your version

11.8.0

29 Apr 2023Where it was published

11.12.0 is the newest release of 11.x.

In short

6 new1 fixed12 changed1 internal

Release note

Changelog

Parser engine:

  • Added a function to default export to generate a fresh highlighter instance to be used by extensions [WisamMechano]

  • Added BETA __emitTokens key to grammars to allow then to direct their own parsing, only using Highlight.js for the HTML rendering [Josh Goebel]

  • (enh) add removePlugin api [faga295]

New Grammars:

  • Added 3rd party Lang grammar to SUPPORTED_LANGUAGES [AdamRaichu]

  • Added 3rd party C3 grammar to SUPPORTED_LANGUAGES [aliaegik]

Core Grammars:

  • enh(sql) support _ in variable names [joshgoebel]

  • enh(mathematica) update keywords list to 13.2.1 [arnoudbuzing]

  • enh(protobuf) add proto alias for Protobuf [dimitropoulos]

  • enh(sqf) latest changes in Arma 3 v2.11 [Leopard20]

  • enh(js/ts) Added support for GraphQL tagged template strings [Ali Ukani]

  • enh(javascript) add sessionStorage to list of built-in variables [Jeroen van Vianen]

  • enh(http) Add supporxt for HTTP/3 [Rijenkii]

  • Added 3rd party Motoko grammar to SUPPORTED_LANGUAGES [rvanasa]

  • Added 3rd party Candid grammar to SUPPORTED_LANGUAGES [rvanasa]

  • fix(haskell) Added support for characters [CrystalSplitter]

  • enh(dart) Add base, interface, sealed, and when keywords [Sam Rawlins]

  • enh(php) detect newer more flexible NOWdoc syntax (#3679) [Timur Kamaev]

  • enh(python) improve autodetection of code with type hinting any function's return type (making the -> operator legal) [Keyacom]

  • enh(bash) add select and until as keywords

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.