Packages

highlight.js

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

Your version

11.10.0

6 Jul 2024Where it was published

11.12.0 is the newest release of 11.x.

In short

53 breaking

  • Breaking

    This version drops support for Node 16.x, which is no longer supported by Node.js.

  • Breaking

    enh(typescript) add support for satisfies operator [Kisaragi Hiu]

  • Breaking

    enc(c) added more C23 keywords [Melkor-1]

  • Breaking

    enh(json) added jsonc as an alias [BackupMiles]

  • Breaking

    enh(gml) updated to latest language version (GML v2024.2) [gnysek]

  • Breaking

    enh(c) added more C23 keywords and preprcoessor directives [Eisenwave]

  • Breaking

    enh(js/ts) support namespaced tagged template strings [Aral Balkan]

  • Breaking

    enh(perl) fix false-positive variable match at end of string [Josh Goebel]

Release note

Sorry for the wait, this one is a doozie, thanks to all the contributors who made it possible!


Caveats / potentially breaking changes

Important

This version drops support for Node 16.x, which is no longer supported by Node.js.


Core Grammars:

  • Breaking

    enh(typescript) add support for satisfies operator [Kisaragi Hiu]

  • Breaking

    enc(c) added more C23 keywords [Melkor-1]

  • Breaking

    enh(json) added jsonc as an alias [BackupMiles]

  • Breaking

    enh(gml) updated to latest language version (GML v2024.2) [gnysek]

  • Breaking

    enh(c) added more C23 keywords and preprcoessor directives [Eisenwave]

  • Breaking

    enh(js/ts) support namespaced tagged template strings [Aral Balkan]

  • Breaking

    enh(perl) fix false-positive variable match at end of string [Josh Goebel]

  • Breaking

    fix(cpp) not all kinds of number literals are highlighted correctly [Lê Duy Quang]

  • Breaking

    fix(css) fix overly greedy pseudo class matching [Bradley Mackey]

  • Breaking

    enh(arcade) updated to ArcGIS Arcade version 1.24 [Kristian Ekenes]

  • Breaking

    typescript: Params types [Mohamed Ali]

  • Breaking

    fix(rust) fix escaped double quotes in string [Mohamed Ali]

  • Breaking

    fix(rust) fix for r# raw identifier not being highlighted correctly. [JaeBaek Lee]

  • Breaking

    enh(rust) Adding union to be recognized as a keyword in Rust. [JaeBaek Lee]

  • Breaking

    fix(yaml) fix for yaml with keys having brackets highlighted incorrectly [Aneesh Kulkarni]

  • Breaking

    fix(csharp) add raw string highlighting for C# 11. [Tara]

  • Breaking

    fix(bash) fix # within token being detected as the start of a comment [Felix Uhl]

  • Breaking

    fix(python) fix or conflicts with string highlighting [Mohamed Ali]

  • Breaking

    enh(python) adds a scope to the self variable [Lee Falin]

  • Breaking

    enh(delphi) allow digits to be omitted for hex and binary literals [Jonah Jeleniewski]

  • Breaking

    enh(delphi) add support for digit separators [Jonah Jeleniewski]

  • Breaking

    enh(delphi) add support for character strings with non-decimal numerics [Jonah Jeleniewski]

  • Breaking

    fix(javascript) incorrect function name highlighting [CY Fung]

  • Breaking

    fix(1c) fix escaped symbols "+-;():=," literals [Vitaly Barilko]

  • Breaking

    fix(swift) correctly highlight generics and conformances in type definitions [Bradley Mackey]

  • Breaking

    enh(swift) add package keyword [Bradley Mackey]

  • Breaking

    fix(swift) ensure keyword attributes highlight correctly [Bradley Mackey]

  • Breaking

    fix(types) fix interface LanguageDetail > keywords [Patrick Chiu]

  • Breaking

    enh(java) add goto to be recognized as a keyword in Java [Alvin Joy]

  • Breaking

    enh(bash) add keyword sudo [Alvin Joy]

  • Breaking

    fix(haxe) captures new keyword without capturing it within variables/class names [Cameron Taylor]

  • Breaking

    fix(go) fix go number literals to accept _ separators, add hex p exponents [Lisa Ugray]

  • Breaking

    enh(markdown) add entity support [David Schach] [TaraLei]

  • Breaking

    enh(css) add justify-items and justify-self attributes [Vasily Polovnyov]

  • Breaking

    enh(css) add accent-color, appearance, color-scheme, rotate, scale and translate attributes [Carl Räfting]

  • Breaking

    fix(fortran) fixes parsing of keywords delimited by dots [Julien Bloino]

  • Breaking

    enh(css) add select, option, optgroup, picture and source to list of known tags [Vasily Polovnyov]

  • Breaking

    enh(css) add inset, inset-*, border-start-*-radius and border-end-*-radius attributes [Vasily Polovnyov]

  • Breaking

    enh(css) add text-decoration-skip-ink, text-decoration-thickness and text-underline-offset attributes Vasily Polovnyov

New Grammars:

  • Breaking

    Added 3rd party CODEOWNERS grammar to SUPPORTED_LANGUAGES [nataliia-radina]

  • Breaking

    Added 3rd party Luau grammar to SUPPORTED_LANGUAGES [Robloxian Demo]

  • Breaking

    Added 3rd party ReScript grammar to SUPPORTED_LANGUAGES [Paul Tsnobiladzé]

  • Breaking

    Added 3rd party Zig grammar to SUPPORTED_LANGUAGES [Hyou BunKen]

  • Breaking

    Added 3rd party WGSL grammar to SUPPORTED_LANGUAGES [Arman Uguray]

  • Breaking

    Added 3rd party Unison grammar to SUPPORTED_LANGUAGES [Rúnar Bjarnason]

  • Breaking

    Added 3rd party Phix grammar to SUPPORTED_LANGUAGES [PeteLomax]

  • Breaking

    Added 3rd party Mirth grammar to SUPPORTED_LANGUAGES [Sierra]

  • Breaking

    Added 3rd party JSONata grammar to SUPPORTED_LANGUAGES [Vlad Dimov]

Developer Tool:

  • Breaking

    enh(tools): order CSS options picklist [David Schach]

  • Breaking

    enh(tools): remove duplicate CSS options [David Schach]

  • Breaking

    (typescript): deprecate old highlight API Misha Kaletsky

Themes:

  • Breaking

    Added 1c-light theme a like in the IDE 1C:Enterprise 8 (for 1c) Vitaly Barilko

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.