highlight.js
Advanced tools
Changelog
Version 10.3.1
Prior version let some look-behind regex sneak in, which does not work yet on Safari. This release removes those incompatible regexes.
Fix:
Changelog
Version 10.3.0
Language Improvements:
enum (struct|class)
and union
(#2752) [Josh Goebel][]{}
inside template literals SUBST expression (#2748) [Josh Goebel][]constructor
is now highlighted as a function title (not keyword) (#2727) [Josh Goebel][]#
for private class fields (#2701) [Chris Krycho][](*)
from being detected as a multi-line comment [Josh Goebel][]objective-c++
and obj-c++
aliases for Objective-C [Josh Goebel][]record
(#2685) [Josh Goebel][]title
(#2683) [Josh Goebel][]final
) in class declaration (#2696) [Josh Goebel][]match
keyword and add php8
as an alias (#2733) [Ayesh Karunaratne][]Deprecations:
useBR
option deprecated and will be removed in v11.0. (#2559) [Josh Goebel][]Changelog
Version 10.2.1
Parser Engine:
Changelog
Version 10.2.0
Parser Engine:
New themes:
Deprecations:
fixMarkup
is now deprecated and will be removed in v11.0. (#2534) [Josh Goebel][]Big picture:
Language Improvements:
init
and record
keywords for C# 9.0 (#2660) [Youssef Victor][]arguments
keyword and fix enumeration
keyword (#2619) [Andrew Janke][]getLanguage
(#2636) [night][]enum
, which will identify as a class
now (#2643) [ezksd][]Changelog
Version 10.1.1
Fixes:
index.d.ts is not a module
error (#2603) [Josh Goebel][]Changelog
Version 10.1.0
New themes:
Parser Engine:
keywords.$pattern
key to grammar definitions (#2519) [Josh Goebel][]registerAliases
method (#2540) [Taufik Nurrohman][]on:begin
callback for modes (#2261) [Josh Goebel][]on:end
callback for modes (#2261) [Josh Goebel][]END_SAME_AS_BEGIN
mode to replace endSameAsBegin
parser attribute (#2261) [Josh Goebel][]fixMarkup
would rarely destroy markup when useBR
was enabled (#2532) [Josh Goebel][]Deprecations:
htmlbars
grammar is now deprecated. Use handlebars
instead. (#2344) [Nils Knappmeier][]highlightBlock
result.re
deprecated. Use result.relevance
instead. (#2552) [Josh Goebel][]result.second_best.re
=> result.second_best.relevance
(#2552)lexemes
is now deprecated in favor of keywords.$pattern
key (#2519) [Josh Goebel][]endSameAsBegin
is now deprecated. (#2261) [Josh Goebel][]Language Improvements:
readonly
keyword (#2562) [Martin (Lhoerion)][]OPTIMIZE:
and HACK:
to the labels highlighted inside comments [Josh Goebel][]pair
, make_pair
, priority_queue
as built-ins (#2538) [Hankun Lin][]priority_queue
pair
as cpp containers (#2541) [Hankun Lin][]set
keyword conflicting with setTimeout, etc. (#2514) [Vania Kucher][]=>
function with nested ()
in params now works (#2502) [Josh Goebel][]=>
function with nested ()
in params now works (#2502) [Josh Goebel][]@objcMembers
was being partially highlighted (#2543) [Nick Randall][]late
and required
keywords, the Never
built-in type, and nullable built-in types (#2550) [Sam Rawlins][]