highlight.js
Advanced tools
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][]Changelog
Version 10.0.2
Brower build:
Parser Engine Changes:
Changelog
Version 10.0.1
Parser Engine Changes:
Changelog
Version 10.0.0
New languages:
python-repl
for Python REPL sessionsNew themes:
Parser Engine Changes:
beginKeywords
to ignore . matches (#2434) [Josh Goebel][]before:highlight
plugin API callback (#2395) [Josh Goebel][]after:highlight
plugin API callback (#2395) [Josh Goebel][]name
attribute now (#2400) [Josh Goebel][]noHighlightRe
and languagePrefixRe
configurable (#2374) [Josh Goebel][]Language Improvements:
compactMap
to keywords as built_in (#2478) [Omid Golparvar][]func
keyword (#2468) [Adnan Yaqoob][]defn-
properly (#2438) [Josh Goebel][]@identifier
style identifiers (#2414) [Josh Goebel][]deny
and allow
keywords [Josh Goebel][]<?=
syntax to meta [Taufik Nurrohman][]rpc
when followed by a block (#) [Josh Goebel][]where
keyword as class constraint (#2378) [Josh Goebel][]text
and txt
as alias (#2360) [Taufik Nurrohman][]Developer Tools:
Changelog
Version 9.18.1
Grammar Improvements:
Changelog
Version 9.18.0
New languages:
New themes:
Core Changes:
Language Improvements:
block
and endblock
keywords (#2343) [Philipp Engel][]A::typeName func(...)
) (#2332) [Josh Goebel][]A::functionName
) (#2332) [Josh Goebel][]int8_t
, etc.) as function types (#2332) [Josh Goebel][]Developer Tools: