github highlightjs/highlight.js 11.11.2
v11.11.2 - This Summer's Hottest Release

5 hours ago

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

Why is this version not published on npm or CDNs?

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 is currently broken because it uses a now-revoked token.

When will 11.11.2 be available on npm and/or CDNs?

This week. I need to update our Release pipeline to use npm's Trusted Publisher functionality.

I see two 11.11.2 releases on my GitHub feed, were you hacked?

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:

Themes:

  • Fix: cybertopia themes render correctly in shadow DOM hbgl
  • added "vs Dark " theme Twineee1

CONTRIBUTORS

Don't miss a new highlight.js release

NewReleases is sending notifications on new releases.