Packages

highlight.js

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

Your version

11.11.2

11 Aug 2026Where it was published

11.12.0 is the newest release of 11.x.

In short

9 new10 fixed7 changed1 internal

Release note

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.2 tag 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 parallel keyword, 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 missing defguardp keyword [Kevin Bloch]

  • enh(json) add json5 support [Kerry Shetline]

  • fix(csharp) Support digit separators [te-ing]

  • fix(css) unicode-range parsing, issue #4253 Kerry Shetline

Documentation:

  • Update link to Odin grammar to maintained version [Marian Pekár]

  • Fix type highlight deprecated 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

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.