d75477a694eafe16e04ca17bdbcf9f50c259604b4c799279568bdaf8f431bdfac19dd24c1b0d43122458dd5f6e5a30871e1e43452202cd78a7116ec79b6c83 142 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556
  1. ## Version 11.11.1
  2. - Fixes regression with Rust grammar.
  3. ## Version 11.11.0
  4. CAVEATS / POTENTIALLY BREAKING CHANGES
  5. - Nothing yet.
  6. Core Grammars:
  7. - fix(rust) - adds emoji support in single quote strings [joshgoebel][]
  8. - fix(apache) - support line continuation via `\` [Josh Goebel][]
  9. - fix(makefile) - allow strings inside `$()` expressions [aneesh98][]
  10. - enh(arcade) updated to ArcGIS Arcade version 1.29 [Kristian Ekenes][]
  11. - enh(css) add all properties listed on MDN (96 additions including `anchor-name`, `aspect-ratio`, `backdrop-filter`, `container`, `margin-trim`, `place-content`, `scroll-timeline`, ...) [BaliBalo][]
  12. - enh(excel) add built-in functions for Excel 365 release to 2024 [Danny Winrow][]
  13. - enh(erlang) OTP 27 triple-quoted strings [nixxquality][]
  14. - enh(erlang) OTP 27 doc attribute [nixxquality][]
  15. - enh(erlang) OTP 27 Sigil type [nixxquality][]
  16. - enh(erlang) OTP25/27 maybe statement [nixxquality][]
  17. - enh(dart) Support digit-separators in number literals [Sam Rawlins][]
  18. - enh(csharp) add Contextual keywords `file`, `args`, `dynamic`, `record`, `required` and `scoped` [Alvin Joy][]
  19. - enh(lua) add 'pluto' as an alias [Sainan]
  20. - enh(bash) add reserved keywords `time` and `coproc` [Álvaro Mondéjar][]
  21. - enh(nix) update keywords [h7x4][]
  22. - enh(nix) support paths [h7x4][]
  23. - enh(nix) support lookup paths [h7x4][]
  24. - enh(nix) support operators [h7x4][]
  25. - enh(nix) support REPL keywords [h7x4][]
  26. - enh(nix) support markdown comments [h7x4][]
  27. - enh(nix) support basic function params [h7x4][]
  28. - enh(nix) better parsing of attrsets [h7x4][]
  29. - fix(c) - Fixed hex numbers with decimals [Dxuian]
  30. - fix(typescript) - Fixedoptional property not highlighted correctly [Dxuian]
  31. - fix(ruby) - fix `|=` operator false positives (as block arguments) [Aboobacker MK]
  32. - enh(gcode) rewrote language for modern gcode support [Barthélémy Bonhomme][]
  33. - fix(sql) - Fixed sql primary key and foreign key spacing issue [Dxuian]
  34. - fix(cpp) added flat_set and flat_map as a part of cpp 23 version [Lavan]
  35. - fix(yaml) - Fixed special chars in yaml [Dxuian]
  36. - fix(basic) - Fixed closing quotation marks not required for a PRINT statement [Somya]
  37. - fix(nix) remove `add` builtin [h7x4][]
  38. - fix(nix) mark `or` as builtin instead of literal [h7x4][]
  39. - fix(nix) handle `'''` string escapes [h7x4][]
  40. - fix(nix) handle backslash string escapes [h7x4][]
  41. - fix(nix) don't mix escapes for `"` and `''` strings [h7x4][]
  42. - fix(swift) - Fixed syntax highlighting for class func/var declarations [guuido]
  43. - fix(yaml) - Fixed wrong escaping behavior in single quoted strings [guuido]
  44. - enh(nim) - Add `concept` and `defer` to list of Nim keywords [Jake Leahy]
  45. New Grammars:
  46. - added 3rd party TTCN-3 grammar to SUPPORTED_LANGUAGES [Osmocom][]
  47. - added 3rd party Odin grammar to SUPPORTED_LANGUAGES [clsource][]
  48. - added 3rd party Liquid grammar to SUPPORTED_LANGUAGES [Laurel King][]
  49. Developer Tools:
  50. - Nothing yet.
  51. Themes:
  52. - Added `Rosé Pine` theme [William Wilkinson][]
  53. - Added `Cybertopia Cherry` theme [Alexandre ZANNI][]
  54. - Added `Cybertopia Dimmer` theme [Alexandre ZANNI][]
  55. - Added `Cybertopia Icecap` theme [Alexandre ZANNI][]
  56. - Added `Cybertopia Saturated` theme [Alexandre ZANNI][]
  57. Improvements:
  58. - Resolve the memory leak problem when creating multiple Highlight.js instances [Imken][]
  59. CONTRIBUTORS
  60. [Josh Goebel]: https://github.com/joshgoebel
  61. [aneesh98]: https://github.com/aneesh98
  62. [BaliBalo]: https://github.com/BaliBalo
  63. [William Wilkinson]: https://github.com/wilkinson4
  64. [nixxquality]: https://github.com/nixxquality
  65. [srawlins]: https://github.com/srawlins
  66. [Alvin Joy]: https://github.com/alvinsjoy
  67. [Dxuian]:https://github.com/Dxuian
  68. [Aboobacker MK]: https://github.com/tachyons
  69. [Imken]: https://github.com/immccn123
  70. [Sainan]: https://github.com/Sainan
  71. [Osmocom]: https://github.com/osmocom
  72. [Álvaro Mondéjar]: https://github.com/mondeja
  73. [Alexandre ZANNI]: https://github.com/noraj
  74. [Barthélémy Bonhomme]: https://github.com/barthy-koeln
  75. [Lavan]: https://github.com/jvlavan
  76. [Somya]: https://github.com/somya-05
  77. [guuido]: https://github.com/guuido
  78. [clsource]: https://github.com/clsource
  79. [Jake Leahy]: https://github.com/ire4ever1190
  80. [Laurel King]: https://github.com/laurelthorburn
  81. [Kristian Ekenes]: https://github.com/ekenes
  82. [Danny Winrow]: https://github.com/dannywinrow
  83. ## Version 11.10.0
  84. CAVEATS / POTENTIALLY BREAKING CHANGES
  85. - Drops support for Node 16.x, which is no longer supported by Node.js.
  86. Core Grammars:
  87. - enh(typescript) add support for `satisfies` operator [Kisaragi Hiu][]
  88. - enc(c) added more C23 keywords [Melkor-1][]
  89. - enh(json) added jsonc as an alias [BackupMiles][]
  90. - enh(gml) updated to latest language version (GML v2024.2) [gnysek][]
  91. - enh(c) added more C23 keywords and preprcoessor directives [Eisenwave][]
  92. - enh(js/ts) support namespaced tagged template strings [Aral Balkan][]
  93. - enh(perl) fix false-positive variable match at end of string [Josh Goebel][]
  94. - fix(cpp) not all kinds of number literals are highlighted correctly [Lê Duy Quang][]
  95. - fix(css) fix overly greedy pseudo class matching [Bradley Mackey][]
  96. - enh(arcade) updated to ArcGIS Arcade version 1.24 [Kristian Ekenes][]
  97. - fix(typescript): params types [Mohamed Ali][]
  98. - fix(rust) fix escaped double quotes in string [Mohamed Ali][]
  99. - fix(rust) fix for r# raw identifier not being highlighted correctly. [JaeBaek Lee][]
  100. - enh(rust) Adding union to be recognized as a keyword in Rust. [JaeBaek Lee][]
  101. - fix(yaml) fix for yaml with keys having brackets highlighted incorrectly [Aneesh Kulkarni][]
  102. - fix(csharp) add raw string highlighting for C# 11. [Tara][]
  103. - fix(bash) fix # within token being detected as the start of a comment [Felix Uhl][]
  104. - fix(python) fix `or` conflicts with string highlighting [Mohamed Ali][]
  105. - enh(python) adds a scope to the `self` variable [Lee Falin][]
  106. - enh(delphi) allow digits to be omitted for hex and binary literals [Jonah Jeleniewski][]
  107. - enh(delphi) add support for digit separators [Jonah Jeleniewski][]
  108. - enh(delphi) add support for character strings with non-decimal numerics [Jonah Jeleniewski][]
  109. - fix(javascript) incorrect function name highlighting [CY Fung][]
  110. - fix(1c) fix escaped symbols "+-;():=,[]" literals [Vitaly Barilko][]
  111. - fix(swift) correctly highlight generics and conformances in type definitions [Bradley Mackey][]
  112. - enh(swift) add package keyword [Bradley Mackey][]
  113. - fix(swift) ensure keyword attributes highlight correctly [Bradley Mackey][]
  114. - fix(types) fix interface LanguageDetail > keywords [Patrick Chiu]
  115. - enh(java) add `goto` to be recognized as a keyword in Java [Alvin Joy][]
  116. - enh(bash) add keyword `sudo` [Alvin Joy][]
  117. - fix(haxe) captures `new` keyword without capturing it within variables/class names [Cameron Taylor][]
  118. - fix(go) fix go number literals to accept `_` separators, add hex p exponents [Lisa Ugray][]
  119. - enh(markdown) add entity support [David Schach][] [TaraLei][]
  120. - enh(css) add `justify-items` and `justify-self` attributes [Vasily Polovnyov][]
  121. - enh(css) add `accent-color`, `appearance`, `color-scheme`, `rotate`, `scale` and `translate` attributes [Carl Räfting][]
  122. - fix(fortran) fixes parsing of keywords delimited by dots [Julien Bloino][]
  123. - enh(css) add `select`, `option`, `optgroup`, `picture` and `source` to list of known tags [Vasily Polovnyov][]
  124. - enh(css) add `inset`, `inset-*`, `border-start-*-radius` and `border-end-*-radius` attributes [Vasily Polovnyov][]
  125. - enh(css) add `text-decoration-skip-ink`, `text-decoration-thickness` and `text-underline-offset` attributes [Vasily Polovnyov][]
  126. - enh(java) add `when` to be recognized as a keyword in Java [Chiel van de Steeg][]
  127. New Grammars:
  128. - added 3rd party CODEOWNERS grammar to SUPPORTED_LANGUAGES [nataliia-radina][]
  129. - added 3rd party Luau grammar to SUPPORTED_LANGUAGES [Robloxian Demo][]
  130. - added 3rd party ReScript grammar to SUPPORTED_LANGUAGES [Paul Tsnobiladzé][]
  131. - added 3rd party Zig grammar to SUPPORTED_LANGUAGES [Hyou BunKen][]
  132. - added 3rd party WGSL grammar to SUPPORTED_LANGUAGES [Arman Uguray][]
  133. - added 3rd party Unison grammar to SUPPORTED_LANGUAGES [Rúnar Bjarnason][]
  134. - added 3rd party Phix grammar to SUPPORTED_LANGUAGES [PeteLomax][]
  135. - added 3rd party Mirth grammar to SUPPORTED_LANGUAGES [Sierra][]
  136. - added 3rd party JSONata grammar to SUPPORTED_LANGUAGES [Vlad Dimov][]
  137. Developer Tool:
  138. - enh(tools): order CSS options picklist [David Schach][]
  139. - enh(tools): remove duplicate CSS options [David Schach][]
  140. - (typescript): deprecate old `highlight` API [Misha Kaletsky][]
  141. Themes:
  142. - Added `1c-light` theme a like in the IDE 1C:Enterprise 8 (for 1c) [Vitaly Barilko][]
  143. [Kisaragi Hiu]: https://github.com/kisaragi-hiu
  144. [Melkor-1]: https://github.com/Melkor-1
  145. [PeteLomax]: https://github.com/petelomax
  146. [gnysek]: https://github.com/gnysek
  147. [Eisenwave]: https://github.com/Eisenwave
  148. [Aral Balkan]: https://github.com/aral
  149. [Lê Duy Quang]: https://github.com/leduyquang753
  150. [Mohamed Ali]: https://github.com/MohamedAli00949
  151. [JaeBaek Lee]: https://github.com/ThinkingVincent
  152. [Bradley Mackey]: https://github.com/bradleymackey
  153. [Kristian Ekenes]: https://github.com/ekenes
  154. [Aneesh Kulkarni]: https://github.com/aneesh98
  155. [Bruno Meneguele]: https://github.com/bmeneg
  156. [Tara]: https://github.com/taralei
  157. [Felix Uhl]: https://github.com/iFreilicht
  158. [nataliia-radina]: https://github.com/Nataliia-Radina
  159. [Robloxian Demo]: https://github.com/RobloxianDemo
  160. [Paul Tsnobiladzé]: https://github.com/tsnobip
  161. [Jonah Jeleniewski]: https://github.com/cirras
  162. [Josh Goebel]: https://github.com/joshgoebel
  163. [CY Fung]: https://github.com/cyfung1031
  164. [Vitaly Barilko]: https://github.com/Diversus23
  165. [Patrick Chiu]: https://github.com/patrick-kw-chiu
  166. [Alvin Joy]: https://github.com/alvinsjoy
  167. [Lisa Ugray]: https://github.com/lugray
  168. [TaraLei]: https://github.com/TaraLei
  169. [Cameron Taylor]: https://github.com/ninjamuffin99
  170. [Vasily Polovnyov]: https://github.com/vast
  171. [Arman Uguray]: https://github.com/armansito
  172. [Rúnar Bjarnason]: https://github.com/runarorama
  173. [Carl Räfting]: https://github.com/carlrafting
  174. [BackupMiles]: https://github.com/BackupMiles
  175. [Julien Bloino]: https://github.com/jbloino
  176. [Sierra]: https://github.com/casuallyblue
  177. [Vlad Dimov]: https://github.com/DevDimov
  178. [Chiel van de Steeg]: https://github.com/cvdsteeg
  179. ## Version 11.9.0
  180. CAVEATS / POTENTIALLY BREAKING CHANGES
  181. - Drops support for Node 14.x, which is no longer supported by Node.js.
  182. - In the `node` build `styles/*.css` files now ship un-minified
  183. with minified counterparts as: `styles/*.min.css` [mvorisek][]
  184. (this makes things consistent with our `cdn` builds)
  185. Parser:
  186. - (enh) prevent re-highlighting of an element [joshgoebel][]
  187. - (chore) Remove discontinued badges from README [Bradley Mackey][]
  188. - (chore) Fix build size report [Bradley Mackey][]
  189. New Grammars:
  190. - added 3rd party Iptables grammar to SUPPORTED_LANGUAGES [Checconio][]
  191. - added 3rd party x86asmatt grammar to SUPPORTED_LANGUAGES [gondow][]
  192. - added 3rd party riscv64 grammar to SUPPORTED_LANGUAGES [aana-h2][]
  193. - added 3rd party Ballerina grammar to SUPPORTED_LANGUAGES [Yasith Deelaka][]
  194. Core Grammars:
  195. - fix(cpp) fixed highlighter break state [Md Saad Akhtar][]
  196. - fix(rust) added negative-lookahead for callable keywords `if` `while` `for` [Omar Hussein][]
  197. - enh(armasm) added `x0-x30` and `w0-w30` ARMv8 registers [Nicholas Thompson][]
  198. - enh(haxe) added `final`, `is`, `macro` keywords and `$` identifiers [Robert Borghese][]
  199. - enh(haxe) support numeric separators and suffixes [Robert Borghese][]
  200. - fix(haxe) fixed metadata arguments and support non-colon syntax [Robert Borghese][]
  201. - fix(haxe) differentiate `abstract` declaration from keyword [Robert Borghese][]
  202. - fix(bash) do not delimit a string by an escaped apostrophe [hancar][]
  203. - enh(swift) support `macro` keyword [Bradley Mackey][]
  204. - enh(swift) support parameter pack keywords [Bradley Mackey][]
  205. - enh(swift) regex literal support [Bradley Mackey][]
  206. - enh(swift) `@unchecked` and `@Sendable` support [Bradley Mackey][]
  207. - enh(scala) add using directives support `//> using foo bar` [Jamie Thompson][]
  208. - fix(scala) fixed comments in constructor arguments not being properly highlighted [Isaac Nonato][]
  209. - enh(swift) ownership modifiers support [Bradley Mackey][]
  210. - enh(nsis) Add `!assert` compiler flag [idleberg][]
  211. - fix(haskell) do not treat double dashes inside infix operators as comments [Zlondrej][]
  212. - enh(rust) added `eprintln!` macro [qoheniac][]
  213. - enh(leaf) update syntax to 4.0 [Samuel Bishop][]
  214. - fix(reasonml) simplify syntax and align it with ocaml [jchavarri][]
  215. - fix(swift) `warn_unqualified_access` is an attribute [Bradley Mackey][]
  216. - enh(swift) macro attributes are highlighted as keywords [Bradley Mackey][]
  217. - enh(stan) updated for version 2.33 (#3859) [Brian Ward][]
  218. - enh(llvm) match additional types [wtz][]
  219. - fix(css) added '_' css variable detection [Md Saad Akhtar][]
  220. - enh(groovy) add `record` and `var` as keywords [Guillaume Laforge][]
  221. Developer Tool:
  222. - (chore) Update dev tool to use the new `highlight` API. [Shah Shabbir Ahmmed][]
  223. - (enh) Auto-update the highlighted output when the language dropdown changes. [Shah Shabbir Ahmmed][]
  224. [Robert Borghese]: https://github.com/RobertBorghese
  225. [Isaac Nonato]: https://github.com/isaacnonato
  226. [Shah Shabbir Ahmmed]: https://github.com/shabbir23ah
  227. [Josh Goebel]: https://github.com/joshgoebel
  228. [Checconio]: https://github.com/Checconio
  229. [Bradley Mackey]: https://github.com/bradleymackey
  230. [mvorisek]: https://github.com/mvorisek
  231. [qoheniac]: https://github.com/qoheniac
  232. [Samuel Bishop]: https://github.com/dannflor
  233. [gondow]: https://github.com/gondow
  234. [jchavarri]: https://github.com/jchavarri
  235. [aana-h2]: https://github.com/aana-h2
  236. [Nicholas Thompson]: https://github.com/NAThompson
  237. [Yasith Deelaka]: https://github.com/YasithD
  238. [Brian Ward]: https://github.com/WardBrian
  239. [wtz]: https://github.com/wangtz0607
  240. [Md Saad Akhtar]: https://github.com/akhtarmdsaad
  241. [Guillaume Laforge]: https://github.com/glaforge
  242. ## Version 11.8.0
  243. Parser engine:
  244. - added a function to default export to generate a fresh highlighter instance to be used by extensions [WisamMechano][]
  245. - added BETA `__emitTokens` key to grammars to allow then to direct their own parsing, only using Highlight.js for the HTML rendering [Josh Goebel][]
  246. - (enh) add `removePlugin` api [faga295][]
  247. - (fix) typo in language name of `JavaScript` [Cyrus Kao][]
  248. New Grammars:
  249. - added 3rd party Lang grammar to SUPPORTED_LANGUAGES [AdamRaichu][]
  250. - added 3rd party C3 grammar to SUPPORTED_LANGUAGES [aliaegik][]
  251. Core Grammars:
  252. - enh(sql) support `_` in variable names [joshgoebel][]
  253. - enh(mathematica) update keywords list to 13.2.1 [arnoudbuzing][]
  254. - enh(protobuf) add `proto` alias for Protobuf [dimitropoulos][]
  255. - enh(sqf) latest changes in Arma 3 v2.11 [Leopard20][]
  256. - enh(js/ts) Added support for GraphQL tagged template strings [Ali Ukani][]
  257. - enh(javascript) add sessionStorage to list of built-in variables [Jeroen van Vianen][]
  258. - enh(http) Add support for HTTP/3 [Rijenkii][]
  259. - added 3rd party Motoko grammar to SUPPORTED_LANGUAGES [rvanasa][]
  260. - added 3rd party Candid grammar to SUPPORTED_LANGUAGES [rvanasa][]
  261. - fix(haskell) Added support for characters [CrystalSplitter][]
  262. - enh(dart) Add `base`, `interface`, `sealed`, and `when` keywords [Sam Rawlins][]
  263. - enh(php) detect newer more flexible NOWdoc syntax (#3679) [Timur Kamaev][]
  264. - enh(python) improve autodetection of code with type hinting any function's return type (making the `->` operator legal) [Keyacom][]
  265. - enh(bash) add `select` and `until` as keywords
  266. [arnoudbuzing]: https://github.com/arnoudbuzing
  267. [aliaegik]: https://github.com/aliaegik
  268. [Josh Goebel]: https://github.com/joshgoebel
  269. [Timur Kamaev]: https://github.com/doiftrue
  270. [Leopard20]: https://github.com/Leopard20/
  271. [WisamMechano]: https://github.com/wisammechano
  272. [faga295]: https://github.com/faga295
  273. [AdamRaichu]: https://github.com/AdamRaichu
  274. [Ali Ukani]: https://github.com/ali
  275. [Jeroen van Vianen]: https://github.com/morinel
  276. [gnysek]: https://github.com/gnysek
  277. [Rijenkii]: https://github.com/rijenkii
  278. [faga295]: https://github.com/faga295
  279. [rvanasa]: https://github.com/rvanasa
  280. [CrystalSplitter]: https://github.com/CrystalSplitter
  281. [Sam Rawlins]: https://github.com/srawlins
  282. [Keyacom]: https://github.com/Keyacom
  283. [Boris Verkhovskiy]: https://github.com/verhovsky
  284. [Cyrus Kao]: https://github.com/CyrusKao
  285. [Zlondrej]: https://github.com/zlondrej
  286. ## Version 11.7.0
  287. New Grammars:
  288. - added 3rd party LookML grammar to SUPPORTED_LANGUAGES [Josh Temple][]
  289. - added 3rd party FunC grammar to SUPPORTED_LANGUAGES [Nikita Sobolev][]
  290. - Added 3rd party Flix grammar to SUPPORTED_LANGUAGES [The Flix Organisation][]
  291. - Added 3rd party RVT grammar to SUPPORTED_LANGUAGES [Sopitive][]
  292. Grammars:
  293. - enh(scheme) add `scm` alias for Scheme [matyklug18][]
  294. - fix(typescript) patterns like `<T =` are not JSX [Josh Goebel][]
  295. - fix(bash) recognize the `((` keyword [Nick Chambers][]
  296. - enh(Ruby) misc improvements (kws, class names, etc) [Josh Goebel][]
  297. - fix(js) do not flag `import()` as a function, rather a keyword [nathnolt][]
  298. - fix(bash) recognize the `((` keyword [Nick Chambers][]
  299. - fix(nix) support escaped dollar signs in strings [h7x4][]
  300. - enh(cmake) support bracket comments [Hirse][]
  301. - enh(java) add yield keyword to java [MBoegers][]
  302. - enh(java) add permits keyword to java [MBoegers][]
  303. - fix(javascript/typescript) correct identifier matching when using numbers [Lachlan Heywood][]
  304. Improvements:
  305. - Documentation typo fix by [Eddymens][]
  306. [matyklug18]: https://github.com/matyklug18
  307. [Josh Goebel]: https://github.com/joshgoebel
  308. [Josh Temple]: https://github.com/joshtemple
  309. [nathnolt]: https://github.com/nathnolt
  310. [Nick Chambers]: https://github.com/uplime
  311. [h7x4]: https://github.com/h7x4
  312. [Hirse]: https://github.com/Hirse
  313. [The Flix Organisation]: https://github.com/flix
  314. [MBoegers]: https://github.com/MBoegers
  315. [Lachlan Heywood]: https://github.com/lachieh
  316. [Eddymens]: https://github.com/eddymens
  317. [Sopitive]: https://github.com/Sopitive
  318. ## Version 11.6.0
  319. Supported Node.js versions:
  320. - (chore) Drops support for Node 12.x, which is no longer supported by Node.js.
  321. Default build changes:
  322. - add `wasm` to default `:common` build (#3526) [Josh Goebel][]
  323. - add `graphql` to default `:common` build (#3526) [Josh Goebel][]
  324. Grammars:
  325. - fix(json) changed null/booleans from `keyword` to `literal` [shikhar13012001][]
  326. - enh(gml) reorganized and added additional keywords [Bluecoreg][]
  327. - enh(csharp) Added support for the new `scoped` keyword in C# (#3571) [David Pine][]
  328. - enh(scala) add `transparent` keyword [Matt Bovel][]
  329. - fix(rust) highlight types immediately preceeding `::` (#3540) [Josh Goebel][]
  330. - Added 3rd party Apex grammar to SUPPORTED_LANGUAGES (#3546) [David Schach][]
  331. - fix(rust) recognize `include_bytes!` macro (#3541) [Serial-ATA][]
  332. - fix(java) do not intepret `==` as a variable declaration [Mousetail][]
  333. - enh(swift) add SE-0335 existential `any` keyword (#3515) [Bradley Mackey][]
  334. - enh(swift) add support for `distributed` keyword [Marcus Ortiz][]
  335. - enh(xml) recognize Unicode letters instead of only ASCII letters in XML element and attribute names (#3256)[Martin Honnen][]
  336. - Added 3rd party Toit grammar to SUPPORTED_LANGUAGES [Serzhan Nasredin][]
  337. - Use substring() instead of deprecated substr() [Tobias Buschor][]
  338. - Added 3rd party Oak grammar to SUPPORTED_LANGUAGES [Tim Smith][]
  339. - enh(python) add `match` and `case` keywords [Avrumy Lunger][]
  340. - Added 3rd party COBOL grammar to SUPPORTED_LANGUAGES [Gabriel Gonçalves][]
  341. [shikhar13012001]: https://github.com/shikhar13012001
  342. [Bluecoreg]: https://github.com/Bluecoreg
  343. [Matt Bovel]: https://github.com/mbovel
  344. [David Schach]: https://github.com/dschach
  345. [Serial-ATA]: https://github.com/Serial-ATA
  346. [Bradley Mackey]: https://github.com/bradleymackey
  347. [Marcus Ortiz]: https://github.com/mportiz08
  348. [Martin Honnen]: https://github.com/martin-honnen
  349. [Serzhan Nasredin]: https://github.com/snxx-lppxx
  350. [Tobias Buschor]: https://github.com/nuxodin/
  351. [Tim Smith]: https://github.com/timlabs
  352. [Avrumy Lunger]: https://github.com/vrumger
  353. [Mousetail]: https://github.com/mousetail
  354. [Gabriel Gonçalves]: https://github.com/KTSnowy
  355. [Nikita Sobolev]: https://github.com/sobolevn
  356. [Misha Kaletsky]: https://github.com/mmkal
  357. ## Version 11.5.0
  358. Themes:
  359. - Added `Tokyo-Night-dark` theme [Henri Vandersleyen][]
  360. - Added `Tokyo-Night-light` theme [Henri Vandersleyen][]
  361. - Added `panda-syntax-dark` theme [Annmarie Switzer][]
  362. - Added `panda-syntax-light` theme [Annmarie Switzer][]
  363. New Grammars:
  364. - Added GraphQL to SUPPORTED_LANGUAGES [John Foster][]
  365. - Added Macaulay2 to SUPPORTED_LANGUAGES [Doug Torrance][]
  366. Grammars:
  367. - enh(ruby) lots of small Ruby cleanups/improvements [Josh Goebel][]
  368. - enh(objectivec) add `type` and `variable.language` scopes [Josh Goebel][]
  369. - enh(xml) support processing instructions (#3492) [Josh Goebel][]
  370. - enh(ruby ) better support multi-line IRB prompts
  371. - enh(bash) improved keyword `$pattern` (numbers allowed in command names) [Martin Mattel][]
  372. - add `meta.prompt` scope for REPL prompts, etc [Josh Goebel][]
  373. - fix(markdown) Handle `***Hello world***` without breaking [Josh Goebel][]
  374. - enh(php) add support for PHP Attributes [Wojciech Kania][]
  375. - fix(java) prevent false positive variable init on `else` [Josh Goebel][]
  376. - enh(php) named arguments [Wojciech Kania][]
  377. - fix(php) PHP constants [Wojciech Kania][]
  378. - fix(angelscript) incomplete int8, int16, int32, int64 highlighting [Melissa Geels][]
  379. - enh(ts) modify TypeScript-specific keywords and types list [anydonym][]
  380. - fix(brainfuck) fix highlighting of initial ++/-- [Christina Hanson][]
  381. - fix(llvm) escaping in strings and number formats [Flakebi][]
  382. - enh(elixir) recognize references to modules [Mark Ericksen][]
  383. - enh(css): add support for more properties [Nicolaos Skimas][]
  384. [Martin Mattel]: https://github.com/mmattel
  385. [John Foster]: https://github.com/jf990
  386. [Wojciech Kania]: https://github.com/wkania
  387. [Melissa Geels]: https://github.com/codecat
  388. [anydonym]: https://github.com/anydonym
  389. [henri Vandersleyen]: https://github.com/Vanderscycle
  390. [Christina Hanson]: https://github.com/LyricLy
  391. [Flakebi]: https://github.com/Flakebi
  392. [Josh Goebel]: https://github.com/joshgoebel
  393. [Mark Ericksen]: https://github.com/brainlid
  394. [Nicolaos Skimas]: https://github.com/dev-nicolaos
  395. [Doug Torrance]: https://github.com/d-torrance
  396. [Annmarie Switzer]: https://github.com/annmarie-switzer
  397. ## Version 11.4.0
  398. New Language:
  399. - Added 3rd party Pine Script grammar to SUPPORTED_LANGUAGES [Jeylani B][]
  400. - Added 3rd party cURL grammar to SUPPORTED_LANGUAGES [highlightjs-curl](https://github.com/highlightjs/highlightjs-curl)
  401. Themes:
  402. - `Default` is now much closer WCAG AA (contrast) (#3402) [Josh Goebel]
  403. - `Dark` now meets WCAG AA (contrast) (#3402) [Josh Goebel]
  404. - Added `intellij-light` theme [Pegasis]
  405. - Added `felipec` theme [Felipe Contreras]
  406. These changes should be for the better and should not be super noticeable but if you're super picky about your colors you may want to intervene here or copy over the older themes from 11.3 or prior.
  407. Grammars:
  408. - enh(twig) update keywords list for symfony (#3453) [Matthieu Lempereur][]
  409. - enh(arcade) updated to ArcGIS Arcade version 1.16 [John Foster][]
  410. - enh(php) Left and right-side of double colon [Wojciech Kania][]
  411. - enh(php) add PHP constants [Wojciech Kania][]
  412. - enh(php) add PHP 8.1 keywords [Wojciech Kania][]
  413. - fix(cpp) fix `vector<<` template false positive (#3437) [Josh Goebel][]
  414. - enh(php) support First-class Callable Syntax (#3427) [Wojciech Kania][]
  415. - enh(php) support class constructor call (#3427) [Wojciech Kania][]
  416. - enh(php) support function invoke (#3427) [Wojciech Kania][]
  417. - enh(php) Switch highlighter to partially case-insensitive (#3427) [Wojciech Kania][]
  418. - enh(php) improve `namespace` and `use` highlighting (#3427) [Josh Goebel][]
  419. - enh(php) `$this` is a `variable.language` now (#3427) [Josh Goebel][]
  420. - enh(php) add `__COMPILER_HALT_OFFSET__` (#3427) [Josh Goebel][]
  421. - enh(js/ts) fix => async function title highlights (#3405) [Josh Goebel][]
  422. - enh(twig) update keywords list (#3415) [Matthieu Lempereur][]
  423. - fix(python) def, class keywords detected mid-identifier (#3381) [Josh Goebel][]
  424. - fix(python) Fix recognition of numeric literals followed by keywords without whitespace (#2985) [Richard Gibson][]
  425. - enh(swift) add SE-0290 unavailability condition (#3382) [Bradley Mackey][]
  426. - fix(fsharp) Highlight operators, match type names only in type annotations, support quoted identifiers, and other smaller fixes. [Melvyn Laïly][]
  427. - enh(java) add `sealed` and `non-sealed` keywords (#3386) [Bradley Mackey][]
  428. - enh(js/ts) improve `CLASS_REFERENCE` (#3411) [Josh Goebel][]
  429. - enh(nsis) Update defines pattern to allow `!` (#3417) [idleberg][]
  430. - enh(nsis) Update language strings pattern to allow `!` (#3420) [idleberg][]
  431. - fix(stan) Updated for Stan 2.28 and other misc. improvements (#3410)
  432. - enh(nsis) Update variables pattern (#3416) [idleberg][]
  433. - fix(clojure) Several issues with Clojure highlighting (#3397) [Björn Ebbinghaus][]
  434. - fix(clojure) `comment` macro catches more than it should (#3395)
  435. - fix(clojure) `$` in symbol breaks highlighting
  436. - fix(clojure) Add complete regex for number detection
  437. - enh(clojure) Add character mode for character literals
  438. - fix(clojure) Inconsistent namespaced map highlighting
  439. - enh(clojure) Add `regex` mode to regex literal
  440. - fix(clojure) Remove inconsistent/broken highlighting for metadata
  441. - enh(clojure) Add `punctuation` mode for commas.
  442. - fix(julia) Enable the `jldoctest` alias (#3432) [Fons van der Plas][]
  443. Developer Tools:
  444. - (chore) add gzip size compression report (#3400) [Bradley Mackey][]
  445. Themes:
  446. - Modified background color in css for Gradient Light and Gradient Dark themes [Samia Ali][]
  447. [John Foster]: https://github.com/jf990
  448. [Pegasis]: https://github.com/PegasisForever
  449. [Wojciech Kania]: https://github.com/wkania
  450. [Jeylani B]: https://github.com/jeyllani
  451. [Richard Gibson]: https://github.com/gibson042
  452. [Bradley Mackey]: https://github.com/bradleymackey
  453. [Melvyn Laïly]: https://github.com/mlaily
  454. [Björn Ebbinghaus]: https://github.com/MrEbbinghaus
  455. [Josh Goebel]: https://github.com/joshgoebel
  456. [Samia Ali]: https://github.com/samiaab1990
  457. [Matthieu Lempereur]: https://github.com/MrYamous
  458. [idleberg]: https://github.com/idleberg
  459. [Fons van der Plas]: https://github.com/fonsp
  460. [Felipe Contreras]: https://github.com/felipec
  461. ## Version 11.3.1
  462. Build:
  463. - (fix) Grammar CDN modules not generated correctly. (#3363) [Josh Goebel][]
  464. [Josh Goebel]: https://github.com/joshgoebel
  465. ## Version 11.3.0
  466. Build:
  467. - add `HighlightJS` named export (#3295) [Josh Goebel][]
  468. - add `.default` named export to CJS builds (#3333) [Josh Goebel][]
  469. Parser:
  470. - add first rough performance testing script (#3280) [Austin Schick][]
  471. - add `throwUnescapedHTML` to warn against potential HTML injection [Josh Goebel][]
  472. - expose `regex` helper functions via `hljs` injection [Josh Goebel][]
  473. - concat
  474. - lookahead
  475. - either
  476. - optional
  477. - anyNumberOfTimes
  478. Grammars:
  479. - fix(ts) some complex types would classify as JSX (#3278) [Josh Goebel][]
  480. - fix(js/ts) less false positives for `class X extends Y` (#3278) [Josh Goebel][]
  481. - enh(css): add properties from several W3C (Candidate) Recommendations (#3308)
  482. - fix(js/ts) `Float32Array` highlighted incorrectly (#3353) [Josh Goebel][]
  483. - fix(css) single-colon psuedo-elements no longer break highlighting (#3240) [Josh Goebel][]
  484. - fix(scss) single-colon psuedo-elements no longer break highlighting (#3240) [Josh Goebel][]
  485. - enh(fsharp) rewrite most of the grammar, with many improvements [Melvyn Laïly][]
  486. - enh(go) better type highlighting, add `error` type [Josh Goebel][]
  487. - fix(js/ts) regex inside `SUBST` is no longer highlighted [Josh Goebel][]
  488. - fix(python) added support for unicode identifiers (#3280) [Austin Schick][]
  489. - enh(css/less/stylus/scss) improve consistency of function dispatch (#3301) [Josh Goebel][]
  490. - enh(css/less/stylus/scss) detect block comments more fully (#3301) [Josh Goebel][]
  491. - fix(cpp) switch is a keyword (#3312) [Josh Goebel][]
  492. - fix(cpp) fix `xor_eq` keyword highlighting. [Denis Kovalchuk][]
  493. - enh(c,cpp) highlight type modifiers as type (#3316) [Josh Goebel][]
  494. - enh(css/less/stylus/scss) add support for CSS Grid properties [monochromer][]
  495. - enh(java) add support for Java Text Block (#3322) [Teletha][]
  496. - enh(scala) add missing `do` and `then` keyword (#3323) [Nicolas Stucki][]
  497. - enh(scala) add missing `enum`, `export` and `given` keywords (#3328) [Nicolas Stucki][]
  498. - enh(scala) remove symbol syntax and fix quoted code syntax (#3324) [Nicolas Stucki][]
  499. - enh(scala) add Scala 3 `extension` soft keyword (#3326) [Nicolas Stucki][]
  500. - enh(scala) add Scala 3 `end` soft keyword (#3327) [Nicolas Stucki][]
  501. - enh(scala) add `inline` soft keyword (#3329) [Nicolas Stucki][]
  502. - enh(scala) add `using` soft keyword (#3330) [Nicolas Stucki][]
  503. - enh(fsharp) added `f#` alias (#3337) [Bahnschrift][]
  504. - enh(bash) added gnu core utilities (#3342) [katzeprior][]
  505. - enh(nsis) add new NSIS commands (#3351) [idleberg][]
  506. - fix(nsis) set `case_insensitive` to `true` (#3351) [idleberg][]
  507. - fix(css/less/stylus/scss) highlight single-colon psuedo-elements properly (#3240) [zsoltlengyelit][]
  508. - fix(css) add css hex color alpha support (#3360) [ierehon1905][]
  509. [Austin Schick]: https://github.com/austin-schick
  510. [Josh Goebel]: https://github.com/joshgoebel
  511. [Denis Kovalchuk]: https://github.com/deniskovalchuk
  512. [monochromer]: https://github.com/monochromer
  513. [Teletha]: https://github.com/teletha
  514. [Nicolas Stucki]: https://github.com/nicolasstucki
  515. [Bahnschrift]: https://github.com/Bahnschrift
  516. [Melvyn Laïly]: https://github.com/mlaily
  517. [katzeprior]: https://github.com/katzeprior
  518. [zsoltlengyelit]: github.com/zsoltlengyelit
  519. [Syb Wartna]:https://github.com/waarissyb
  520. [idleberg]: https://github.com/idleberg
  521. [ierehon1905]: https://github.com/ierehon1905
  522. ## Version 11.2.0
  523. Build:
  524. - fix: run Node build CSS files thru CSS processor also (#3284) [Josh Goebel][]
  525. Parser:
  526. - fix(csharp) Fix assignments flagging as functions [Josh Goebel][]
  527. - fix(types) Fix some type definition issues (#3274) [Josh Goebel][]
  528. - fix(verilog) Fix directive handling (#3283) [Josh Goebel][]
  529. - fix(verilog) Fix binary number false positives on `_` (#3283) [Josh Goebel][]
  530. - enh(verilog) `__FILE__` and `__LINE__` constants (#3283) [Josh Goebel][]
  531. - enh(verilog) tighten keyword regex (#3283) [Josh Goebel][]
  532. Grammars:
  533. - enh(swift) Add `isolated`/`nonisolated` keywords (#3296) [Bradley Mackey][]
  534. New Languages:
  535. - Added 3rd party X# grammar to SUPPORTED_LANGUAGES [Patrick Kruselburger][]
  536. - Added 3rd party MKB grammar to SUPPORTED_LANGUAGES (#3297) [Dereavy][]
  537. [Josh Goebel]: https://github.com/joshgoebel
  538. [Patrick Kruselburger]: https://github.com/PatrickKru
  539. [Bradley Mackey]: https://github.com/bradleymackey
  540. [Dereavy]: https://github.com/dereavy
  541. ## Version 11.1.0
  542. Grammars:
  543. - fix(csharp) add missing `catch` keyword (#3251) [Konrad Rudolph][]
  544. - add additional keywords to csp.js (#3244) [Elijah Conners][]
  545. - feat(css) handle css variables syntax (#3239) [Thanos Karagiannis][]
  546. - fix(markdown) Images with empty alt or links with empty text (#3233) [Josh Goebel][]
  547. - enh(powershell) added `pwsh` alias (#3236) [tebeco][]
  548. - fix(r) fix bug highlighting examples in doc comments [Konrad Rudolph][]
  549. - fix(python) identifiers starting with underscore not highlighted (#3221) [Antoine Lambert][]
  550. - enh(clojure) added `edn` alias (#3213) [Stel Abrego][]
  551. - enh(elixir) much improved regular expression sigil support (#3207) [Josh Goebel][]
  552. - enh(elixir) updated list of keywords (#3212) [Angelika Tyborska][]
  553. - fix(elixir) fixed number detection when numbers start with a zero (#3212) [Angelika Tyborska][]
  554. - fix(ps1) Flag highlighted incorrectly (#3167) [Pankaj Patil][]
  555. - fix(latex) Allow wider syntax for magic comments (#3243) [Benedikt Wilde][]
  556. - fix(js/ts) Constants may include numbers [Josh Goebel][]
  557. [Stel Abrego]: https://github.com/stelcodes
  558. [Josh Goebel]: https://github.com/joshgoebel
  559. [Antoine Lambert]: https://github.com/anlambert
  560. [Elijah Conners]: https://github.com/elijahepepe
  561. [Angelika Tyborska]: https://github.com/angelikatyborska
  562. [Konrad Rudolph]: https://github.com/klmr
  563. [tebeco]: https://github.com/tebeco
  564. [Pankaj Patil]: https://github.com/patil2099
  565. [Benedikt Wilde]: https://github.com/schtandard
  566. [Thanos Karagiannis]: https://github.com/thanoskrg
  567. ## Version 11.0.0
  568. **This is a major release.** As such it contains breaking changes which may require action from users. Please read [VERSION_11_UPGRADE.md](https://github.com/highlightjs/highlight.js/blob/main/VERSION_11_UPGRADE.md) for a detailed summary of all breaking changes.
  569. ### Potentially breaking changes
  570. Unless otherwise attributed items below are thanks to [Josh Goebel][] (ref: [#2558](https://github.com/highlightjs/highlight.js/issues/2558)).
  571. *The below list should only be considered to be a high-level summary.*
  572. Deprecations / Removals / API Changes:
  573. - `initHighlighting()` and `initHighlightingOnLoad()` deprecated. **Use `highlightAll()`.**
  574. - `highlightBlock(el)` deprecated. **Use `highlightElement(el)`**
  575. - `before:highlightBlock` & `after:highlightBlock` callbacks deprecated. **Use equivalent `highlightElement` callbacks.**
  576. - `highlight(languageName, code, ignoreIllegals, continuation)` signature deprecated. **Use `highlight(code, {language, ignoreIllegals})`.**
  577. - Deprecated `highlight()` signature no longer supports `continuation` argument.
  578. - `tabReplace` option removed. Consider a plugin.
  579. - `useBR` option removed. Consider a plugin or CSS.
  580. - `requireLanguage()` removed. **Use `getLanguage()`.**
  581. - `endSameAsBegin` mode key removed. **Use `hljs.END_SAME_AS_BEGIN`.**
  582. - `lexemes` mode key removed. **Use `keywords.$pattern`.**
  583. - The return values/keys of some APIs have changed slightly.
  584. Security:
  585. - HTML auto-passthru has been removed. Consider a plugin.
  586. - Unescaped HTML is now stripped (for security). A warning is logged to the console. (#3057) [Josh Goebel][]
  587. Themes:
  588. - The default padding of all themes increases (0.5em => 1em).
  589. - `schoolbook` has been updated to remove the lined background.
  590. - `github` updated to better match modern GitHub (#1616) [Jan Pilzer][]
  591. - `github-gist` has been removed in favor of `github` [Jan Pilzer][]
  592. - Base16 named themes have been updated to their "canonical" versions
  593. - `nnfx` updated for v11 xml styles and improved css support
  594. Language Grammars:
  595. - Default CDN build drops support for several languages.
  596. - Some language grammar files have been removed.
  597. - Some redundant language aliases have been removed.
  598. ### Other changes
  599. Parser:
  600. - enh(vala) improve language detection for Vala (#3195) [Konrad Rudolph][]
  601. - enh(r) add support for operators, fix number highlighting bug (#3194, #3195) [Konrad Rudolph][]
  602. - enh(parser) add `beginScope` and `endScope` to allow separate scoping begin and end (#3159) [Josh Goebel][]
  603. - enh(parsed) `endScope` now supports multi-class matchers as well (#3159) [Josh Goebel][]
  604. - enh(parser) `highlightElement` now always tags blocks with a consistent `language-[name]` class [Josh Goebel][]
  605. - subLanguage `span` tags now also always have the `language-` prefix added
  606. - enh(parser) support multi-class matchers (#3081) [Josh Goebel][]
  607. - enh(parser) Detect comments based on english like text, rather than keyword list [Josh Goebel][]
  608. - adds `title.class.inherited` sub-scope support [Josh Goebel][]
  609. - adds `title.class` sub-scope support (#3078) [Josh Goebel][]
  610. - adds `title.function` sub-scope support (#3078) [Josh Goebel][]
  611. - adds `beforeMatch` compiler extension (#3078) [Josh Goebel][]
  612. - adds `cssSelector ` configuration option (#3180) [James Edington][]
  613. Grammars:
  614. - enh(all) `.meta-keyword` => `.meta .keyword` (nested scopes) (#3167) [Josh Goebel][]
  615. - enh(all) `.meta-string` => `.meta .string` (nested scopes) (#3167) [Josh Goebel][]
  616. - enh(swift) add `actor` keyword (#3171) [Bradley Mackey][]
  617. - enh(crystal) highlight variables (#3154) [Josh Goebel][]
  618. - fix(ruby) Heredoc without interpolation (#3154) [Josh Goebel][]
  619. - enh(swift) add `@resultBuilder` attribute (#3151) [Bradley Mackey][]
  620. - enh(processing) added `pde` alias (#3142) [Dylan McBean][]
  621. - enh(thrift) Use proper scope for types [Josh Goebel][]
  622. - enh(java) Simplified class-like matcher (#3078) [Josh Goebel][]
  623. - enh(cpp) Simplified class-like matcher (#3078) [Josh Goebel][]
  624. - enh(rust) Simplified class-like matcher (#3078) [Josh Goebel][]
  625. - enh(actionscript) Simplified class-like matcher (#3078) [Josh Goebel][]
  626. - enh(arcade) `function.title` => `title.function` (#3078) [Josh Goebel][]
  627. - enh(autoit) `function.title` => `title.function` (#3078) [Josh Goebel][]
  628. - enh(c) `function.title` => `title.function` (#3078) [Josh Goebel][]
  629. - enh(rust) support function invoke and `impl` (#3078) [Josh Goebel][]
  630. - chore(properties) disable auto-detection #3102 [Josh Goebel][]
  631. - fix(properties) fix incorrect handling of non-alphanumeric keys #3102 [Egor Rogov][]
  632. - enh(java) support functions with nested template types (#2641) [Josh Goebel][]
  633. - enh(java) highlight types and literals separate from keywords (#3074) [Josh Goebel][]
  634. - enh(shell) add alias ShellSession [Ryan Mulligan][]
  635. - enh(shell) consider one space after prompt as part of prompt [Ryan Mulligan][]
  636. - fix(nginx) fix bug with $ and @ variables [Josh Goebel][]
  637. - enh(nginx) improving highlighting of some sections [Josh Goebel][]
  638. - fix(vim) variable names may not be zero length [Josh Goebel][]
  639. - enh(sqf) Updated keywords to Arma 3 v2.02 (#3084) [R3voA3][]
  640. - enh(sqf) Refactored function regex to match CBA component func naming scheme (#3181) [JonBons][]
  641. - enh(nim) highlight types properly (not as built-ins) [Josh Goebel][]
  642. - (chore) throttle deprecation messages (#3092) [Mihkel Eidast][]
  643. - enh(c) Update keyword list for C11/C18 (#3010) [Josh Goebel][]
  644. - enh(parser) highlight object properties (#3072) [Josh Goebel][]
  645. - enh(javascript/typescript) highlight object properties (#3072) [Josh Goebel][]
  646. - enh(haskell) add support for BinaryLiterals (#3150) [Martijn Bastiaan][]
  647. - enh(haskell) add support for NumericUnderscores (#3150) [Martijn Bastiaan][]
  648. - enh(haskell) add support for HexFloatLiterals (#3150) [Martijn Bastiaan][]
  649. - fix(c,cpp) allow declaring multiple functions and (for C++) parenthetical initializers (#3155) [Erik Demaine][]
  650. - enh(rust) highlight raw byte string literals correctly (#3173) [Nico Abram][]
  651. - fix(cpp) fix detection of common functions that are function templates (#3178) [Kris van Rens][]
  652. - enh(cpp) add various keywords and commonly used types for hinting (#3178) [Kris van Rens][]
  653. - enh(cpp) cleanup reserved keywords and type lists (#3178) [Kris van Rens][]
  654. New Languages:
  655. - Added 3rd party Glimmer grammar to SUPPORTED_LANGUAGES(#3123) [NullVoxPopuli][]
  656. - Added Wren support [Josh Goebel][]
  657. - Added NestedText support [Josh Goebel][]
  658. - Added WebAssembly language grammar [Josh Goebel][]
  659. - Added 3rd party Splunk search processing language grammar to SUPPORTED_LANGUAGES (#3090) [Wei Su][]
  660. - Added 3rd party ZenScript grammar to SUPPORTED_LANGUAGES(#3106) [Jared Luboff][]
  661. - Added 3rd party Papyrus grammar to SUPPORTED_LANGUAGES(#3125) [Mike Watling][]
  662. Theme Improvements:
  663. - Added all official Base16 themes (over 150 new themes) [Josh Goebel][]
  664. - chore(themes) remove `builtin-name` CSS class (#3119) [Josh Goebel][]
  665. - chore(theme) Update GitHub theme css to match GitHub's current styling (#1616) [Jan Pilzer][]
  666. - chore(theme) Update Srcery theme css to match its Emacs implementation [Chen Bin][]
  667. New Themes:
  668. - DeviBeans Dark by [Farzad Sadeghi][]
  669. - GitHub Dark and GitHub Dark Dimmed [Jan Pilzer][]
  670. Dev Improvements:
  671. - (chore) greatly improve match scope visualization in dev tool (#3126) [NullVoxPopuli][]
  672. - (fix) CSS used for devtool needed an adjustment to fix too wide of content (#3133) [NullVoxPopuli][]
  673. [Farzad Sadeghi]: https://github.com/terminaldweller
  674. [Martijn Bastiaan]: https://github.com/martijnbastiaan
  675. [Bradley Mackey]: https://github.com/bradleymackey
  676. [Dylan McBean]: https://github.com/DylanMcBean
  677. [Josh Goebel]: https://github.com/joshgoebel
  678. [Ryan Mulligan]: https://github.com/ryantm
  679. [R3voA3]: https://github.com/R3voA3
  680. [JonBons]: https://github.com/JonBons
  681. [Wei Su]: https://github.com/swsoyee
  682. [Jared Luboff]: https://github.com/jaredlll08
  683. [NullVoxPopuli]: https://github.com/NullVoxPopuli
  684. [Mike Watling]: https://github.com/Pickysaurus
  685. [Nico Abram]: https://github.com/nico-abram
  686. [James Edington]: http://www.ishygddt.xyz/
  687. [Jan Pilzer]: https://github.com/Hirse
  688. [Kris van Rens]: https://github.com/krisvanrens
  689. ## Version 10.7.1
  690. - fix(parser) Resolves issues with TypeScript types [Josh Goebel][]
  691. ### Version 10.7.0
  692. Parser:
  693. - keywords now have a maximum # of times they provide relevance (#3129) [Josh Goebel][]
  694. - enh(api) add `unregisterLanguage` method (#3009) [Antoine du Hamel][]
  695. - enh: Make alias registration case insensitive (#3026) [David Ostrovsky][]
  696. - fix(parser) `highlightAll()` now works if the library is lazy loaded [Josh Goebel][]
  697. New Languages:
  698. - Added 3rd party RiScript grammar to SUPPORTED_LANGUAGES (#2988) [John C][]
  699. - Added 3rd party HLSL grammar to SUPPORTED_LANGUAGES (#3002) [Stef Levesque][]
  700. - Added 3rd party Q# grammar to SUPPORTED_LANGUAGES(#3006) [Vyron Vasileiadis][]
  701. Language grammar improvements:
  702. - enh(js/ts) class references (CamelCase) are highlighted (#3169) [Josh Goebel][]
  703. - enh(js/ts) constants (ALL_CAPS) are highlighted (#3169) [Josh Goebel][]
  704. - enh(js/ts) highlights function invokation (#3169) [Josh Goebel][]
  705. - enh(js/ts) functions assigned to variables are now highlighted `title.function` (#3169) [Josh Goebel][]
  706. - enh(parser) smarter detection of comments (#2827) [Josh Goebel][]
  707. - fix(python) allow keywords immediately following numbers (#2985) [Josh Goebel][]
  708. - fix(xml) char immediately following tag close mis-highlighted (#3044) [Josh Goebel][]
  709. - fix(ruby) fix `defined?()` mis-highlighted as `def` (#3025) [Josh Goebel][]
  710. - fix(c) comments after `#include <str>` blocks (#3041) [Josh Goebel][]
  711. - fix(cpp) comments after `#include <str>` blocks (#3041) [Josh Goebel][]
  712. - enh(cpp) Highlight all function dispatches (#3005) [Josh Goebel][]
  713. - enh(python) support type hints and better type support (#2972) [Josh Goebel][]
  714. - enh(gml) Add additional GML 2.3 keywords (#2984) [xDGameStudios][]
  715. - fix(cpp) constructor support for initializers (#3001) [Josh Goebel][]
  716. - enh(php) Add `trait` to class-like naming patterns (#2997) [Ayesh][]
  717. - enh(php) Add `Stringable`, `UnhandledMatchError`, and `WeakMap` classes/interfaces (#2997) [Ayesh][]
  718. - enh(php) Add `mixed` to list of keywords (#2997) [Ayesh][]
  719. - enh(php) Add support binary, octal, hex and scientific numerals with underscore separator support (#2997) [Ayesh][]
  720. - enh(php) Add support for Enums (#3004) [Ayesh][]
  721. - enh(ecmascript) Add built-in types [Vaibhav Chanana][]
  722. - enh(kotlin) Add `kts` as an alias for Kotlin (#3021) [Vaibhav Chanana][]
  723. - enh(css) Add `font-smoothing` to attributes list for CSS (#3027) [AndyKIron][]
  724. - fix(python) Highlight `print` and `exec` as a builtin (#1468) [Samuel Colvin][]
  725. - fix(csharp) Fix unit being highlighted instead of uint (#3046) [Spacehamster][]
  726. - enh(swift) add async/await keywords (#3048) [Bradley Mackey][]
  727. Deprecations:
  728. - `highlight(languageName, code, ignoreIllegals, continuation)` deprecated as of 10.7
  729. - Please use the newer API which takes `code` and then accepts options as an object
  730. - IE: `highlight(code, {language, ignoreIllegals})`
  731. - `continuation` is for internal use only and no longer supported
  732. - `highlightBlock(el)` deprecated as of 10.7.
  733. - Please use `highlightElement(el)` instead.
  734. - Plugin callbacks renamed `before/after:highlightBlock` => `before/after:highlightElement`
  735. - Plugin callback now takes `el` vs `block` attribute
  736. - The old API and callbacks will be supported until v12.
  737. [Stef Levesque]: https://github.com/stef-levesque
  738. [Josh Goebel]: https://github.com/joshgoebel
  739. [John Cheung]: https://github.com/Real-John-Cheung
  740. [xDGameStudios]: https://github.com/xDGameStudios
  741. [Ayesh]: https://github.com/Ayesh
  742. [Vyron Vasileiadis]: https://github.com/fedonman
  743. [Antoine du Hamel]: https://github.com/aduh95
  744. [Vaibhav Chanana]: https://github.com/il3ven
  745. [David Ostrovsky]: https://github.com/davido
  746. [AndyKIron]: https://github.com/AndyKIron
  747. [Samuel Colvin]: https://github.com/samuelcolvin
  748. ## Version 10.6.0
  749. New Languages:
  750. - Added 3rd party Laravel Blade grammar to SUPPORTED_LANGUAGES (#2944) [Michael Newton][]
  751. Language grammar improvements:
  752. - enh(scala) fix triple quoted strings (#2987) [Josh Goebel][]
  753. - enh(perl) Much improved regex detection (#2960) [Josh Goebel][]
  754. - enh(swift) Improved highlighting for operator and precedencegroup declarations. (#2938) [Steven Van Impe][]
  755. - fix(xml) Support single-character namespaces. (#2957) [Jan Pilzer][]
  756. - enh(ruby) Support for character literals (#2950) [Vaibhav Chanana][]
  757. - enh(powershell) Add three VALID_VERBS and update the reference link (#2981) [davidhcefx][]
  758. - fix(php) Highlighting of anonymous functions without {} block [Vaibhav Chanana][]
  759. Grammar Deprecations:
  760. - Deprecate `c-like`, though you should not be using it directly anyways.
  761. - will be removed in v11.
  762. - `c` and `cpp` are now wholly unique grammars that will diverge over time
  763. Parser:
  764. - new simpler `highlightAll()` API (#2962) [Josh Goebel][]
  765. - this should be a drop-in replacement for both `initHighlighting()` and `initHighlightingOnLoad()`
  766. - note: it does not prevent itself from being called multiple times (as the previous API did)
  767. - `beginKeyword` no longer bestows double relevance (#2953) [Josh Goebel][]
  768. - allow `keywords` to be an array of strings [Josh Goebel][]
  769. - add `modes.MATCH_NOTHING_RE` that will never match
  770. - This can be used with `end` to hold a mode open (it must then be ended with `endsParent` in one of it's children modes) [Josh Goebel][]
  771. Deprecations:
  772. - `initHighlighting()` and `initHighlightingOnLoad()` deprecated.
  773. - Please use the new `highlightAll()` API instead.
  774. - Deprecated as of 10.6.
  775. - These will both be aliases to `highlightAll` in v11.
  776. [Michael Newton]: https://github.com/miken32
  777. [Steven Van Impe]: https://github.com/svanimpe/
  778. [Josh Goebel]: https://github.com/joshgoebel
  779. [Vaibhav Chanana]: https://github.com/il3ven
  780. [davidhcefx]: https://github.com/davidhcefx
  781. [Jan Pilzer]: https://github.com/Hirse
  782. ## Version 10.5.0
  783. Build:
  784. - Add Subresource Integrity digest lists to `cdn-assets` [Josh Goebel][]
  785. - R and VB.net grammars now ship in our default build (`:common`) [Josh Goebel][]
  786. Parser:
  787. - add `match` as sugar for simple `begin` only matches (#2834) [Josh Goebel][]
  788. - allow `illegal` to also be an array of regex (#2834) [Josh Goebel][]
  789. - add `compilerExtensions` allows grammers to influence mode compilation (#2834) [Josh Goebel][]
  790. - some internal pieces are now simple compiler extensions
  791. New Languages:
  792. - Added 3rd party Red & Rebol grammar to SUPPORTED_LANGUAGES (#2872) [Oldes Huhuman][]
  793. Language grammar improvements:
  794. - enh: CSS grammars now share common foundation, keywords, etc. (#2937) [Josh Goebel][]
  795. - enh(css): many consistency improvements
  796. - enh(scss): many consistency improvements
  797. - enh(stylus): many consistency improvements
  798. - enh(less): many consistency improvements
  799. - enh(cpp): Support C++ pack expansion in function arguments [Martin Dørum][]
  800. - enh(makefile): Add `make` as an alias (#2883) [tripleee][]
  801. - enh(swift) Improved grammar for strings (#2819) [Steven Van Impe][]
  802. - enh(swift) Grammar improvements (#2908) [Steven Van Impe][]
  803. - New grammar for keywords and built-ins
  804. - Added support for operator highlighting
  805. - New grammar for attributes
  806. - Added support for quoted identifiers, implicit parameters, and property wrapper projections
  807. - Support for more complex expressions in string interpolation
  808. - enh(swift) Improved highlighting for types and generic arguments (#2920) [Steven Van Impe][]
  809. - enh(swift) Improved highlighting for functions, initializers, and subscripts (#2930) [Steven Van Impe][]
  810. - fix(http) avoid recursive sublanguage and tighten rules (#2893) [Josh Goebel][]
  811. - fix(asciidoc): Handle section titles level 5 (#2868) [Vaibhav Chanana][]
  812. - fix(asciidoc): Support unconstrained emphasis syntax (#2869) [Guillaume Grossetie][]
  813. - enh(scheme) Allow `[]` for argument lists (#2913) [Josh Goebel][]
  814. - enh(vb) Large rework of VB.net grammar (#2808) [Jan Pilzer][]
  815. - Adds support for Date data types, see (#2775)
  816. - Adds support for `REM` comments and fixes `'''` doctags (#2875) (#2851)
  817. - Custom number mode to support VB.net specific number flags
  818. - Hex (&H), Oct (&O), and binary (&B) prefixes
  819. - Separating digits with underscores: 90_946
  820. - Type suffixes: 123UI (unsigned integer)
  821. - Improves directives detection and adds support for `Enable`, `Disable`, and `Then` keywords
  822. - Adds more markup tests
  823. - fix(javascript) Empty block-comments break highlighting (#2896) [Jan Pilzer][]
  824. - enh(dart) Fix empty block-comments from breaking highlighting (#2898) [Jan Pilzer][]
  825. - enh(dart) Fix empty doc-comment eating next line [Jan Pilzer][]
  826. - enh(asciidoc) Adds support for unconstrained bold syntax (#2869) [Guillaume Grossetie][]
  827. - enh(c-like) Incorrect highlighting for interger suffix (#2919) [Vaibhav Chanana][]
  828. - enh(properties) Correctly handle trailing backslash (#2922) [Vaibhav Chanana][]
  829. Recent Deprecations:
  830. - HTML "merging" is deprecated. (#2873) [Josh Goebel][]
  831. - HTML inside `<pre>` blocks will no longer be magically merged back into the
  832. highlighted code's HTML result - it will instead be silently removed.
  833. - Consider [using a plugin][htmlPlugin] if you truly need this functionality
  834. - Deprecated as of 10.5.0 - will be removed in v11.
  835. - `tabReplace` option deprecated. (#2873) [Josh Goebel][]
  836. - **Consider:** Use the CSS `tab-size` property, or simply pre-process the
  837. text yourself before rendering the initial HTML
  838. - otherwise, [use a plugin][tabPlugin]
  839. - Deprecated as of 10.5.0 - will be removed in v11.
  840. - `useBR` option deprecated. (#2559) [Josh Goebel][]
  841. - **Recommended:** You really should just use the HTML `<pre>` tag
  842. - or perhaps try CSS `white-space: pre;`
  843. - otherwise, [use a plugin][brPlugin]
  844. - Deprecated as of 10.3.0 - will be removed in v11.
  845. - `requireLanguage` API is deprecated, will be removed in v11.0.
  846. - **Consider:** Use `getLanguage` (with custom error handling) or built-time dependencies.
  847. - See [Library API](https://highlightjs.readthedocs.io/en/latest/api.html#requirelanguage-name) for more information.
  848. - Deprecated as of 10.4.0 - will be removed in v11.
  849. [htmlPlugin]: https://github.com/highlightjs/highlight.js/issues/2889
  850. [tabPlugin]: https://github.com/highlightjs/highlight.js/issues/2874
  851. [brPlugin]: https://github.com/highlightjs/highlight.js/issues/2559
  852. [Martin Dørum]: https://github.com/mortie
  853. [Jan Pilzer]: https://github.com/Hirse
  854. [Oldes Huhuman]: https://github.com/Oldes
  855. [Josh Goebel]: https://github.com/joshgoebel
  856. [tripleee]: https://github.com/tripleee
  857. [Steven Van Impe]: https://github.com/svanimpe/
  858. [Vaibhav Chanana]: https://github.com/il3ven
  859. [Guillaume Grossetie]: https://github.com/mogztter
  860. ## Version 10.4.1 (tentative)
  861. Security
  862. - (fix) Exponential backtracking fixes for: [Josh Goebel][]
  863. - cpp
  864. - handlebars
  865. - gams
  866. - perl
  867. - jboss-cli
  868. - r
  869. - erlang-repl
  870. - powershell
  871. - routeros
  872. - (fix) Polynomial backtracking fixes for: [Josh Goebel][]
  873. - asciidoc
  874. - reasonml
  875. - latex
  876. - kotlin
  877. - gcode
  878. - d
  879. - aspectj
  880. - moonscript
  881. - coffeescript/livescript
  882. - csharp
  883. - scilab
  884. - crystal
  885. - elixir
  886. - basic
  887. - ebnf
  888. - ruby
  889. - fortran/irpf90
  890. - livecodeserver
  891. - yaml
  892. - x86asm
  893. - dsconfig
  894. - markdown
  895. - ruleslanguage
  896. - xquery
  897. - sqf
  898. Very grateful to [Michael Schmidt][] for all the help.
  899. [Michael Schmidt]: https://github.com/RunDevelopment
  900. [Josh Goebel]: https://github.com/joshgoebel
  901. ## Version 10.4.0
  902. A largish release with many improvements and fixes from quite a few different contributors. Enjoy!
  903. Deprecations:
  904. - (chore) `requireLanguage` is deprecated.
  905. - Prefer `getLanguage` (with custom error handling) or built-time dependencies.
  906. - See [Library API](https://highlightjs.readthedocs.io/en/latest/api.html#requirelanguage-name) for more information.
  907. Parser:
  908. - enh(parser) use negative look-ahead for `beginKeywords` support (#2813) [Josh Goebel][]
  909. - enh(grammars) allow `classNameAliases` for more complex grammars [Josh Goebel][]
  910. - fix(vue): Language name now appears in CSS class (#2807) [Michael Rush][]
  911. - (chore) Clean up all regexs to be UTF-8 compliant/ready (#2759) [Josh Goebel][]
  912. - enh(grammars) allow `classNameAliases` for more complex grammars [Josh Goebel][]
  913. New Languages:
  914. - Added 3rd party Chapel grammar to SUPPORTED_LANGUAGES (#2806) [Brad Chamberlain][]
  915. - Added BBCode grammar to SUPPORTED_LANGUAGES (#2867) [Paul Reid][]
  916. - enh(javascript) Added `node-repl` for Node.js REPL sessions (#2792) [Marat Nagayev][]
  917. Language Improvements:
  918. - enh(shell) Recognize prompts which contain tilde `~` (#2859) [Guillaume Grossetie][]
  919. - enh(shell) Add support for multiline commands with line continuation `\` (#2861) [Guillaume Grossetie][]
  920. - enh(autodetect) Over 30+ improvements to auto-detect (#2745) [Josh Goebel][]
  921. - 4-5% improvement in auto-detect against large sample set
  922. - properties, angelscript, lsl, javascript, n1ql, ocaml, ruby
  923. - protobuf, hy, scheme, crystal, yaml, r, vbscript, groovy
  924. - python, java, php, lisp, matlab, clojure, csharp, css
  925. - fix(r) fixed keywords not properly spaced (#2852) [Josh Goebel][]
  926. - fix(javascript) fix potential catastrophic backtracking (#2852) [Josh Goebel][]
  927. - fix(livescript) fix potential catastrophic backtracking (#2852) [Josh Goebel][]
  928. - bug(xml) XML grammar was far too imprecise/fuzzy [Josh Goebel][]
  929. - enh(xml) Improve precision to prevent false auto-detect positives [Josh Goebel][]
  930. - fix(js/ts) Prevent for/while/if/switch from falsly matching as functions (#2803) [Josh Goebel][]
  931. - enh(julia) Update keyword lists for Julia 1.x (#2781) [Fredrik Ekre][]
  932. - enh(python) Match numeric literals per the language reference [Richard Gibson][]
  933. - enh(ruby) Match numeric literals per language documentation [Richard Gibson][]
  934. - enh(javascript) Match numeric literals per ECMA-262 spec [Richard Gibson][]
  935. - enh(java) Match numeric literals per Java Language Specification [Richard Gibson][]
  936. - enh(swift) Match numeric literals per language reference [Richard Gibson][]
  937. - enh(php) highlight variables (#2785) [Taufik Nurrohman][]
  938. - fix(python) Handle comments on decorators (#2804) [Jonathan Sharpe][]
  939. - enh(diff) improve highlighting of diff for git patches [Florian Bezdeka][]
  940. - fix(llvm) lots of small improvements and fixes (#2830) [Josh Goebel][]
  941. - enh(mathematica) Rework entire implementation [Patrick Scheibe][]
  942. - Correct matching of the many variations of Mathematica's numbers
  943. - Matching of named-characters aka special symbols like `\[Gamma]`
  944. - Updated list of version 12.1 built-in symbols
  945. - Matching of patterns, slots, message-names and braces
  946. - fix(swift) Handle keywords that start with `#` [Marcus Ortiz][]
  947. - enh(swift) Match `some` keyword [Marcus Ortiz][]
  948. - enh(swift) Match `@main` attribute [Marcus Ortiz][]
  949. Dev Improvements:
  950. - chore(dev) add theme picker to the tools/developer tool (#2770) [Josh Goebel][]
  951. - fix(dev) the Vue.js plugin no longer throws an exception when hljs is not in the global namespace [Kyle Brown][]
  952. New themes:
  953. - *StackOverflow Dark* by [Jan Pilzer][]
  954. - *StackOverflow Light* by [Jan Pilzer][]
  955. [Guillaume Grossetie]: https://github.com/mogztter
  956. [Brad Chamberlain]: https://github.com/bradcray
  957. [Marat Nagayev]: https://github.com/nagayev
  958. [Fredrik Ekre]: https://github.com/fredrikekre
  959. [Richard Gibson]: https://github.com/gibson042
  960. [Josh Goebel]: https://github.com/joshgoebel
  961. [Taufik Nurrohman]: https://github.com/taufik-nurrohman
  962. [Jan Pilzer]: https://github.com/Hirse
  963. [Jonathan Sharpe]: https://github.com/textbook
  964. [Michael Rush]: https://github.com/rushimusmaximus
  965. [Patrick Scheibe]: https://github.com/halirutan
  966. [Kyle Brown]: https://github.com/kylebrown9
  967. [Marcus Ortiz]: https://github.com/mportiz08
  968. [Paul Reid]: https://github.com/RedGuy12
  969. ## Version 10.3.1
  970. Prior version let some look-behind regex sneak in, which does not work
  971. yet on Safari. This release removes those incompatible regexes.
  972. Fix:
  973. - fix(Safari) Remove currently unsupported look-behind regex ([fix][187e7cfc]) [Josh Goebel][]
  974. [Josh Goebel]: https://github.com/joshgoebel
  975. [187e7cfc]: https://github.com/highlightjs/highlight.js/commit/187e7cfcb06277ce13b5f35fb6c37ab7a7b46de9
  976. ## Version 10.3.0
  977. Language Improvements:
  978. - enh(latex) Complete ground up rewrite of LaTex grammar [schtandard][]
  979. - fix(cpp) implement backslash line continuation in comments (#2757) [Konrad Rudolph][]
  980. - fix(cpp) improve parsing issues with templates (#2752) [Josh Goebel][]
  981. - enh(cpp) add support for `enum (struct|class)` and `union` (#2752) [Josh Goebel][]
  982. - fix(js/ts) Fix nesting of `{}` inside template literals SUBST expression (#2748) [Josh Goebel][]
  983. - enh(js/ts) Highlight class methods as functions (#2727) [Josh Goebel][]
  984. - fix(js/ts) `constructor` is now highlighted as a function title (not keyword) (#2727) [Josh Goebel][]
  985. - fix(c-like) preprocessor directives not detected after else (#2738) [Josh Goebel][]
  986. - enh(javascript) allow `#` for private class fields (#2701) [Chris Krycho][]
  987. - fix(js) prevent runaway regex (#2746) [Josh Goebel][]
  988. - fix(bash) enh(bash) allow nested params (#2731) [Josh Goebel][]
  989. - fix(python) Fix highlighting of keywords and strings (#2713, #2715) [Konrad Rudolph][]
  990. - fix(fsharp) Prevent `(*)` from being detected as a multi-line comment [Josh Goebel][]
  991. - enh(bash) add support for heredocs (#2684) [Josh Goebel][]
  992. - enh(r) major overhaul of the R language grammar (and fix a few bugs) (#2680) [Konrad Rudolph][]
  993. - enh(csharp) Add all C# 9 keywords, and other missing keywords (#2679) [David Pine][]
  994. - enh(objectivec) Add `objective-c++` and `obj-c++` aliases for Objective-C [Josh Goebel][]
  995. - enh(java) Add support for `record` (#2685) [Josh Goebel][]
  996. - fix(csharp) prevent modifier keywords wrongly flagged as `title` (#2683) [Josh Goebel][]
  997. - enh(axapta) Update keyword list for Axapta (X++) (#2686) [Ryan Jonasson][]
  998. - fix(fortran) FORTRAN 77-style comments (#2677) [Philipp Engel][]
  999. - fix(javascript) Comments inside params should be highlighted (#2702) [Josh Goebel][]
  1000. - fix(scala) Comments inside class header should be highlighted (#1559) [Josh Goebel][]
  1001. - fix(c-like) Correctly highlight modifiers (`final`) in class declaration (#2696) [Josh Goebel][]
  1002. - enh(angelscript) Improve heredocs, numbers, metadata blocks (#2724) [Melissa Geels][]
  1003. - enh(javascript) Implement Numeric Separators (#2617) [Antoine du Hamel][]
  1004. - enh(typescript) TypeScript also gains support for numeric separators (#2617) [Antoine du Hamel][]
  1005. - enh(php) Add support for PHP 8 `match` keyword and add `php8` as an alias (#2733) [Ayesh Karunaratne][]
  1006. - fix(handlebars) Support if else keyboards (#2659) [Tom Wallace][]
  1007. Deprecations:
  1008. - `useBR` option deprecated and will be removed in v11.0. (#2559) [Josh Goebel][]
  1009. [Chris Krycho]: https://github.com/chriskrycho
  1010. [David Pine]: https://github.com/IEvangelist
  1011. [Ryan Jonasson]: https://github.com/ryanjonasson
  1012. [Philipp Engel]: https://github.com/interkosmos
  1013. [Konrad Rudolph]: https://github.com/klmr
  1014. [Melissa Geels]: https://github.com/codecat
  1015. [Antoine du Hamel]: https://github.com/aduh95
  1016. [Ayesh Karunaratne]: https://github.com/Ayesh
  1017. [Tom Wallace]: https://github.com/thomasmichaelwallace
  1018. [schtandard]: https://github.com/schtandard
  1019. ## Version 10.2.1
  1020. Parser Engine:
  1021. - fix(parser) complete fix for resuming matches from same index (#2678) [Josh Goebel][]
  1022. [Josh Goebel]: https://github.com/yyyc514
  1023. ## Version 10.2.0
  1024. Parser Engine:
  1025. - (fix) When ignoring a potential match highlighting can terminate early (#2649) [Josh Goebel][]
  1026. New themes:
  1027. - *Gradient Light* by [Samia Ali]()
  1028. Deprecations:
  1029. - `fixMarkup` is now deprecated and will be removed in v11.0. (#2534) [Josh Goebel][]
  1030. Big picture:
  1031. - Add simple Vue plugin for basic use cases (#2544) [Josh Goebel][]
  1032. Language Improvements:
  1033. - fix(bash) Fewer false positives for keywords in arguments (#2669) [sirosen][]
  1034. - fix(js) Prevent long series of /////// from causing freezes (#2656) [Josh Goebel][]
  1035. - enh(csharp) Add `init` and `record` keywords for C# 9.0 (#2660) [Youssef Victor][]
  1036. - enh(matlab) Add new R2019b `arguments` keyword and fix `enumeration` keyword (#2619) [Andrew Janke][]
  1037. - fix(kotlin) Remove very old keywords and update example code (#2623) [kageru][]
  1038. - fix(night) Prevent object prototypes method values from being returned in `getLanguage` (#2636) [night][]
  1039. - enh(java) Add support for `enum`, which will identify as a `class` now (#2643) [ezksd][]
  1040. - enh(nsis) Add support for NSIS 3.06 commands (#2653) [idleberg][]
  1041. - enh(php) detect newer more flexible HEREdoc syntax (#2658) [eytienne][]
  1042. [Youssef Victor]: https://github.com/Youssef1313
  1043. [Josh Goebel]: https://github.com/joshgoebel
  1044. [Andrew Janke]: https://github.com/apjanke
  1045. [Samia Ali]: https://github.com/samiaab1990
  1046. [kageru]: https://github.com/kageru
  1047. [night]: https://github.com/night
  1048. [ezksd]: https://github.com/ezksd
  1049. [idleberg]: https://github.com/idleberg
  1050. [eytienne]: https://github.com/eytienne
  1051. [sirosen]: https://github.com/sirosen
  1052. ## Version 10.1.1
  1053. Fixes:
  1054. - Resolve issue on Node 6 due to dangling comma (#2608) [Edwin Hoogerbeets][]
  1055. - Resolve `index.d.ts is not a module` error (#2603) [Josh Goebel][]
  1056. [Josh Goebel]: https://github.com/joshgoebel
  1057. [Edwin Hoogerbeets]: https://github.com/ehoogerbeets
  1058. ## Version 10.1.0
  1059. New themes:
  1060. - *NNFX* and *NNFX-dark* by [Jim Mason][]
  1061. - *lioshi* by [lioshi][]
  1062. Parser Engine:
  1063. - (parser) Now escapes quotes in text content when escaping HTML (#2564) [Josh Goebel][]
  1064. - (parser) Adds `keywords.$pattern` key to grammar definitions (#2519) [Josh Goebel][]
  1065. - (parser) Adds SHEBANG utility mode [Josh Goebel][]
  1066. - (parser) Adds `registerAliases` method (#2540) [Taufik Nurrohman][]
  1067. - (enh) Added `on:begin` callback for modes (#2261) [Josh Goebel][]
  1068. - (enh) Added `on:end` callback for modes (#2261) [Josh Goebel][]
  1069. - (enh) Added ability to programatically ignore begin and end matches (#2261) [Josh Goebel][]
  1070. - (enh) Added `END_SAME_AS_BEGIN` mode to replace `endSameAsBegin` parser attribute (#2261) [Josh Goebel][]
  1071. - (fix) `fixMarkup` would rarely destroy markup when `useBR` was enabled (#2532) [Josh Goebel][]
  1072. Deprecations:
  1073. - `htmlbars` grammar is now deprecated. Use `handlebars` instead. (#2344) [Nils Knappmeier][]
  1074. - when using `highlightBlock` `result.re` deprecated. Use `result.relevance` instead. (#2552) [Josh Goebel][]
  1075. - ditto for `result.second_best.re` => `result.second_best.relevance` (#2552)
  1076. - `lexemes` is now deprecated in favor of `keywords.$pattern` key (#2519) [Josh Goebel][]
  1077. - `endSameAsBegin` is now deprecated. (#2261) [Josh Goebel][]
  1078. Language Improvements:
  1079. - fix(groovy) strings are not allowed inside ternary clauses (#2217) [Josh Goebel][]
  1080. - fix(typescript) add `readonly` keyword (#2562) [Martin (Lhoerion)][]
  1081. - fix(javascript) fix regex inside parens after a non-regex (#2530) [Josh Goebel][]
  1082. - enh(typescript) use identifier to match potential keywords, preventing false positivites (#2519) [Josh Goebel][]
  1083. - enh(javascript) use identifier to match potential keywords, preventing false positivites (#2519) [Josh Goebel][]
  1084. - [enh] Add `OPTIMIZE:` and `HACK:` to the labels highlighted inside comments [Josh Goebel][]
  1085. - enh(typescript/javascript/coffeescript/livescript) derive ECMAscript keywords from a common foudation (#2518) [Josh Goebel][]
  1086. - enh(typescript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Josh Goebel][]
  1087. - enh(javascript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Vania Kucher][]
  1088. - enh(cpp) add `pair`, `make_pair`, `priority_queue` as built-ins (#2538) [Hankun Lin][]
  1089. - enh(cpp) recognize `priority_queue` `pair` as cpp containers (#2541) [Hankun Lin][]
  1090. - fix(javascript) prevent `set` keyword conflicting with setTimeout, etc. (#2514) [Vania Kucher][]
  1091. - fix(cpp) Fix highlighting of unterminated raw strings (#2261) [David Benjamin][]
  1092. - fix(javascript) `=>` function with nested `()` in params now works (#2502) [Josh Goebel][]
  1093. - fix(typescript) `=>` function with nested `()` in params now works (#2502) [Josh Goebel][]
  1094. - fix(yaml) Fix tags to include non-word characters (#2486) [Peter Plantinga][]
  1095. - fix(swift) `@objcMembers` was being partially highlighted (#2543) [Nick Randall][]
  1096. - enh(dart) Add `late` and `required` keywords, the `Never` built-in type, and nullable built-in types (#2550) [Sam Rawlins][]
  1097. - enh(erlang) Add underscore separators to numeric literals (#2554) [Sergey Prokhorov][]
  1098. - enh(handlebars) Support for sub-expressions, path-expressions, hashes, block-parameters and literals (#2344) [Nils Knappmeier][]
  1099. - enh(protobuf) Support multiline comments (#2597) [Pavel Evstigneev][]
  1100. - fix(toml) Improve key parsing (#2595) [Antoine du Hamel][]
  1101. [Josh Goebel]: https://github.com/joshgoebel
  1102. [Peter Plantinga]: https://github.com/pplantinga
  1103. [David Benjamin]: https://github.com/davidben
  1104. [Vania Kucher]: https://github.com/qWici
  1105. [Hankun Lin]: https://github.com/Linhk1606
  1106. [Nick Randall]: https://github.com/nicked
  1107. [Sam Rawlins]: https://github.com/srawlins
  1108. [Sergey Prokhorov]: https://github.com/seriyps
  1109. [Nils Knappmeier]: https://github.com/nknapp
  1110. [Martin (Lhoerion)]: https://github.com/Lhoerion
  1111. [Jim Mason]: https://github.com/RocketMan
  1112. [lioshi]: https://github.com/lioshi
  1113. [Pavel Evstigneev]: https://github.com/Paxa
  1114. [Antoine du Hamel]: https://github.com/aduh95
  1115. ## Version 10.0.2
  1116. Brower build:
  1117. - [Issue](https://github.com/highlightjs/highlight.js/issues/2505) (bug) Fix: Version 10 fails to load as CommonJS module. (#2511) [Josh Goebel][]
  1118. - [Issue](https://github.com/highlightjs/highlight.js/issues/2505) (removal) AMD module loading support has been removed. (#2511) [Josh Goebel][]
  1119. Parser Engine Changes:
  1120. - [Issue](https://github.com/highlightjs/highlight.js/issues/2522) fix(parser) Fix freez issue with illegal 0 width matches (#2524) [Josh Goebel][]
  1121. [Josh Goebel]: https://github.com/joshgoebel
  1122. ## Version 10.0.1
  1123. Parser Engine Changes:
  1124. - (bug) Fix sublanguage with no relevance score (#2506) [Josh Goebel][]
  1125. [Josh Goebel]: https://github.com/joshgoebel
  1126. ## Version 10.0.0
  1127. New languages:
  1128. - add(php-template) Explicit language to detect PHP templates (vs xml) [Josh Goebel][]
  1129. - enh(python) Added `python-repl` for Python REPL sessions
  1130. - add(never) Added 3rd party Never language support
  1131. New themes:
  1132. - *Srcery* by [Chen Bin][]
  1133. Parser Engine Changes:
  1134. - (bug) Fix `beginKeywords` to ignore . matches (#2434) [Josh Goebel][]
  1135. - (enh) add `before:highlight` plugin API callback (#2395) [Josh Goebel][]
  1136. - (enh) add `after:highlight` plugin API callback (#2395) [Josh Goebel][]
  1137. - (enh) split out parse tree generation and HTML rendering concerns (#2404) [Josh Goebel][]
  1138. - (enh) every language can have a `name` attribute now (#2400) [Josh Goebel][]
  1139. - (enh) improve regular expression detect (less false-positives) (#2380) [Josh Goebel][]
  1140. - (enh) make `noHighlightRe` and `languagePrefixRe` configurable (#2374) [Josh Goebel][]
  1141. Language Improvements:
  1142. - enh(python) Exclude parens from functions params (#2490) [Álvaro Mondéjar][]
  1143. - enh(swift) Add `compactMap` to keywords as built_in (#2478) [Omid Golparvar][]
  1144. - enh(nim) adds `func` keyword (#2468) [Adnan Yaqoob][]
  1145. - enh(xml) deprecate ActionScript inside script tags (#2444) [Josh Goebel][]
  1146. - fix(javascript) prevent get/set variables conflicting with keywords (#2440) [Josh Goebel][]
  1147. - bug(clojure) Now highlights `defn-` properly (#2438) [Josh Goebel][]
  1148. - enh(bash) default value is another variable (#2439) [Josh Goebel][]
  1149. - enh(bash) string nested within string (#2439) [Josh Goebel][]
  1150. - enh(bash) Add arithmetic expression support (#2439) [Josh Goebel][]
  1151. - enh(clojure) Add support for global definitions name (#2347) [Alexandre Grison][]
  1152. - enh(fortran) Support Fortran 77 style comments (#2416) [Josh Goebel][]
  1153. - (csharp) add support for `@identifier` style identifiers (#2414) [Josh Goebel][]
  1154. - fix(elixir) Support function names with a slash (#2406) [Josh Goebel][]
  1155. - fix(javascript) comma is allowed in a "value container" (#2403) [Josh Goebel][]
  1156. - enh(apache) add `deny` and `allow` keywords [Josh Goebel][]
  1157. - enh(apache) highlight numeric attributes values [Josh Goebel][]
  1158. - enh(apache) highlight IP addresses, ports, and strings in sections [Josh Goebel][]
  1159. - enh(php) added more keywords and include `<?=` syntax to meta [Taufik Nurrohman][]
  1160. - fix(protobuf) Fix `rpc` when followed by a block (#) [Josh Goebel][]
  1161. - enh(zephir) almost complete rework of the zephir grammar (#2387) [Josh Goebel][]
  1162. - (markdown) much improved code block support (#2382) [Josh Goebel][]
  1163. - (markdown) improve bold/italic nesting (#2382) [Josh Goebel][]
  1164. - enh(csharp) Support `where` keyword as class constraint (#2378) [Josh Goebel][]
  1165. - enh(csharp) Allow reference path in class inheritance lists (#2378) [Josh Goebel][]
  1166. - enh(csharp) Add generic modifiers (in, out) (#2378) [Josh Goebel][]
  1167. - (fortran) enh(fortran) support intrinsic data types (#2379) [Josh Goebel][]
  1168. - enh(java) annotations can include numbers (#2377) [Josh Goebel][]
  1169. - enh(java) annotations can take params (#2377) [Josh Goebel][]
  1170. - enh(java) allow annotations inside function call params (#2377) [Josh Goebel][]
  1171. - enh(parser) pre/post-highlightBlock callbacks via plugin (#2285) [Josh Goebel][]
  1172. - (fortran) Add Fortran 2018 keywords and coarray intrinsics (#2361) [Sam Miller][]
  1173. - (delphi) highlight hexadecimal, octal, and binary numbers (#2370) [Robert Riebisch]()
  1174. - enh(plaintext) added `text` and `txt` as alias (#2360) [Taufik Nurrohman][]
  1175. - enh(powershell) added PowerShell v5.1/v7 default aliases as "built_in"s (#2423) [Sean Williams][]
  1176. - enh(yaml) added support for timestamps (#2475) [Peter Plantinga][]
  1177. Developer Tools:
  1178. - added Dockerfile for optionally developing with a container
  1179. [Omid Golparvar]: https://github.com/omidgolparvar
  1180. [Alexandre Grison]: https://github.com/agrison
  1181. [Josh Goebel]: https://github.com/joshgoebel
  1182. [Chen Bin]: https://github.com/redguardtoo
  1183. [Sam Miller]: https://github.com/smillerc
  1184. [Robert Riebisch]: https://github.com/bttrx
  1185. [Taufik Nurrohman]: https://github.com/taufik-nurrohman
  1186. [Josh Goebel]: https://github.com/joshgoebel
  1187. [Sean Williams]: https://github.com/hmmwhatsthisdo
  1188. [Adnan Yaqoob]: https://github.com/adnanyaqoobvirk
  1189. [Álvaro Mondéjar]: https://github.com/mondeja
  1190. ## Version 9.18.1
  1191. Grammar Improvements:
  1192. - bug(coffeescript) fix freezing bug due to badly behaved regex (#2376) [Josh Goebel][]
  1193. [Josh Goebel]: https://github.com/joshgoebel
  1194. ## Version 9.18.0
  1195. New languages:
  1196. - none.
  1197. New themes:
  1198. - none.
  1199. Core Changes:
  1200. - none.
  1201. Language Improvements:
  1202. - (javascript) fix JSX self-closing tag issues (#2322) [Josh Goebel][]
  1203. - (fortran) added `block` and `endblock` keywords (#2343) [Philipp Engel][]
  1204. - (javascript) support jsx fragments (#2333) [Josh Goebel][]
  1205. - (ini) support TOML arrays, clean up grammar (#2335) [Josh Goebel][]
  1206. - (vbnet) add nameof operator to the keywords (#2329) [Youssef Victor][]
  1207. - (stan) updated with improved coverage of language keywords and patterns. (#1829) [Jeffrey Arnold][]
  1208. - enh(cpp) Detect namespaced function types (`A::typeName func(...)`) (#2332) [Josh Goebel][]
  1209. - enh(cpp) Detect namespaced functions also (`A::functionName`) (#2332) [Josh Goebel][]
  1210. - enh(cpp) Properly detect decltype(auto) (#2332) [Josh Goebel][]
  1211. - enh(cpp) recognize primitive types (`int8_t`, etc.) as function types (#2332) [Josh Goebel][]
  1212. Developer Tools:
  1213. - feat(developer): add button to show parsed structure (#2345) [Nils Knappmeier][]
  1214. [Jeffrey Arnold]: https://github.com/jrnold
  1215. [Josh Goebel]: https://github.com/joshgoebel
  1216. [Philipp Engel]: https://github.com/interkosmos
  1217. [Youssef Victor]: https://github.com/Youssef1313
  1218. [Nils Knappmeier]: https://github.com/nknapp
  1219. ## Version 9.17.1
  1220. Fixes:
  1221. - fix(parser): resolve IE 11 issue with Object.freeze() (#2319) [Josh Goebel][]
  1222. [Josh Goebel]: https://github.com/joshgoebel
  1223. ## Version 9.17.0
  1224. New languages:
  1225. - none.
  1226. New themes:
  1227. - *Gradient Dark* by [Samia Ali][]
  1228. Core Improvements:
  1229. - chore(parser): switch from `createElementNS` to `createElement` (#2314) [Josh Goebel][]
  1230. - enh(parser): add better error when a language requirement is missing (#2311) [Josh Goebel][]
  1231. - fix(parser/docs): disallow `self` mode at the top-level of a language (#2294) [Josh Goebel][]
  1232. - enh(parser) add safe & debug modes. Better error handling for crash conditions. (#2286) [Josh Goebel][]
  1233. - fix(parser): Fix merger HTML attribute quoting (#2235) [Josh Goebel][]
  1234. - fix(parser): Look-ahead regex now work for end matches also (#2237) [Josh Goebel][]
  1235. - fix(parser): Better errors when a language is missing (#2236) [Josh Goebel][]
  1236. - fix(parser): freeze built-in modes to prevent grammars altering them (#2271) [Josh Goebel][]
  1237. - fix(themes): fix inconsistencies between some themes padding/spacing (#2300) [Josh Goebel][]
  1238. - ehh(build) Add CI check for building a "use strict" safe rollup package from NPM builds (#2247) [Josh Goebel][]
  1239. - fix(pkg): Prefix global addEventListener with window to be able to minify with closure compiler (#2305) [Kirill Saksin]()
  1240. Language Improvements:
  1241. - fix(sql): backslash is not used to escape in strings in standard SQL (#1748) [Mike Schall][]
  1242. - enh(ebnf) add backticks as additional string variant (#2290) [Chris Marchesi][]
  1243. - chore(javascript): add esm related extensions to aliases (#2298) [Rongjian Zhang][]
  1244. - fix(kotlin): fix termination of """ string literals (#2295) [Josh Goebel][]
  1245. - fix(mercury): don't change global STRING modes (#2271) [Josh Goebel][]
  1246. - enh(xml) expand and improve document type highlighting (#2287) [w3suli][]
  1247. - enh(ebnf) add underscore as allowed meta identifier character, and dot as terminator (#2281) [Chris Marchesi][]
  1248. - fix(makefile) fix double relevance for assigns, improves auto-detection (#2278) [Josh Goebel][]
  1249. - enh(xml) support for highlighting entities (#2260) [w3suli][]
  1250. - enh(gml) fix naming of keyword class (consistency fix) (#2254) [Liam Nobel][]
  1251. - enh(javascript): Add support for jsdoc comments (#2245) [Milutin Kristofic][]
  1252. - fix(python) fix `if` getting confused as an f-string (#2200) [Josh Goebel][] and [Carl Baxter][]
  1253. - enh(powershell) major overhaul, huge improvements (#2224)
  1254. - enh(css) Improve @rule highlighting, including properties (#2241) [Josh Goebel][]
  1255. - enh(css) Improve highlighting of numbers inside expr/func `calc(2px+3px)` (#2241)
  1256. - enh(scss) Pull some of the CSS improvements back into SCSS (#2241)
  1257. - fix(go): Fix escaped character literals (#2266) [David Benjamin][]
  1258. - fix(objectivec): Fix various preprocessor highlighting issues (#2265) [David Benjamin][]
  1259. - fix(objectivec): Handle multibyte character literals (#2268) [David Benjamin][]
  1260. - enh(cpp): Add additional keywords (#2289) [Adrian Ostrowski][]
  1261. [Josh Goebel]: https://github.com/joshgoebel
  1262. [Liam Nobel]: https://github.com/liamnobel
  1263. [Carl Baxter]: https://github.com/cdbax
  1264. [Milutin Kristofic]: https://github.com/milutin
  1265. [w3suli]: https://github.com/w3suli
  1266. [David Benjamin]: https://github.com/davidben
  1267. [Chris Marchesi]: https://github.com/vancluever
  1268. [Adrian Ostrowski]: https://github.com/aostrowski
  1269. [Rongjian Zhang]: https://github.com/pd4d10
  1270. [Mike Schall]: https://github.com/schallm
  1271. [Kirill Saksin]: https://github.com/saksmt
  1272. [Samia Ali]:https://github.com/samiaab1990
  1273. [Erik Demaine]:https://github.com/edemaine
  1274. ## Version 9.16.2
  1275. New languages:
  1276. none.
  1277. New styles:
  1278. none.
  1279. Improvements:
  1280. - fix(arduino) Resolves issue with arduino.js not being "use strict" safe (#2247)
  1281. ## Version 9.16.1
  1282. New languages:
  1283. none.
  1284. New styles:
  1285. - *Night Owl* by [Carl Baxter][]
  1286. Improvements:
  1287. - Add CLI tool to quickly check for relevance conflicts [Mark Ellis][] (#1554)
  1288. - enhance(twig) update list of filter and tags (#2090)
  1289. - fix(crystal): correctly highlight `!~` method definition (#2222)
  1290. - fix dropping characters if we choke up on a 0-width match (#2219)
  1291. - (accesslog) improve accesslog relevancy scoring (#2172)
  1292. - fix(shell): fix parsing of prompts with forward slash (#2218)
  1293. - improve parser to properly support look-ahead regex in begin matchers (#2135)
  1294. - blacklist super-common keywords from having relevance (#2179)
  1295. - fix(swift): support for `@dynamicMemberLookup` and `@propertyWrapper` (#2202)
  1296. - fix: `endWithParent` inside `starts` now always works (#2201)
  1297. - fix(typescript): constructor in declaration doesn't break highlighting
  1298. - fix(typescript): only match function keyword as a separate identifier (#2191)
  1299. - feature(arduino) make arduino a super-set of cpp grammar
  1300. - fix(javascript): fix object attributes immediately following line comments
  1301. - fix(xml): remove `vbscript` as potential script tag subLanguage
  1302. - fix(Elixir): improve regex for numbers
  1303. - fix(YAML): improve matching for keys, blocks and numbers
  1304. - fix(Pony): improve regex for numbers
  1305. - fix(handlebars): add support for raw-blocks, and triple-mustaches(#2175)
  1306. - fix(handlebars): fix parsing of block-comments containing closing mustaches (#2175)
  1307. - fix(handlebars): add support for segment-literal notation, and escaped mustaches (#2184)
  1308. - JSON: support for comments in JSON (#2016)
  1309. - fix(cpp): improve string literal matching
  1310. - fix(highlight.js): omit empty span-tags in the output (#2182)
  1311. - fix(Go): improve function declaration matching
  1312. - fix(python): added support for f-string literal curly braces (#2195)
  1313. - fix(cpp): add `future` built-in (#1610)
  1314. - fix(python): support comments within function parameters (#2214)
  1315. [Carl Baxter]: https://github.com/cdbax
  1316. [Mark Ellis]: https://github.com/ellismarkf
  1317. ## Version 9.15.10
  1318. New languages:
  1319. none.
  1320. New styles:
  1321. none.
  1322. Improvements:
  1323. - support for ruby's squiggly heredoc (#2049)
  1324. - support css custom properties (#2082)
  1325. - fix(PureBASIC): update to 5.60 (#1508)
  1326. - fix(Kotlin): parenthesized types in function declaration (#2107)
  1327. - fix(Kotlin): nested comment (#2104)
  1328. - fix(isbl): contains key typo (#2103)
  1329. - fix(github-gist.css): match Github styles (#2100)
  1330. - fix(elm): update to latest elm syntax (#2088)
  1331. - fix: Support highlighting inline HTML and CSS tagged template strings in JS and TS (#2105)
  1332. - feat(YAML): add YAML to common languages (#1952)
  1333. - feat(xml): Add support for Windows Script File (.wsf), inline VBScript in XML `script` tags (#1690)
  1334. ## Version 9.15.9
  1335. Improvements:
  1336. - fix(AutoHotkey): order and extended highlighting (#1579)
  1337. - fix(Go): correctly highlight hex numbers, rather than stopping at last 'd' or 'f'. (#2060)
  1338. - fix(Mathematica): Improvements to language (#2065)
  1339. - fix(Node): Adds SCSS build (#2079)
  1340. - fix(Rust): update keywords (#2052)
  1341. - fix(Stata): Added keywords for the meta-analysis suite introduced in Stata 16 (#2081)
  1342. - fix(Bash): escape double quotes (#2048)
  1343. ## Version 9.15.8
  1344. New languages:
  1345. none.
  1346. New styles:
  1347. none.
  1348. Improvements:
  1349. - fix(bash): revert escaped double quotes - broke Firefox/Safari.
  1350. ## Version 9.15.7
  1351. New languages:
  1352. none.
  1353. New styles:
  1354. none.
  1355. Improvements:
  1356. - fix(powershell): Add cmdlets (#2022)
  1357. - fix(Bash): escaped double quotes (#2041)
  1358. - fix(c++): add aliases 'hh', 'hxx', 'cxx' (#2017)
  1359. - fix(ini/toml): Support comments on the same line. (#2039)
  1360. - fix(JSX): not rendering well in a function without parentheses. (#2024)
  1361. - fix(LiveCode): language definition update (#2021)
  1362. - fix(markdown): indented lists (#2004)
  1363. - fix(styles/school-book): don't style all the pre, use .hljs instead (#2034)
  1364. - fix(JSX): Modify JSX tag detection to use XML language regex in place of simplistic \w+
  1365. ## Version 9.15.6
  1366. New languages:
  1367. none.
  1368. New styles:
  1369. none.
  1370. Improvements:
  1371. - Move dependencies to be devDependencies.
  1372. - Fixed security issues in dev dependencies.
  1373. ## Version 9.15.5
  1374. New languages:
  1375. none.
  1376. New styles:
  1377. none.
  1378. Improvements:
  1379. 🔥 Hot fix: updated build tool.
  1380. ## Version 9.15.4
  1381. New languages:
  1382. none.
  1383. New styles:
  1384. none.
  1385. Improvements:
  1386. 🔥 Hot fix: reverted hljs cli build tool, as it was causing issues with install.
  1387. ## Version 9.15.3
  1388. New languages:
  1389. none.
  1390. New styles:
  1391. none.
  1392. Improvements:
  1393. 🔥 Hot fix: reverted hljs cli build tool, as it was causing issues with install.
  1394. ## Version 9.15.2
  1395. New languages:
  1396. none.
  1397. New styles:
  1398. none.
  1399. Improvements:
  1400. 🔥 Hot fix that was preventing highlight.js from installing.
  1401. ## Version 9.15.1
  1402. New languages:
  1403. none.
  1404. New styles:
  1405. none.
  1406. Improvements:
  1407. - Pony: Fixed keywords without spaces at line ends, highlighting of `iso` in class definitions, and function heads without bodies in traits and interfaces. Removed FUNCTION and CLASS modes until they are found to be needed and to provide some of the fixes.
  1408. - Support external language files in minified version of highlight.js (#1888)
  1409. ## Version 9.15
  1410. New languages:
  1411. none.
  1412. New styles:
  1413. none.
  1414. Improvements:
  1415. - new cli tool `hljs` - allows easier [building from command line](docs/building-testing.rst#building-a-bundle-from-the-command-line).
  1416. - cpp: Fully support C++11 raw strings. (#1897)
  1417. - Python: Treat False None and True as literals (#1920)
  1418. ## Version 9.14.2
  1419. New languages:
  1420. none.
  1421. New styles:
  1422. none.
  1423. Improvements:
  1424. - *Gauss* fixed to stop global namespace pollution [Scott Hyndman][].
  1425. - fix(Tcl): removed apostrophe string delimiters (don't exist)
  1426. [Scott Hyndman]: https://github.com/shyndman
  1427. ## Version 9.14.1
  1428. New languages:
  1429. none.
  1430. New styles:
  1431. none.
  1432. Improvements:
  1433. - Pony: language improvements (#1958)
  1434. ## Version 9.14.0
  1435. New languages:
  1436. none.
  1437. New styles:
  1438. none.
  1439. Improvements:
  1440. - Pony: add missing "object" highlighting (#1932)
  1441. - Added *XQuery* built-in functions, prolog declarations, as well as parsing of function bodies, computed and direct constructors, by [Duncan Paterson][]
  1442. - fix(dart): Corrects highlighting with string interpolation. (#1946)
  1443. - fix(swift): be eager on optional-using types (!/?) (#1919)
  1444. - fix(tex): Changed cyrillic to unicode (IE11 throw SCRIPT5021) (#1601)
  1445. - fix(JavaScript): Recognize get/set accessor keywords (#1940)
  1446. - Fixed Dockerfile definition when using highlight continuation parameter, by [Laurent Voullemier][]
  1447. - Added tests & new `annotation` and `verbatim` keywords to *Crystal*, by [Benoit de Chezelles][]
  1448. - Added missing dockerfile markup tests, by [Laurent Voullemier][]
  1449. Allow empty prompt text in clojure-repl, by [Egor Rogov][]
  1450. - Fixed several issues with *Crystal* language definition, by [Johannes Müller][]
  1451. - Added `C#` as an alias for *CSharp* language, by [Ahmed Atito][]
  1452. - Added generic user-defined proc support, new compiler define, refactor to re-use rules, and add tests to *GAUSS*, by [Matthew Evans][]
  1453. - Improve *Crystal* language to highlight regexes after some keywords, by [Tsuyusato Kitsune][]
  1454. - Fix filterByQualifiers: fileInfo can be null
  1455. - Fixed String interpolation in Dart, by [Scott Hyndman][].
  1456. [Laurent Voullemier]: https://github.com/l-vo
  1457. [Benoit de Chezelles]: https://github.com/bew
  1458. [Johannes Müller]: https://github.com/straight-shoota
  1459. [Ahmed Atito]: https://github.com/atitoa93
  1460. [Matthew Evans]: https://github.com/matthewevans
  1461. [Tsuyusato Kitsune]: https://github.com/MakeNowJust
  1462. [Scott Hyndman]: https://github.com/shyndman
  1463. [Duncan Paterson]: https://github.com/duncdrum
  1464. ## Version 9.13.1
  1465. Improvements:
  1466. - *C#* function declarations no longer include trailing whitespace, by [JeremyTCD][]
  1467. - Added new and missing keywords to *AngelScript*, by [Melissa Geels][]
  1468. - *TypeScript* decorator factories highlighting fix, by [Antoine Boisier-Michaud][]
  1469. - Added support for multiline strings to *Swift*, by [Alejandro Isaza][]
  1470. - Fixed issue that was causing some minifiers to fail.
  1471. - Fixed `autoDetection` to accept language aliases.
  1472. [JeremyTCD]: https://github.com/JeremyTCD
  1473. [Melissa Geels]: https://github.com/codecat
  1474. [Antoine Boisier-Michaud]: https://github.com/Aboisier
  1475. [Alejandro Isaza]: https://github.com/alejandro-isaza
  1476. ## Version 9.13.0
  1477. New languages:
  1478. - *ArcGIS Arcade* by [John Foster][]
  1479. - *AngelScript* by [Melissa Geels][]
  1480. - *GML* by [meseta][]
  1481. - *isbl* built-in language DIRECTUM and Conterra by [Dmitriy Tarasov][].
  1482. - *PostgreSQL* SQL dialect and PL/pgSQL language by [Egor Rogov][].
  1483. - *ReasonML* by [Gidi Meir Morris][]
  1484. - *SAS* by [Mauricio Caceres Bravo][]
  1485. - *Plaintext* by [Egor Rogov][]
  1486. - *.properties* by [bostko][] and [Egor Rogov][]
  1487. New styles:
  1488. - *a11y-dark theme* by [Eric Bailey][]
  1489. - *a11y-light theme* by [Eric Bailey][]
  1490. - *An Old Hope* by [Gustavo Costa][]
  1491. - *Atom One Dark Reasonable* by [Gidi Meir Morris][]
  1492. - *isbl editor dark* by [Dmitriy Tarasov][]
  1493. - *isbl editor light* by [Dmitriy Tarasov][]
  1494. - *Lightfair* by [Tristian Kelly][]
  1495. - [*Nord*][nord-highlightjs] by [Arctic Ice Studio][]
  1496. - *[🦄 Shades of Purple](https://github.com/ahmadawais/Shades-of-Purple-HighlightJS)* by [Ahmad Awais][]
  1497. Improvements:
  1498. - New attribute `endSameAsBegin` for nested constructs with variable names
  1499. by [Egor Rogov][].
  1500. - *Python* highlighting of escaped quotes fixed by [Harmon][]
  1501. - *PHP*: Added alias for php7, by [Vijaya Chandran Mani][]
  1502. - *C++* string handling, by [David Benjamin][]
  1503. - *Swift* Add `@objcMembers` to `@attributes`, by [Berk Çebi][]
  1504. - Infrastructural changes by [Marcos Cáceres][]
  1505. - Fixed metachars highighting for *NSIS* by [Jan T. Sott][]
  1506. - *Yaml* highlight local tags as types by [Léo Lam][]
  1507. - Improved highlighting for *Elixir* by [Piotr Kaminski][]
  1508. - New attribute `disableAutodetect` for preventing autodetection by [Egor Rogov][]
  1509. - *Matlab*: transpose operators and double quote strings, by [JohnC32][] and [Egor Rogov][]
  1510. - Various documentation typos and improvemets by [Jimmy Wärting][], [Lutz Büch][], [bcleland][]
  1511. - *Cmake* updated with new keywords and commands by [Deniz Bahadir][]
  1512. [Ahmad Awais]: https://github.com/ahmadawais
  1513. [Arctic Ice Studio]: https://github.com/arcticicestudio
  1514. [Dmitriy Tarasov]: https://github.com/MedvedTMN
  1515. [Egor Rogov]: https://github.com/egor-rogov
  1516. [Eric Bailey]: https://github.com/ericwbailey
  1517. [Gidi Meir Morris]: https://github.com/gmmorris
  1518. [Gustavo Costa]: https://github.com/gusbemacbe
  1519. [Harmon]: https://github.com/Harmon758
  1520. [Melissa Geels]: https://github.com/codecat
  1521. [meseta]: https://github.com/meseta
  1522. [nord-highlightjs]: https://github.com/arcticicestudio/nord-highlightjs
  1523. [Tristian Kelly]: https://github.com/TristianK3604
  1524. [Vijaya Chandran Mani]: https://github.com/vijaycs85
  1525. [John Foster]: https://github.com/jf990
  1526. [David Benjamin]: https://github.com/davidben
  1527. [Berk Çebi]: https://github.com/berkcebi
  1528. [Mauricio Caceres Bravo]: https://github.com/mcaceresb
  1529. [bostko]: https://github.com/bostko
  1530. [Deniz Bahadir]: https://github.com/Bagira80
  1531. [bcleland]: https://github.com/bcleland
  1532. [JohnC32]: https://github.com/JohnC32
  1533. [Lutz Büch]: https://github.com/lutz-100worte
  1534. [Piotr Kaminski]: https://github.com/pkaminski
  1535. [Léo Lam]: https://github.com/leoetlino
  1536. [Jan T. Sott]: https://github.com/idleberg
  1537. [Jimmy Wärting]: https://github.com/jimmywarting
  1538. [Marcos Cáceres]: https://github.com/marcoscaceres
  1539. ## Version 9.12.0
  1540. New language:
  1541. - *MikroTik* RouterOS Scripting language by [Ivan Dementev][].
  1542. New style:
  1543. - *VisualStudio 2015 Dark* by [Nicolas LLOBERA][]
  1544. Improvements:
  1545. - *Crystal* updated with new keywords and syntaxes by [Tsuyusato Kitsune][].
  1546. - *Julia* updated to the modern definitions by [Alex Arslan][].
  1547. - *julia-repl* added by [Morten Piibeleht][].
  1548. - [Stanislav Belov][] wrote a new definition for *1C*, replacing the one that
  1549. has not been updated for more than 8 years. The new version supports syntax
  1550. for versions 7.7 and 8.
  1551. - [Nicolas LLOBERA][] improved C# definition fixing edge cases with function
  1552. titles detection and added highlighting of `[Attributes]`.
  1553. - [nnnik][] provided a few correctness fixes for *Autohotkey*.
  1554. - [Martin Clausen][] made annotation collections in *Clojure* to look
  1555. consistently with other kinds.
  1556. - [Alejandro Alonso][] updated *Swift* keywords.
  1557. [Tsuyusato Kitsune]: https://github.com/MakeNowJust
  1558. [Alex Arslan]: https://github.com/ararslan
  1559. [Morten Piibeleht]: https://github.com/mortenpi
  1560. [Stanislav Belov]: https://github.com/4ppl
  1561. [Ivan Dementev]: https://github.com/DiVAN1x
  1562. [Nicolas LLOBERA]: https://github.com/Nicolas01
  1563. [nnnik]: https://github.com/nnnik
  1564. [Martin Clausen]: https://github.com/maacl
  1565. [Alejandro Alonso]: https://github.com/Azoy
  1566. ## Version 9.11.0
  1567. New languages:
  1568. - *Shell* by [Tsuyusato Kitsune][]
  1569. - *jboss-cli* by [Raphaël Parrëe][]
  1570. Improvements:
  1571. - [Joël Porquet] has [greatly improved the definition of *makefile*][5b3e0e6].
  1572. - *C++* class titles are now highlighted as in other languages with classes.
  1573. - [Jordi Petit][] added rarely used `or`, `and` and `not` keywords to *C++*.
  1574. - [Pieter Vantorre][] fixed highlighting of negative floating point values.
  1575. [Tsuyusato Kitsune]: https://github.com/MakeNowJust
  1576. [Jordi Petit]: https://github.com/jordi-petit
  1577. [Raphaël Parrëe]: https://github.com/rparree
  1578. [Pieter Vantorre]: https://github.com/NuclearCookie
  1579. [5b3e0e6]: https://github.com/isagalaev/highlight.js/commit/5b3e0e68bfaae282faff6697d6a490567fa9d44b
  1580. ## Version 9.10.0
  1581. Apologies for missing the previous release cycle. Some thing just can't be
  1582. automated… Anyway, we're back!
  1583. New languages:
  1584. - *Hy* by [Sergey Sobko][]
  1585. - *Leaf* by [Hale Chan][]
  1586. - *N1QL* by [Andres Täht][] and [Rene Saarsoo][]
  1587. Improvements:
  1588. - *Rust* got updated with new keywords by [Kasper Andersen][] and then
  1589. significantly modernized even more by [Eduard-Mihai Burtescu][] (yes, @eddyb,
  1590. Rust core team member!)
  1591. - *Python* updated with f-literals by [Philipp A][].
  1592. - *YAML* updated with unquoted strings support.
  1593. - *Gauss* updated with new keywords by [Matt Evans][].
  1594. - *Lua* updated with new keywords by [Joe Blow][].
  1595. - *Kotlin* updated with new keywords by [Philipp Hauer][].
  1596. - *TypeScript* got highlighting of function params and updated keywords by
  1597. [Ike Ku][].
  1598. - *Scheme* now correctly handles \`-quoted lists thanks to [Guannan Wei].
  1599. - [Sam Wu][] fixed handling of `<<` in *C++* defines.
  1600. [Philipp A]: https://github.com/flying-sheep
  1601. [Philipp Hauer]: https://github.com/phauer
  1602. [Sergey Sobko]: https://github.com/profitware
  1603. [Hale Chan]: https://github.com/halechan
  1604. [Matt Evans]: https://github.com/matthewevans
  1605. [Joe Blow]: https://github.com/mossarelli
  1606. [Kasper Andersen]: https://github.com/kasma1990
  1607. [Eduard-Mihai Burtescu]: https://github.com/eddyb
  1608. [Andres Täht]: https://github.com/andrestaht
  1609. [Rene Saarsoo]: https://github.com/nene
  1610. [Philipp Hauer]: https://github.com/phauer
  1611. [Ike Ku]: https://github.com/dempfi
  1612. [Guannan Wei]: https://github.com/Kraks
  1613. [Sam Wu]: https://github.com/samsam2310
  1614. ## Version 9.9.0
  1615. New languages
  1616. - *LLVM* by [Michael Rodler][]
  1617. Improvements:
  1618. - *TypeScript* updated with annotations and param lists inside constructors, by
  1619. [Raphael Parree][].
  1620. - *CoffeeScript* updated with new keywords and fixed to recognize JavaScript
  1621. in \`\`\`, thanks to thanks to [Geoffrey Booth][].
  1622. - Compiler directives in *Delphi* are now correctly highlighted as "meta".
  1623. [Raphael Parree]: https://github.com/rparree
  1624. [Michael Rodler]: https://github.com/f0rki
  1625. [Geoffrey Booth]: https://github.com/GeoffreyBooth
  1626. ## Version 9.8.0 "New York"
  1627. This version is the second one that deserved a name. Because I'm in New York,
  1628. and the release isn't missing the deadline only because it's still Tuesday on
  1629. West Coast.
  1630. New languages:
  1631. - *Clean* by [Camil Staps][]
  1632. - *Flix* by [Magnus Madsen][]
  1633. Improvements:
  1634. - [Kenton Hamaluik][] did a comprehensive update for *Haxe*.
  1635. - New commands for *PowerShell* from [Nicolas Le Gall][].
  1636. - [Jan T. Sott][] updated *NSIS*.
  1637. - *Java* and *Swift* support unicode characters in identifiers thanks to
  1638. [Alexander Lichter][].
  1639. [Camil Staps]: https://github.com/camilstaps
  1640. [Magnus Madsen]: https://github.com/magnus-madsen
  1641. [Kenton Hamaluik]: https://github.com/FuzzyWuzzie
  1642. [Nicolas Le Gall]: https://github.com/darkitty
  1643. [Jan T. Sott]: https://github.com/idleberg
  1644. [Alexander Lichter]: https://github.com/manniL
  1645. ## Version 9.7.0
  1646. A comprehensive bugfix release. This is one of the best things about
  1647. highlight.js: even boring things keep getting better (even if slow).
  1648. - VHDL updated with PSL keywords and uses more consistent styling.
  1649. - Nested C-style comments no longer break highlighting in many languages.
  1650. - JavaScript updated with `=>` functions, highlighted object attributes and
  1651. parsing within template string substitution blocks (`${...}`).
  1652. - Fixed another corner case with self-closing `<tag/>` in JSX.
  1653. - Added `HEALTHCHECK` directive in Docker.
  1654. - Delphi updated with new Free Pascal keywords.
  1655. - Fixed digit separator parsing in C++.
  1656. - C# updated with new keywords and fixed to allow multiple identifiers within
  1657. generics `<...>`.
  1658. - Fixed another slow regex in Less.
  1659. ## Version 9.6.0
  1660. New languages:
  1661. - *ABNF* and *EBNF* by [Alex McKibben][]
  1662. - *Awk* by [Matthew Daly][]
  1663. - *SubUnit* by [Sergey Bronnikov][]
  1664. New styles:
  1665. - *Atom One* in both Dark and Light variants by [Daniel Gamage][]
  1666. Plus, a few smaller updates for *Lasso*, *Elixir*, *C++* and *SQL*.
  1667. [Alex McKibben]: https://github.com/mckibbenta
  1668. [Daniel Gamage]: https://github.com/danielgamage
  1669. [Matthew Daly]: https://github.com/matthewbdaly
  1670. [Sergey Bronnikov]: https://github.com/ligurio
  1671. ## Version 9.5.0
  1672. New languages:
  1673. - *Excel* by [Victor Zhou][]
  1674. - *Linden Scripting Language* by [Builder's Brewery][]
  1675. - *TAP* (Test Anything Protocol) by [Sergey Bronnikov][]
  1676. - *Pony* by [Joe Eli McIlvain][]
  1677. - *Coq* by [Stephan Boyer][]
  1678. - *dsconfig* and *LDIF* by [Jacob Childress][]
  1679. New styles:
  1680. - *Ocean Dark* by [Gavin Siu][]
  1681. Notable changes:
  1682. - [Minh Nguyễn][] added more built-ins to Objective C.
  1683. - [Jeremy Hull][] fixed corner cases in C++ preprocessor directives and Diff
  1684. comments.
  1685. - [Victor Zhou][] added support for digit separators in C++ numbers.
  1686. [Gavin Siu]: https://github.com/gavsiu
  1687. [Builder's Brewery]: https://github.com/buildersbrewery
  1688. [Victor Zhou]: https://github.com/OiCMudkips
  1689. [Sergey Bronnikov]: https://github.com/ligurio
  1690. [Joe Eli McIlvain]: https://github.com/jemc
  1691. [Stephan Boyer]: https://github.com/boyers
  1692. [Jacob Childress]: https://github.com/braveulysses
  1693. [Minh Nguyễn]: https://github.com/1ec5
  1694. [Jeremy Hull]: https://github.com/sourrust
  1695. ## Version 9.4.0
  1696. New languages:
  1697. - *PureBASIC* by [Tristano Ajmone][]
  1698. - *BNF* by [Oleg Efimov][]
  1699. - *Ada* by [Lars Schulna][]
  1700. New styles:
  1701. - *PureBASIC* by [Tristano Ajmone][]
  1702. Improvements to existing languages and styles:
  1703. - We now highlight function declarations in Go.
  1704. - [Taisuke Fujimoto][] contributed very convoluted rules for raw and
  1705. interpolated strings in C#.
  1706. - [Boone Severson][] updated Verilog to comply with IEEE 1800-2012
  1707. SystemVerilog.
  1708. - [Victor Zhou][] improved rules for comments and strings in PowerShell files.
  1709. - [Janis Voigtländer][] updated the definition of Elm to version 0.17 of the
  1710. languages. Elm is now featured on the front page of <https://highlightjs.org>.
  1711. - Special variable `$this` is highlighted as a keyword in PHP.
  1712. - `usize` and `isize` are now highlighted in Rust.
  1713. - Fixed labels and directives in x86 assembler.
  1714. [Tristano Ajmone]: https://github.com/tajmone
  1715. [Taisuke Fujimoto]: https://github.com/temp-impl
  1716. [Oleg Efimov]: https://github.com/Sannis
  1717. [Boone Severson]: https://github.com/BooneJS
  1718. [Victor Zhou]: https://github.com/OiCMudkips
  1719. [Lars Schulna]: https://github.com/captain-hanuta
  1720. [Janis Voigtländer]: https://github.com/jvoigtlaender
  1721. ## Version 9.3.0
  1722. New languages:
  1723. - *Tagger Script* by [Philipp Wolfer][]
  1724. - *MoonScript* by [Billy Quith][]
  1725. New styles:
  1726. - *xt256* by [Herbert Shin][]
  1727. Improvements to existing languages and styles:
  1728. - More robust handling of unquoted HTML tag attributes
  1729. - Relevance tuning for QML which was unnecessary eager at seizing other
  1730. languages' code
  1731. - Improve GAMS language parsing
  1732. - Fixed a bunch of bugs around selectors in Less
  1733. - Kotlin's got a new definition for annotations, updated keywords and other
  1734. minor improvements
  1735. - Added `move` to Rust keywords
  1736. - Markdown now recognizes \`\`\`-fenced code blocks
  1737. - Improved detection of function declarations in C++ and C#
  1738. [Philipp Wolfer]: https://github.com/phw
  1739. [Billy Quith]: https://github.com/billyquith
  1740. [Herbert Shin]: https://github.com/initbar
  1741. ## Version 9.2.0
  1742. New languages:
  1743. - *QML* by [John Foster][]
  1744. - *HTMLBars* by [Michael Johnston][]
  1745. - *CSP* by [Taras][]
  1746. - *Maxima* by [Robert Dodier][]
  1747. New styles:
  1748. - *Gruvbox* by [Qeole][]
  1749. - *Dracula* by [Denis Ciccale][]
  1750. Improvements to existing languages and styles:
  1751. - We now correctly handle JSX with arbitrary node tree depth.
  1752. - Argument list for `(lambda)` in Scheme is no longer highlighted as a function
  1753. call.
  1754. - Stylus syntax doesn't break on valid CSS.
  1755. - More correct handling of comments and strings and other improvements for
  1756. VimScript.
  1757. - More subtle work on the default style.
  1758. - We now use anonymous modules for AMD.
  1759. - `macro_rules!` is now recognized as a built-in in Rust.
  1760. [John Foster]: https://github.com/jf990
  1761. [Qeole]: https://github.com/Qeole
  1762. [Denis Ciccale]: https://github.com/dciccale
  1763. [Michael Johnston]: https://github.com/lastobelus
  1764. [Taras]: https://github.com/oxdef
  1765. [Robert Dodier]: https://github.com/robert-dodier
  1766. ## Version 9.1.0
  1767. New languages:
  1768. - *Stan* by [Brendan Rocks][]
  1769. - *BASIC* by [Raphaël Assénat][]
  1770. - *GAUSS* by [Matt Evans][]
  1771. - *DTS* by [Martin Braun][]
  1772. - *Arduino* by [Stefania Mellai][]
  1773. New Styles:
  1774. - *Arduino Light* by [Stefania Mellai][]
  1775. Improvements to existing languages and styles:
  1776. - Handle return type annotations in Python
  1777. - Allow shebang headers in Javascript
  1778. - Support strings in Rust meta
  1779. - Recognize `struct` as a class-level definition in Rust
  1780. - Recognize b-prefixed chars and strings in Rust
  1781. - Better numbers handling in Verilog
  1782. [Brendan Rocks]: http://brendanrocks.com
  1783. [Raphaël Assénat]: https://github.com/raphnet
  1784. [Matt Evans]: https://github.com/matthewevans
  1785. [Martin Braun]: https://github.com/mbr0wn
  1786. [Stefania Mellai]: https://github.com/smellai
  1787. ## Version 9.0.0
  1788. The new major version brings a reworked styling system. Highlight.js now defines
  1789. a limited set of highlightable classes giving a consistent result across all the
  1790. styles and languages. You can read a more detailed explanation and background in
  1791. the [tracking issue][#348] that started this long process back in May.
  1792. This change is backwards incompatible for those who uses highlight.js with a
  1793. custom stylesheet. The [new style guide][sg] explains how to write styles
  1794. in this new world.
  1795. Bundled themes have also suffered a significant amount of improvements and may
  1796. look different in places, but all the things now consistent and make more sense.
  1797. Among others, the Default style has got a refresh and will probably be tweaked
  1798. some more in next releases. Please do give your feedback in our
  1799. [issue tracker][issues].
  1800. New languages in this release:
  1801. - *Caché Object Script* by [Nikita Savchenko][]
  1802. - *YAML* by [Stefan Wienert][]
  1803. - *MIPS Assembler* by [Nebuleon Fumika][]
  1804. - *HSP* by [prince][]
  1805. Improvements to existing languages and styles:
  1806. - ECMAScript 6 modules import now do not require closing semicolon.
  1807. - ECMAScript 6 classes constructors now highlighted.
  1808. - Template string support for Typescript, as for ECMAScript 6.
  1809. - Scala case classes params highlight fixed.
  1810. - Built-in names introduced in Julia v0.4 added by [Kenta Sato][].
  1811. - Refreshed Default style.
  1812. Other notable changes:
  1813. - [Web workers support][webworkers] added bu [Jan Kühle][].
  1814. - We now have tests for compressed browser builds as well.
  1815. - The building tool chain has been switched to node.js 4.x. and is now
  1816. shamelessly uses ES6 features all over the place, courtesy of [Jeremy Hull][].
  1817. - License added to non-compressed browser build.
  1818. [Jan Kühle]: https://github.com/frigus02
  1819. [Stefan Wienert]: https://github.com/zealot128
  1820. [Kenta Sato]: https://github.com/bicycle1885
  1821. [Nikita Savchenko]: https://github.com/ZitRos
  1822. [webworkers]: https://github.com/isagalaev/highlight.js#web-workers
  1823. [Jeremy Hull]: https://github.com/sourrust
  1824. [#348]: https://github.com/isagalaev/highlight.js/issues/348
  1825. [sg]: http://highlightjs.readthedocs.org/en/latest/style-guide.html
  1826. [issues]: https://github.com/isagalaev/highlight.js/issues
  1827. [Nebuleon Fumika]: https://github.com/Nebuleon
  1828. [prince]: https://github.com/prince-0203
  1829. ## Version 8.9.1
  1830. Some last-minute changes reverted due to strange bug with minified browser build:
  1831. - Scala case classes params highlight fixed
  1832. - ECMAScript 6 modules import now do not require closing semicolon
  1833. - ECMAScript 6 classes constructors now highlighted
  1834. - Template string support for Typescript, as for ECMAScript 6
  1835. - License added to not minified browser build
  1836. ## Version 8.9.0
  1837. New languages:
  1838. - *crmsh* by [Kristoffer Gronlund][]
  1839. - *SQF* by [Soren Enevoldsen][]
  1840. [Kristoffer Gronlund]: https://github.com/krig
  1841. [Soren Enevoldsen]: https://github.com/senevoldsen90
  1842. Notable fixes and improvements to existing languages:
  1843. - Added `abstract` and `namespace` keywords to TypeScript by [Daniel Rosenwasser][]
  1844. - Added `label` support to Dockerfile by [Ladislav Prskavec][]
  1845. - Crystal highlighting improved by [Tsuyusato Kitsune][]
  1846. - Missing Swift keywords added by [Nate Cook][]
  1847. - Improve detection of C block comments
  1848. - ~~Scala case classes params highlight fixed~~
  1849. - ~~ECMAScript 6 modules import now do not require closing semicolon~~
  1850. - ~~ECMAScript 6 classes constructors now highlighted~~
  1851. - ~~Template string support for Typescript, as for ECMAScript 6~~
  1852. Other notable changes:
  1853. - ~~License added to not minified browser build~~
  1854. [Kristoffer Gronlund]: https://github.com/krig
  1855. [Søren Enevoldsen]: https://github.com/senevoldsen90
  1856. [Daniel Rosenwasser]: https://github.com/DanielRosenwasser
  1857. [Ladislav Prskavec]: https://github.com/abtris
  1858. [Tsuyusato Kitsune]: https://github.com/MakeNowJust
  1859. [Nate Cook]: https://github.com/natecook1000
  1860. ## Version 8.8.0
  1861. New languages:
  1862. - *Golo* by [Philippe Charrière][]
  1863. - *GAMS* by [Stefan Bechert][]
  1864. - *IRPF90* by [Anthony Scemama][]
  1865. - *Access logs* by [Oleg Efimov][]
  1866. - *Crystal* by [Tsuyusato Kitsune][]
  1867. Notable fixes and improvements to existing languages:
  1868. - JavaScript highlighting no longer fails with ES6 default parameters
  1869. - Added keywords `async` and `await` to Python
  1870. - PHP heredoc support improved
  1871. - Allow preprocessor directives within C++ functions
  1872. Other notable changes:
  1873. - Change versions to X.Y.Z SemVer-compatible format
  1874. - Added ability to build all targets at once
  1875. [Philippe Charrière]: https://github.com/k33g
  1876. [Stefan Bechert]: https://github.com/b-pos465
  1877. [Anthony Scemama]: https://github.com/scemama
  1878. [Oleg Efimov]: https://github.com/Sannis
  1879. [Tsuyusato Kitsune]: https://github.com/MakeNowJust
  1880. ## Version 8.7
  1881. New languages:
  1882. - *Zephir* by [Oleg Efimov][]
  1883. - *Elm* by [Janis Voigtländer][]
  1884. - *XQuery* by [Dirk Kirsten][]
  1885. - *Mojolicious* by [Dotan Dimet][]
  1886. - *AutoIt* by Manh Tuan from [J2TeaM][]
  1887. - *Toml* (ini extension) by [Guillaume Gomez][]
  1888. New styles:
  1889. - *Hopscotch* by [Jan T. Sott][]
  1890. - *Grayscale* by [MY Sun][]
  1891. Notable fixes and improvements to existing languages:
  1892. - Fix encoding of images when copied over in certain builds
  1893. - Fix incorrect highlighting of the word "bug" in comments
  1894. - Treat decorators different from matrix multiplication in Python
  1895. - Fix traits inheritance highlighting in Rust
  1896. - Fix incorrect document
  1897. - Oracle keywords added to SQL language definition by [Vadimtro][]
  1898. - Postgres keywords added to SQL language definition by [Benjamin Auder][]
  1899. - Fix registers in x86asm being highlighted as a hex number
  1900. - Fix highlighting for numbers with a leading decimal point
  1901. - Correctly highlight numbers and strings inside of C/C++ macros
  1902. - C/C++ functions now support pointer, reference, and move returns
  1903. [Oleg Efimov]: https://github.com/Sannis
  1904. [Guillaume Gomez]: https://github.com/GuillaumeGomez
  1905. [Janis Voigtländer]: https://github.com/jvoigtlaender
  1906. [Jan T. Sott]: https://github.com/idleberg
  1907. [Dirk Kirsten]: https://github.com/dirkk
  1908. [MY Sun]: https://github.com/simonmysun
  1909. [Vadimtro]: https://github.com/Vadimtro
  1910. [Benjamin Auder]: https://github.com/ghost
  1911. [Dotan Dimet]: https://github.com/dotandimet
  1912. [J2TeaM]: https://github.com/J2TeaM
  1913. ## Version 8.6
  1914. New languages:
  1915. - *C/AL* by [Kenneth Fuglsang][]
  1916. - *DNS zone file* by [Tim Schumacher][]
  1917. - *Ceylon* by [Lucas Werkmeister][]
  1918. - *OpenSCAD* by [Dan Panzarella][]
  1919. - *Inform7* by [Bruno Dias][]
  1920. - *armasm* by [Dan Panzarella][]
  1921. - *TP* by [Jay Strybis][]
  1922. New styles:
  1923. - *Atelier Cave*, *Atelier Estuary*,
  1924. *Atelier Plateau* and *Atelier Savanna* by [Bram de Haan][]
  1925. - *Github Gist* by [Louis Barranqueiro][]
  1926. Notable fixes and improvements to existing languages:
  1927. - Multi-line raw strings from C++11 are now supported
  1928. - Fix class names with dashes in HAML
  1929. - The `async` keyword from ES6/7 is now supported
  1930. - TypeScript functions handle type and parameter complexity better
  1931. - We unified phpdoc/javadoc/yardoc etc modes across all languages
  1932. - CSS .class selectors relevance was dropped to prevent wrong language detection
  1933. - Images is now included to CDN build
  1934. - Release process is now automated
  1935. [Bram de Haan]: https://github.com/atelierbram
  1936. [Kenneth Fuglsang]: https://github.com/kfuglsang
  1937. [Louis Barranqueiro]: https://github.com/LouisBarranqueiro
  1938. [Tim Schumacher]: https://github.com/enko
  1939. [Lucas Werkmeister]: https://github.com/lucaswerkmeister
  1940. [Dan Panzarella]: https://github.com/pzl
  1941. [Bruno Dias]: https://github.com/sequitur
  1942. [Jay Strybis]: https://github.com/unreal
  1943. ## Version 8.5
  1944. New languages:
  1945. - *pf.conf* by [Peter Piwowarski][]
  1946. - *Julia* by [Kenta Sato][]
  1947. - *Prolog* by [Raivo Laanemets][]
  1948. - *Docker* by [Alexis Hénaut][]
  1949. - *Fortran* by [Anthony Scemama][] and [Thomas Applencourt][]
  1950. - *Kotlin* by [Sergey Mashkov][]
  1951. New styles:
  1952. - *Agate* by [Taufik Nurrohman][]
  1953. - *Darcula* by [JetBrains][]
  1954. - *Atelier Sulphurpool* by [Bram de Haan][]
  1955. - *Android Studio* by [Pedro Oliveira][]
  1956. Notable fixes and improvements to existing languages:
  1957. - ES6 features in JavaScript are better supported now by [Gu Yiling][].
  1958. - Swift now recognizes body-less method definitions.
  1959. - Single expression functions `def foo, do: ... ` now work in Elixir.
  1960. - More uniform detection of built-in classes in Objective C.
  1961. - Fixes for number literals and processor directives in Rust.
  1962. - HTML `<script>` tag now allows any language, not just JavaScript.
  1963. - Multi-line comments are supported now in MatLab.
  1964. [Taufik Nurrohman]: https://github.com/taufik-nurrohman
  1965. [Jet Brains]: https://www.jetbrains.com/
  1966. [Peter Piwowarski]: https://github.com/oldlaptop
  1967. [Kenta Sato]: https://github.com/bicycle1885
  1968. [Bram de Haan]: https://github.com/atelierbram
  1969. [Raivo Laanemets]: https://github.com/rla
  1970. [Alexis Hénaut]: https://github.com/AlexisNo
  1971. [Anthony Scemama]: https://github.com/scemama
  1972. [Pedro Oliveira]: https://github.com/kanytu
  1973. [Gu Yiling]: https://github.com/Justineo
  1974. [Sergey Mashkov]: https://github.com/cy6erGn0m
  1975. [Thomas Applencourt]: https://github.com/TApplencourt
  1976. ## Version 8.4
  1977. We've got the new [demo page][]! The obvious new feature is the new look, but
  1978. apart from that it's got smarter: by presenting languages in groups it avoids
  1979. running 10000 highlighting attempts after first load which was slowing it down
  1980. and giving bad overall impression. It is now also being generated from test
  1981. code snippets so the authors of new languages don't have to update both tests
  1982. and the demo page with the same thing.
  1983. Other notable changes:
  1984. - The `template_comment` class is gone in favor of the more general `comment`.
  1985. - Number parsing unified and improved across languages.
  1986. - C++, Java and C# now use unified grammar to highlight titles in
  1987. function/method definitions.
  1988. - The browser build is now usable as an AMD module, there's no separate build
  1989. target for that anymore.
  1990. - OCaml has got a [comprehensive overhaul][ocaml] by [Mickaël Delahaye][].
  1991. - Clojure's data structures and literals are now highlighted outside of lists
  1992. and we can now highlight Clojure's REPL sessions.
  1993. New languages:
  1994. - *AspectJ* by [Hakan Özler][]
  1995. - *STEP Part 21* by [Adam Joseph Cook][]
  1996. - *SML* derived by [Edwin Dalorzo][] from OCaml definition
  1997. - *Mercury* by [mucaho][]
  1998. - *Smali* by [Dennis Titze][]
  1999. - *Verilog* by [Jon Evans][]
  2000. - *Stata* by [Brian Quistorff][]
  2001. [Hakan Özler]: https://github.com/ozlerhakan
  2002. [Adam Joseph Cook]: https://github.com/adamjcook
  2003. [demo page]: https://highlightjs.org/static/demo/
  2004. [Ivan Sagalaev]: https://github.com/isagalaev
  2005. [Edwin Dalorzo]: https://github.com/edalorzo
  2006. [mucaho]: https://github.com/mucaho
  2007. [Dennis Titze]: https://github.com/titze
  2008. [Jon Evans]: https://github.com/craftyjon
  2009. [Brian Quistorff]: https://github.com/bquistorff
  2010. [ocaml]: https://github.com/isagalaev/highlight.js/pull/608#issue-46190207
  2011. [Mickaël Delahaye]: https://github.com/polazarus
  2012. ## Version 8.3
  2013. We streamlined our tool chain, it is now based entirely on node.js instead of
  2014. being a mix of node.js, Python and Java. The build script options and arguments
  2015. remained the same, and we've noted all the changes in the [documentation][b].
  2016. Apart from reducing complexity, the new build script is also faster from not
  2017. having to start Java machine repeatedly. The credits for the work go to [Jeremy
  2018. Hull][].
  2019. Some notable fixes:
  2020. - PHP and JavaScript mixed in HTML now live happily with each other.
  2021. - JavaScript regexes now understand ES6 flags "u" and "y".
  2022. - `throw` keyword is no longer detected as a method name in Java.
  2023. - Fixed parsing of numbers and symbols in Clojure thanks to [input from Ivan
  2024. Kleshnin][ik].
  2025. New languages in this release:
  2026. - *Less* by [Max Mikhailov][]
  2027. - *Stylus* by [Bryant Williams][]
  2028. - *Tcl* by [Radek Liska][]
  2029. - *Puppet* by [Jose Molina Colmenero][]
  2030. - *Processing* by [Erik Paluka][]
  2031. - *Twig* templates by [Luke Holder][]
  2032. - *PowerShell* by [David Mohundro][], based on [the work of Nicholas Blumhardt][ps]
  2033. - *XL* by [Christophe de Dinechin][]
  2034. - *LiveScript* by [Taneli Vatanen][] and [Jen Evers-Corvina][]
  2035. - *ERB* (Ruby in HTML) by [Lucas Mazza][]
  2036. - *Roboconf* by [Vincent Zurczak][]
  2037. [b]: http://highlightjs.readthedocs.org/en/latest/building-testing.html
  2038. [Jeremy Hull]: https://github.com/sourrust
  2039. [ik]: https://twitter.com/IvanKleshnin/status/514041599484231680
  2040. [Max Mikhailov]: https://github.com/seven-phases-max
  2041. [Bryant Williams]: https://github.com/scien
  2042. [Radek Liska]: https://github.com/Nindaleth
  2043. [Jose Molina Colmenero]: https://github.com/Moliholy
  2044. [Erik Paluka]: https://github.com/paluka
  2045. [Luke Holder]: https://github.com/lukeholder
  2046. [David Mohundro]: https://github.com/drmohundro
  2047. [ps]: https://github.com/OctopusDeploy/Library/blob/master/app/shared/presentation/highlighting/powershell.js
  2048. [Christophe de Dinechin]: https://github.com/c3d
  2049. [Taneli Vatanen]: https://github.com/Daiz-
  2050. [Jen Evers-Corvina]: https://github.com/sevvie
  2051. [Lucas Mazza]: https://github.com/lucasmazza
  2052. [Vincent Zurczak]: https://github.com/vincent-zurczak
  2053. ## Version 8.2
  2054. We've finally got [real tests][test] and [continuous testing on Travis][ci]
  2055. thanks to [Jeremy Hull][] and [Chris Eidhof][]. The tests designed to cover
  2056. everything: language detection, correct parsing of individual language features
  2057. and various special cases. This is a very important change that gives us
  2058. confidence in extending language definitions and refactoring library core.
  2059. We're going to redesign the old [demo/test suite][demo] into an interactive
  2060. demo web app. If you're confident front-end developer or designer and want to
  2061. help us with it, drop a comment into [the issue][#542] on GitHub.
  2062. [test]: https://github.com/isagalaev/highlight.js/tree/master/test
  2063. [demo]: https://highlightjs.org/static/test.html
  2064. [#542]: https://github.com/isagalaev/highlight.js/issues/542
  2065. [ci]: https://travis-ci.org/isagalaev/highlight.js
  2066. [Jeremy Hull]: https://github.com/sourrust
  2067. [Chris Eidhof]: https://github.com/chriseidhof
  2068. As usually there's a handful of new languages in this release:
  2069. - *Groovy* by [Guillaume Laforge][]
  2070. - *Dart* by [Maxim Dikun][]
  2071. - *Dust* by [Michael Allen][]
  2072. - *Scheme* by [JP Verkamp][]
  2073. - *G-Code* by [Adam Joseph Cook][]
  2074. - *Q* from Kx Systems by [Sergey Vidyuk][]
  2075. [Guillaume Laforge]: https://github.com/glaforge
  2076. [Maxim Dikun]: https://github.com/dikmax
  2077. [Michael Allen]: https://github.com/bfui
  2078. [JP Verkamp]: https://github.com/jpverkamp
  2079. [Adam Joseph Cook]: https://github.com/adamjcook
  2080. [Sergey Vidyuk]: https://github.com/sv
  2081. Other improvements:
  2082. - [Erik Osheim][] heavily reworked Scala definitions making it richer.
  2083. - [Lucas Mazza][] fixed Ruby hashes highlighting
  2084. - Lisp variants (Lisp, Clojure and Scheme) are unified in regard to naming
  2085. the first symbol in parentheses: it's "keyword" in general case and also
  2086. "built_in" for built-in functions in Clojure and Scheme.
  2087. [Erik Osheim]: https://github.com/non
  2088. [Lucas Mazza]: https://github.com/lucasmazza
  2089. ## Version 8.1
  2090. New languages:
  2091. - *Gherkin* by [Sam Pikesley][]
  2092. - *Elixir* by [Josh Adams][]
  2093. - *NSIS* by [Jan T. Sott][]
  2094. - *VIM script* by [Jun Yang][]
  2095. - *Protocol Buffers* by [Dan Tao][]
  2096. - *Nix* by [Domen Kožar][]
  2097. - *x86asm* by [innocenat][]
  2098. - *Cap'n Proto* and *Thrift* by [Oleg Efimov][]
  2099. - *Monkey* by [Arthur Bikmullin][]
  2100. - *TypeScript* by [Panu Horsmalahti][]
  2101. - *Nimrod* by [Flaviu Tamas][]
  2102. - *Gradle* by [Damian Mee][]
  2103. - *Haxe* by [Christopher Kaster][]
  2104. - *Swift* by [Chris Eidhof][] and [Nate Cook][]
  2105. New styles:
  2106. - *Kimbie*, light and dark variants by [Jan T. Sott][]
  2107. - *Color brewer* by [Fabrício Tavares de Oliveira][]
  2108. - *Codepen.io embed* by [Justin Perry][]
  2109. - *Hybrid* by [Nic West][]
  2110. [Sam Pikesley]: https://github.com/pikesley
  2111. [Sindre Sorhus]: https://github.com/sindresorhus
  2112. [Josh Adams]: https://github.com/knewter
  2113. [Jan T. Sott]: https://github.com/idleberg
  2114. [Jun Yang]: https://github.com/harttle
  2115. [Dan Tao]: https://github.com/dtao
  2116. [Domen Kožar]: https://github.com/iElectric
  2117. [innocenat]: https://github.com/innocenat
  2118. [Oleg Efimov]: https://github.com/Sannis
  2119. [Arthur Bikmullin]: https://github.com/devolonter
  2120. [Panu Horsmalahti]: https://github.com/panuhorsmalahti
  2121. [Flaviu Tamas]: https://github.com/flaviut
  2122. [Damian Mee]: https://github.com/chester1000
  2123. [Christopher Kaster]: http://christopher.kaster.ws
  2124. [Fabrício Tavares de Oliveira]: https://github.com/fabriciotav
  2125. [Justin Perry]: https://github.com/ourmaninamsterdam
  2126. [Nic West]: https://github.com/nicwest
  2127. [Chris Eidhof]: https://github.com/chriseidhof
  2128. [Nate Cook]: https://github.com/natecook1000
  2129. Other improvements:
  2130. - The README is heavily reworked and brought up to date by [Jeremy Hull][].
  2131. - Added [`listLanguages()`][ll] method in the API.
  2132. - Improved C/C++/C# detection.
  2133. - Added a bunch of new language aliases, documented the existing ones. Thanks to
  2134. [Sindre Sorhus][] for background research.
  2135. - Added phrasal English words to boost relevance in comments.
  2136. - Many improvements to SQL definition made by [Heiko August][],
  2137. [Nikolay Lisienko][] and [Travis Odom][].
  2138. - The shorter `lang-` prefix for language names in HTML classes supported
  2139. alongside `language-`. Thanks to [Jeff Escalante][].
  2140. - Ruby's got support for interactive console sessions. Thanks to
  2141. [Pascal Hurni][].
  2142. - Added built-in functions for R language. Thanks to [Artem A. Klevtsov][].
  2143. - Rust's got definition for lifetime parameters and improved string syntax.
  2144. Thanks to [Roman Shmatov][].
  2145. - Various improvements to Objective-C definition by [Matt Diephouse][].
  2146. - Fixed highlighting of generics in Java.
  2147. [ll]: http://highlightjs.readthedocs.org/en/latest/api.html#listlanguages
  2148. [Sindre Sorhus]: https://github.com/sindresorhus
  2149. [Heiko August]: https://github.com/auge8472
  2150. [Nikolay Lisienko]: https://github.com/neor-ru
  2151. [Travis Odom]: https://github.com/Burstaholic
  2152. [Jeff Escalante]: https://github.com/jenius
  2153. [Pascal Hurni]: https://github.com/phurni
  2154. [Jiyin Yiyong]: https://github.com/jiyinyiyong
  2155. [Artem A. Klevtsov]: https://github.com/unikum
  2156. [Roman Shmatov]: https://github.com/shmatov
  2157. [Jeremy Hull]: https://github.com/sourrust
  2158. [Matt Diephouse]: https://github.com/mdiep
  2159. ## Version 8.0
  2160. This new major release is quite a big overhaul bringing both new features and
  2161. some backwards incompatible changes. However, chances are that the majority of
  2162. users won't be affected by the latter: the basic scenario described in the
  2163. README is left intact.
  2164. Here's what did change in an incompatible way:
  2165. - We're now prefixing all classes located in [CSS classes reference][cr] with
  2166. `hljs-`, by default, because some class names would collide with other
  2167. people's stylesheets. If you were using an older version, you might still want
  2168. the previous behavior, but still want to upgrade. To suppress this new
  2169. behavior, you would initialize like so:
  2170. ```html
  2171. <script type="text/javascript">
  2172. hljs.configure({classPrefix: ''});
  2173. hljs.initHighlightingOnLoad();
  2174. </script>
  2175. ```
  2176. - `tabReplace` and `useBR` that were used in different places are also unified
  2177. into the global options object and are to be set using `configure(options)`.
  2178. This function is documented in our [API docs][]. Also note that these
  2179. parameters are gone from `highlightBlock` and `fixMarkup` which are now also
  2180. rely on `configure`.
  2181. - We removed public-facing (though undocumented) object `hljs.LANGUAGES` which
  2182. was used to register languages with the library in favor of two new methods:
  2183. `registerLanguage` and `getLanguage`. Both are documented in our [API docs][].
  2184. - Result returned from `highlight` and `highlightAuto` no longer contains two
  2185. separate attributes contributing to relevance score, `relevance` and
  2186. `keyword_count`. They are now unified in `relevance`.
  2187. Another technically compatible change that nonetheless might need attention:
  2188. - The structure of the NPM package was refactored, so if you had installed it
  2189. locally, you'll have to update your paths. The usual `require('highlight.js')`
  2190. works as before. This is contributed by [Dmitry Smolin][].
  2191. New features:
  2192. - Languages now can be recognized by multiple names like "js" for JavaScript or
  2193. "html" for, well, HTML (which earlier insisted on calling it "xml"). These
  2194. aliases can be specified in the class attribute of the code container in your
  2195. HTML as well as in various API calls. For now there are only a few very common
  2196. aliases but we'll expand it in the future. All of them are listed in the
  2197. [class reference][cr].
  2198. - Language detection can now be restricted to a subset of languages relevant in
  2199. a given context — a web page or even a single highlighting call. This is
  2200. especially useful for node.js build that includes all the known languages.
  2201. Another example is a StackOverflow-style site where users specify languages
  2202. as tags rather than in the markdown-formatted code snippets. This is
  2203. documented in the [API reference][] (see methods `highlightAuto` and
  2204. `configure`).
  2205. - Language definition syntax streamlined with [variants][] and
  2206. [beginKeywords][].
  2207. New languages and styles:
  2208. - *Oxygene* by [Carlo Kok][]
  2209. - *Mathematica* by [Daniel Kvasnička][]
  2210. - *Autohotkey* by [Seongwon Lee][]
  2211. - *Atelier* family of styles in 10 variants by [Bram de Haan][]
  2212. - *Paraíso* styles by [Jan T. Sott][]
  2213. Miscellaneous improvements:
  2214. - Highlighting `=>` prompts in Clojure.
  2215. - [Jeremy Hull][] fixed a lot of styles for consistency.
  2216. - Finally, highlighting PHP and HTML [mixed in peculiar ways][php-html].
  2217. - Objective C and C# now properly highlight titles in method definition.
  2218. - Big overhaul of relevance counting for a number of languages. Please do report
  2219. bugs about mis-detection of non-trivial code snippets!
  2220. [API reference]: http://highlightjs.readthedocs.org/en/latest/api.html
  2221. [cr]: http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html
  2222. [api docs]: http://highlightjs.readthedocs.org/en/latest/api.html
  2223. [variants]: https://groups.google.com/d/topic/highlightjs/VoGC9-1p5vk/discussion
  2224. [beginKeywords]: https://github.com/isagalaev/highlight.js/commit/6c7fdea002eb3949577a85b3f7930137c7c3038d
  2225. [php-html]: https://twitter.com/highlightjs/status/408890903017689088
  2226. [Carlo Kok]: https://github.com/carlokok
  2227. [Bram de Haan]: https://github.com/atelierbram
  2228. [Daniel Kvasnička]: https://github.com/dkvasnicka
  2229. [Dmitry Smolin]: https://github.com/dimsmol
  2230. [Jeremy Hull]: https://github.com/sourrust
  2231. [Seongwon Lee]: https://github.com/dlimpid
  2232. [Jan T. Sott]: https://github.com/idleberg
  2233. ## Version 7.5
  2234. A catch-up release dealing with some of the accumulated contributions. This one
  2235. is probably will be the last before the 8.0 which will be slightly backwards
  2236. incompatible regarding some advanced use-cases.
  2237. One outstanding change in this version is the addition of 6 languages to the
  2238. [hosted script][d]: Markdown, ObjectiveC, CoffeeScript, Apache, Nginx and
  2239. Makefile. It now weighs about 6K more but we're going to keep it under 30K.
  2240. New languages:
  2241. - OCaml by [Mehdi Dogguy][mehdid] and [Nicolas Braud-Santoni][nbraud]
  2242. - [LiveCode Server][lcs] by [Ralf Bitter][revig]
  2243. - Scilab by [Sylvestre Ledru][sylvestre]
  2244. - basic support for Makefile by [Ivan Sagalaev][isagalaev]
  2245. Improvements:
  2246. - Ruby's got support for characters like `?A`, `?1`, `?\012` etc. and `%r{..}`
  2247. regexps.
  2248. - Clojure now allows a function call in the beginning of s-expressions
  2249. `(($filter "myCount") (arr 1 2 3 4 5))`.
  2250. - Haskell's got new keywords and now recognizes more things like pragmas,
  2251. preprocessors, modules, containers, FFIs etc. Thanks to [Zena Treep][treep]
  2252. for the implementation and to [Jeremy Hull][sourrust] for guiding it.
  2253. - Miscellaneous fixes in PHP, Brainfuck, SCSS, Asciidoc, CMake, Python and F#.
  2254. [mehdid]: https://github.com/mehdid
  2255. [nbraud]: https://github.com/nbraud
  2256. [revig]: https://github.com/revig
  2257. [lcs]: http://livecode.com/developers/guides/server/
  2258. [sylvestre]: https://github.com/sylvestre
  2259. [isagalaev]: https://github.com/isagalaev
  2260. [treep]: https://github.com/treep
  2261. [sourrust]: https://github.com/sourrust
  2262. [d]: http://highlightjs.org/download/
  2263. ## New core developers
  2264. The latest long period of almost complete inactivity in the project coincided
  2265. with growing interest to it led to a decision that now seems completely obvious:
  2266. we need more core developers.
  2267. So without further ado let me welcome to the core team two long-time
  2268. contributors: [Jeremy Hull][] and [Oleg
  2269. Efimov][].
  2270. Hope now we'll be able to work through stuff faster!
  2271. P.S. The historical commit is [here][1] for the record.
  2272. [Jeremy Hull]: https://github.com/sourrust
  2273. [Oleg Efimov]: https://github.com/sannis
  2274. [1]: https://github.com/isagalaev/highlight.js/commit/f3056941bda56d2b72276b97bc0dd5f230f2473f
  2275. ## Version 7.4
  2276. This long overdue version is a snapshot of the current source tree with all the
  2277. changes that happened during the past year. Sorry for taking so long!
  2278. Along with the changes in code highlight.js has finally got its new home at
  2279. <http://highlightjs.org/>, moving from its cradle on Software Maniacs which it
  2280. outgrew a long time ago. Be sure to report any bugs about the site to
  2281. <mailto:info@highlightjs.org>.
  2282. On to what's new…
  2283. New languages:
  2284. - Handlebars templates by [Robin Ward][]
  2285. - Oracle Rules Language by [Jason Jacobson][]
  2286. - F# by [Joans Follesø][]
  2287. - AsciiDoc and Haml by [Dan Allen][]
  2288. - Lasso by [Eric Knibbe][]
  2289. - SCSS by [Kurt Emch][]
  2290. - VB.NET by [Poren Chiang][]
  2291. - Mizar by [Kelley van Evert][]
  2292. [Robin Ward]: https://github.com/eviltrout
  2293. [Jason Jacobson]: https://github.com/jayce7
  2294. [Joans Follesø]: https://github.com/follesoe
  2295. [Dan Allen]: https://github.com/mojavelinux
  2296. [Eric Knibbe]: https://github.com/EricFromCanada
  2297. [Kurt Emch]: https://github.com/kemch
  2298. [Poren Chiang]: https://github.com/rschiang
  2299. [Kelley van Evert]: https://github.com/kelleyvanevert
  2300. New style themes:
  2301. - Monokai Sublime by [noformnocontent][]
  2302. - Railscasts by [Damien White][]
  2303. - Obsidian by [Alexander Marenin][]
  2304. - Docco by [Simon Madine][]
  2305. - Mono Blue by [Ivan Sagalaev][] (uses a single color hue for everything)
  2306. - Foundation by [Dan Allen][]
  2307. [noformnocontent]: http://nn.mit-license.org/
  2308. [Damien White]: https://github.com/visoft
  2309. [Alexander Marenin]: https://github.com/ioncreature
  2310. [Simon Madine]: https://github.com/thingsinjars
  2311. [Ivan Sagalaev]: https://github.com/isagalaev
  2312. Other notable changes:
  2313. - Corrected many corner cases in CSS.
  2314. - Dropped Python 2 version of the build tool.
  2315. - Implemented building for the AMD format.
  2316. - Updated Rust keywords (thanks to [Dmitry Medvinsky][]).
  2317. - Literal regexes can now be used in language definitions.
  2318. - CoffeeScript highlighting is now significantly more robust and rich due to
  2319. input from [Cédric Néhémie][].
  2320. [Dmitry Medvinsky]: https://github.com/dmedvinsky
  2321. [Cédric Néhémie]: https://github.com/abe33
  2322. ## Version 7.3
  2323. - Since this version highlight.js no longer works in IE version 8 and older.
  2324. It's made it possible to reduce the library size and dramatically improve code
  2325. readability and made it easier to maintain. Time to go forward!
  2326. - New languages: AppleScript (by [Nathan Grigg][ng] and [Dr. Drang][dd]) and
  2327. Brainfuck (by [Evgeny Stepanischev][bolk]).
  2328. - Improvements to existing languages:
  2329. - interpreter prompt in Python (`>>>` and `...`)
  2330. - @-properties and classes in CoffeeScript
  2331. - E4X in JavaScript (by [Oleg Efimov][oe])
  2332. - new keywords in Perl (by [Kirk Kimmel][kk])
  2333. - big Ruby syntax update (by [Vasily Polovnyov][vast])
  2334. - small fixes in Bash
  2335. - Also Oleg Efimov did a great job of moving all the docs for language and style
  2336. developers and contributors from the old wiki under the source code in the
  2337. "docs" directory. Now these docs are nicely presented at
  2338. <http://highlightjs.readthedocs.org/>.
  2339. [ng]: https://github.com/nathan11g
  2340. [dd]: https://github.com/drdrang
  2341. [bolk]: https://github.com/bolknote
  2342. [oe]: https://github.com/Sannis
  2343. [kk]: https://github.com/kimmel
  2344. [vast]: https://github.com/vast
  2345. ## Version 7.2
  2346. A regular bug-fix release without any significant new features. Enjoy!
  2347. ## Version 7.1
  2348. A Summer crop:
  2349. - [Marc Fornos][mf] made the definition for Clojure along with the matching
  2350. style Rainbow (which, of course, works for other languages too).
  2351. - CoffeeScript support continues to improve getting support for regular
  2352. expressions.
  2353. - Yoshihide Jimbo ported to highlight.js [five Tomorrow styles][tm] from the
  2354. [project by Chris Kempson][tm0].
  2355. - Thanks to [Casey Duncun][cd] the library can now be built in the popular
  2356. [AMD format][amd].
  2357. - And last but not least, we've got a fair number of correctness and consistency
  2358. fixes, including a pretty significant refactoring of Ruby.
  2359. [mf]: https://github.com/mfornos
  2360. [tm]: http://jmblog.github.com/color-themes-for-highlightjs/
  2361. [tm0]: https://github.com/ChrisKempson/Tomorrow-Theme
  2362. [cd]: https://github.com/caseman
  2363. [amd]: http://requirejs.org/docs/whyamd.html
  2364. ## Version 7.0
  2365. The reason for the new major version update is a global change of keyword syntax
  2366. which resulted in the library getting smaller once again. For example, the
  2367. hosted build is 2K less than at the previous version while supporting two new
  2368. languages.
  2369. Notable changes:
  2370. - The library now works not only in a browser but also with [node.js][]. It is
  2371. installable with `npm install highlight.js`. [API][] docs are available on our
  2372. wiki.
  2373. - The new unique feature (apparently) among syntax highlighters is highlighting
  2374. *HTTP* headers and an arbitrary language in the request body. The most useful
  2375. languages here are *XML* and *JSON* both of which highlight.js does support.
  2376. Here's [the detailed post][p] about the feature.
  2377. - Two new style themes: a dark "south" *[Pojoaque][]* by Jason Tate and an
  2378. emulation of*XCode* IDE by [Angel Olloqui][ao].
  2379. - Three new languages: *D* by [Aleksandar Ružičić][ar], *R* by [Joe Cheng][jc]
  2380. and *GLSL* by [Sergey Tikhomirov][st].
  2381. - *Nginx* syntax has become a million times smaller and more universal thanks to
  2382. remaking it in a more generic manner that doesn't require listing all the
  2383. directives in the known universe.
  2384. - Function titles are now highlighted in *PHP*.
  2385. - *Haskell* and *VHDL* were significantly reworked to be more rich and correct
  2386. by their respective maintainers [Jeremy Hull][sr] and [Igor Kalnitsky][ik].
  2387. And last but not least, many bugs have been fixed around correctness and
  2388. language detection.
  2389. Overall highlight.js currently supports 51 languages and 20 style themes.
  2390. [node.js]: http://nodejs.org/
  2391. [api]: http://softwaremaniacs.org/wiki/doku.php/highlight.js:api
  2392. [p]: http://softwaremaniacs.org/blog/2012/05/10/http-and-json-in-highlight-js/en/
  2393. [pojoaque]: http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html
  2394. [ao]: https://github.com/angelolloqui
  2395. [ar]: https://github.com/raleksandar
  2396. [jc]: https://github.com/jcheng5
  2397. [st]: https://github.com/tikhomirov
  2398. [sr]: https://github.com/sourrust
  2399. [ik]: https://github.com/ikalnitsky
  2400. ## Version 6.2
  2401. A lot of things happened in highlight.js since the last version! We've got nine
  2402. new contributors, the discussion group came alive, and the main branch on GitHub
  2403. now counts more than 350 followers. Here are most significant results coming
  2404. from all this activity:
  2405. - 5 (five!) new languages: Rust, ActionScript, CoffeeScript, MatLab and
  2406. experimental support for markdown. Thanks go to [Andrey Vlasovskikh][av],
  2407. [Alexander Myadzel][am], [Dmytrii Nagirniak][dn], [Oleg Efimov][oe], [Denis
  2408. Bardadym][db] and [John Crepezzi][jc].
  2409. - 2 new style themes: Monokai by [Luigi Maselli][lm] and stylistic imitation of
  2410. another well-known highlighter Google Code Prettify by [Aahan Krish][ak].
  2411. - A vast number of [correctness fixes and code refactorings][log], mostly made
  2412. by [Oleg Efimov][oe] and [Evgeny Stepanischev][es].
  2413. [av]: https://github.com/vlasovskikh
  2414. [am]: https://github.com/myadzel
  2415. [dn]: https://github.com/dnagir
  2416. [oe]: https://github.com/Sannis
  2417. [db]: https://github.com/btd
  2418. [jc]: https://github.com/seejohnrun
  2419. [lm]: http://grigio.org/
  2420. [ak]: https://github.com/geekpanth3r
  2421. [es]: https://github.com/bolknote
  2422. [log]: https://github.com/isagalaev/highlight.js/commits/
  2423. ## Version 6.1 — Solarized
  2424. [Jeremy Hull][jh] has implemented my dream feature — a port of [Solarized][]
  2425. style theme famous for being based on the intricate color theory to achieve
  2426. correct contrast and color perception. It is now available for highlight.js in
  2427. both variants — light and dark.
  2428. This version also adds a new original style Arta. Its author pumbur maintains a
  2429. [heavily modified fork of highlight.js][pb] on GitHub.
  2430. [jh]: https://github.com/sourrust
  2431. [solarized]: http://ethanschoonover.com/solarized
  2432. [pb]: https://github.com/pumbur/highlight.js
  2433. ## Version 6.0
  2434. New major version of the highlighter has been built on a significantly
  2435. refactored syntax. Due to this it's even smaller than the previous one while
  2436. supporting more languages!
  2437. New languages are:
  2438. - Haskell by [Jeremy Hull][sourrust]
  2439. - Erlang in two varieties — module and REPL — made collectively by [Nikolay
  2440. Zakharov][desh], [Dmitry Kovega][arhibot] and [Sergey Ignatov][ignatov]
  2441. - Objective C by [Valerii Hiora][vhbit]
  2442. - Vala by [Antono Vasiljev][antono]
  2443. - Go by [Stephan Kountso][steplg]
  2444. [sourrust]: https://github.com/sourrust
  2445. [desh]: http://desh.su/
  2446. [arhibot]: https://github.com/arhibot
  2447. [ignatov]: https://github.com/ignatov
  2448. [vhbit]: https://github.com/vhbit
  2449. [antono]: https://github.com/antono
  2450. [steplg]: https://github.com/steplg
  2451. Also this version is marginally faster and fixes a number of small long-standing
  2452. bugs.
  2453. Developer overview of the new language syntax is available in a [blog post about
  2454. recent beta release][beta].
  2455. [beta]: http://softwaremaniacs.org/blog/2011/04/25/highlight-js-60-beta/en/
  2456. P.S. New version is not yet available on a Yandex CDN, so for now you have to
  2457. download [your own copy][d].
  2458. [d]: /soft/highlight/en/download/
  2459. ## Version 5.14
  2460. Fixed bugs in HTML/XML detection and relevance introduced in previous
  2461. refactoring.
  2462. Also test.html now shows the second best result of language detection by
  2463. relevance.
  2464. ## Version 5.13
  2465. Past weekend began with a couple of simple additions for existing languages but
  2466. ended up in a big code refactoring bringing along nice improvements for language
  2467. developers.
  2468. ### For users
  2469. - Description of C++ has got new keywords from the upcoming [C++ 0x][] standard.
  2470. - Description of HTML has got new tags from [HTML 5][].
  2471. - CSS-styles have been unified to use consistent padding and also have lost
  2472. pop-outs with names of detected languages.
  2473. - [Igor Kalnitsky][ik] has sent two new language descriptions: CMake & VHDL.
  2474. This makes total number of languages supported by highlight.js to reach 35.
  2475. Bug fixes:
  2476. - Custom classes on `<pre>` tags are not being overridden anymore
  2477. - More correct highlighting of code blocks inside non-`<pre>` containers:
  2478. highlighter now doesn't insist on replacing them with its own container and
  2479. just replaces the contents.
  2480. - Small fixes in browser compatibility and heuristics.
  2481. [c++ 0x]: http://ru.wikipedia.org/wiki/C%2B%2B0x
  2482. [html 5]: http://en.wikipedia.org/wiki/HTML5
  2483. [ik]: http://kalnitsky.org.ua/
  2484. ### For developers
  2485. The most significant change is the ability to include language submodes right
  2486. under `contains` instead of defining explicit named submodes in the main array:
  2487. contains: [
  2488. 'string',
  2489. 'number',
  2490. {begin: '\\n', end: hljs.IMMEDIATE_RE}
  2491. ]
  2492. This is useful for auxiliary modes needed only in one place to define parsing.
  2493. Note that such modes often don't have `className` and hence won't generate a
  2494. separate `<span>` in the resulting markup. This is similar in effect to
  2495. `noMarkup: true`. All existing languages have been refactored accordingly.
  2496. Test file test.html has at last become a real test. Now it not only puts the
  2497. detected language name under the code snippet but also tests if it matches the
  2498. expected one. Test summary is displayed right above all language snippets.
  2499. ## CDN
  2500. Fine people at [Yandex][] agreed to host highlight.js on their big fast servers.
  2501. [Link up][l]!
  2502. [yandex]: http://yandex.com/
  2503. [l]: http://softwaremaniacs.org/soft/highlight/en/download/
  2504. ## Version 5.10 — "Paris".
  2505. Though I'm on a vacation in Paris, I decided to release a new version with a
  2506. couple of small fixes:
  2507. - Tomas Vitvar discovered that TAB replacement doesn't always work when used
  2508. with custom markup in code
  2509. - SQL parsing is even more rigid now and doesn't step over SmallTalk in tests
  2510. ## Version 5.9
  2511. A long-awaited version is finally released.
  2512. New languages:
  2513. - Andrew Fedorov made a definition for Lua
  2514. - a long-time highlight.js contributor [Peter Leonov][pl] made a definition for
  2515. Nginx config
  2516. - [Vladimir Moskva][vm] made a definition for TeX
  2517. [pl]: http://kung-fu-tzu.ru/
  2518. [vm]: http://fulc.ru/
  2519. Fixes for existing languages:
  2520. - [Loren Segal][ls] reworked the Ruby definition and added highlighting for
  2521. [YARD][] inline documentation
  2522. - the definition of SQL has become more solid and now it shouldn't be overly
  2523. greedy when it comes to language detection
  2524. [ls]: http://gnuu.org/
  2525. [yard]: http://yardoc.org/
  2526. The highlighter has become more usable as a library allowing to do highlighting
  2527. from initialization code of JS frameworks and in ajax methods (see.
  2528. readme.eng.txt).
  2529. Also this version drops support for the [WordPress][wp] plugin. Everyone is
  2530. welcome to [pick up its maintenance][p] if needed.
  2531. [wp]: http://wordpress.org/
  2532. [p]: http://bazaar.launchpad.net/~isagalaev/+junk/highlight/annotate/342/src/wp_highlight.js.php
  2533. ## Version 5.8
  2534. - Jan Berkel has contributed a definition for Scala. +1 to hotness!
  2535. - All CSS-styles are rewritten to work only inside `<pre>` tags to avoid
  2536. conflicts with host site styles.
  2537. ## Version 5.7.
  2538. Fixed escaping of quotes in VBScript strings.
  2539. ## Version 5.5
  2540. This version brings a small change: now .ini-files allow digits, underscores and
  2541. square brackets in key names.
  2542. ## Version 5.4
  2543. Fixed small but upsetting bug in the packer which caused incorrect highlighting
  2544. of explicitly specified languages. Thanks to Andrew Fedorov for precise
  2545. diagnostics!
  2546. ## Version 5.3
  2547. The version to fulfil old promises.
  2548. The most significant change is that highlight.js now preserves custom user
  2549. markup in code along with its own highlighting markup. This means that now it's
  2550. possible to use, say, links in code. Thanks to [Vladimir Dolzhenko][vd] for the
  2551. [initial proposal][1] and for making a proof-of-concept patch.
  2552. Also in this version:
  2553. - [Vasily Polovnyov][vp] has sent a GitHub-like style and has implemented
  2554. support for CSS @-rules and Ruby symbols.
  2555. - Yura Zaripov has sent two styles: Brown Paper and School Book.
  2556. - Oleg Volchkov has sent a definition for [Parser 3][p3].
  2557. [1]: http://softwaremaniacs.org/forum/highlightjs/6612/
  2558. [p3]: http://www.parser.ru/
  2559. [vp]: http://vasily.polovnyov.ru/
  2560. [vd]: http://dolzhenko.blogspot.com/
  2561. ## Version 5.2
  2562. - at last it's possible to replace indentation TABs with something sensible
  2563. (e.g. 2 or 4 spaces)
  2564. - new keywords and built-ins for 1C by Sergey Baranov
  2565. - a couple of small fixes to Apache highlighting
  2566. ## Version 5.1
  2567. This is one of those nice version consisting entirely of new and shiny
  2568. contributions!
  2569. - [Vladimir Ermakov][vooon] created highlighting for AVR Assembler
  2570. - [Ruslan Keba][rukeba] created highlighting for Apache config file. Also his
  2571. original visual style for it is now available for all highlight.js languages
  2572. under the name "Magula".
  2573. - [Shuen-Huei Guan][drake] (aka Drake) sent new keywords for RenderMan
  2574. languages. Also thanks go to [Konstantin Evdokimenko][ke] for his advice on
  2575. the matter.
  2576. [vooon]: http://vehq.ru/about/
  2577. [rukeba]: http://rukeba.com/
  2578. [drake]: http://drakeguan.org/
  2579. [ke]: http://k-evdokimenko.moikrug.ru/
  2580. ## Version 5.0
  2581. The main change in the new major version of highlight.js is a mechanism for
  2582. packing several languages along with the library itself into a single compressed
  2583. file. Now sites using several languages will load considerably faster because
  2584. the library won't dynamically include additional files while loading.
  2585. Also this version fixes a long-standing bug with Javascript highlighting that
  2586. couldn't distinguish between regular expressions and division operations.
  2587. And as usually there were a couple of minor correctness fixes.
  2588. Great thanks to all contributors! Keep using highlight.js.
  2589. ## Version 4.3
  2590. This version comes with two contributions from [Jason Diamond][jd]:
  2591. - language definition for C# (yes! it was a long-missed thing!)
  2592. - Visual Studio-like highlighting style
  2593. Plus there are a couple of minor bug fixes for parsing HTML and XML attributes.
  2594. [jd]: http://jason.diamond.name/weblog/
  2595. ## Version 4.2
  2596. The biggest news is highlighting for Lisp, courtesy of Vasily Polovnyov. It's
  2597. somewhat experimental meaning that for highlighting "keywords" it doesn't use
  2598. any pre-defined set of a Lisp dialect. Instead it tries to highlight first word
  2599. in parentheses wherever it makes sense. I'd like to ask people programming in
  2600. Lisp to confirm if it's a good idea and send feedback to [the forum][f].
  2601. Other changes:
  2602. - Smalltalk was excluded from DEFAULT_LANGUAGES to save traffic
  2603. - [Vladimir Epifanov][voldmar] has implemented javascript style switcher for
  2604. test.html
  2605. - comments now allowed inside Ruby function definition
  2606. - [MEL][] language from [Shuen-Huei Guan][drake]
  2607. - whitespace now allowed between `<pre>` and `<code>`
  2608. - better auto-detection of C++ and PHP
  2609. - HTML allows embedded VBScript (`<% .. %>`)
  2610. [f]: http://softwaremaniacs.org/forum/highlightjs/
  2611. [voldmar]: http://voldmar.ya.ru/
  2612. [mel]: http://en.wikipedia.org/wiki/Maya_Embedded_Language
  2613. [drake]: http://drakeguan.org/
  2614. ## Version 4.1
  2615. Languages:
  2616. - Bash from Vah
  2617. - DOS bat-files from Alexander Makarov (Sam)
  2618. - Diff files from Vasily Polovnyov
  2619. - Ini files from myself though initial idea was from Sam
  2620. Styles:
  2621. - Zenburn from Vladimir Epifanov, this is an imitation of a
  2622. [well-known theme for Vim][zenburn].
  2623. - Ascetic from myself, as a realization of ideals of non-flashy highlighting:
  2624. just one color in only three gradations :-)
  2625. In other news. [One small bug][bug] was fixed, built-in keywords were added for
  2626. Python and C++ which improved auto-detection for the latter (it was shame that
  2627. [my wife's blog][alenacpp] had issues with it from time to time). And lastly
  2628. thanks go to Sam for getting rid of my stylistic comments in code that were
  2629. getting in the way of [JSMin][].
  2630. [zenburn]: http://en.wikipedia.org/wiki/Zenburn
  2631. [alenacpp]: http://alenacpp.blogspot.com/
  2632. [bug]: http://softwaremaniacs.org/forum/viewtopic.php?id=1823
  2633. [jsmin]: http://code.google.com/p/jsmin-php/
  2634. ## Version 4.0
  2635. New major version is a result of vast refactoring and of many contributions.
  2636. Visible new features:
  2637. - Highlighting of embedded languages. Currently is implemented highlighting of
  2638. Javascript and CSS inside HTML.
  2639. - Bundled 5 ready-made style themes!
  2640. Invisible new features:
  2641. - Highlight.js no longer pollutes global namespace. Only one object and one
  2642. function for backward compatibility.
  2643. - Performance is further increased by about 15%.
  2644. Changing of a major version number caused by a new format of language definition
  2645. files. If you use some third-party language files they should be updated.
  2646. ## Version 3.5
  2647. A very nice version in my opinion fixing a number of small bugs and slightly
  2648. increased speed in a couple of corner cases. Thanks to everybody who reports
  2649. bugs in he [forum][f] and by email!
  2650. There is also a new language — XML. A custom XML formerly was detected as HTML
  2651. and didn't highlight custom tags. In this version I tried to make custom XML to
  2652. be detected and highlighted by its own rules. Which by the way include such
  2653. things as CDATA sections and processing instructions (`<? ... ?>`).
  2654. [f]: http://softwaremaniacs.org/forum/viewforum.php?id=6
  2655. ## Version 3.3
  2656. [Vladimir Gubarkov][xonix] has provided an interesting and useful addition.
  2657. File export.html contains a little program that shows and allows to copy and
  2658. paste an HTML code generated by the highlighter for any code snippet. This can
  2659. be useful in situations when one can't use the script itself on a site.
  2660. [xonix]: http://xonixx.blogspot.com/
  2661. ## Version 3.2 consists completely of contributions:
  2662. - Vladimir Gubarkov has described SmallTalk
  2663. - Yuri Ivanov has described 1C
  2664. - Peter Leonov has packaged the highlighter as a Firefox extension
  2665. - Vladimir Ermakov has compiled a mod for phpBB
  2666. Many thanks to you all!
  2667. ## Version 3.1
  2668. Three new languages are available: Django templates, SQL and Axapta. The latter
  2669. two are sent by [Dmitri Roudakov][1]. However I've almost entirely rewrote an
  2670. SQL definition but I'd never started it be it from the ground up :-)
  2671. The engine itself has got a long awaited feature of grouping keywords
  2672. ("keyword", "built-in function", "literal"). No more hacks!
  2673. [1]: http://roudakov.ru/
  2674. ## Version 3.0
  2675. It is major mainly because now highlight.js has grown large and has become
  2676. modular. Now when you pass it a list of languages to highlight it will
  2677. dynamically load into a browser only those languages.
  2678. Also:
  2679. - Konstantin Evdokimenko of [RibKit][] project has created a highlighting for
  2680. RenderMan Shading Language and RenderMan Interface Bytestream. Yay for more
  2681. languages!
  2682. - Heuristics for C++ and HTML got better.
  2683. - I've implemented (at last) a correct handling of backslash escapes in C-like
  2684. languages.
  2685. There is also a small backwards incompatible change in the new version. The
  2686. function initHighlighting that was used to initialize highlighting instead of
  2687. initHighlightingOnLoad a long time ago no longer works. If you by chance still
  2688. use it — replace it with the new one.
  2689. [RibKit]: http://ribkit.sourceforge.net/
  2690. ## Version 2.9
  2691. Highlight.js is a parser, not just a couple of regular expressions. That said
  2692. I'm glad to announce that in the new version 2.9 has support for:
  2693. - in-string substitutions for Ruby -- `#{...}`
  2694. - strings from from numeric symbol codes (like #XX) for Delphi
  2695. ## Version 2.8
  2696. A maintenance release with more tuned heuristics. Fully backwards compatible.
  2697. ## Version 2.7
  2698. - Nikita Ledyaev presents highlighting for VBScript, yay!
  2699. - A couple of bugs with escaping in strings were fixed thanks to Mickle
  2700. - Ongoing tuning of heuristics
  2701. Fixed bugs were rather unpleasant so I encourage everyone to upgrade!
  2702. ## Version 2.4
  2703. - Peter Leonov provides another improved highlighting for Perl
  2704. - Javascript gets a new kind of keywords — "literals". These are the words
  2705. "true", "false" and "null"
  2706. Also highlight.js homepage now lists sites that use the library. Feel free to
  2707. add your site by [dropping me a message][mail] until I find the time to build a
  2708. submit form.
  2709. [mail]: mailto:Maniac@SoftwareManiacs.Org
  2710. ## Version 2.3
  2711. This version fixes IE breakage in previous version. My apologies to all who have
  2712. already downloaded that one!
  2713. ## Version 2.2
  2714. - added highlighting for Javascript
  2715. - at last fixed parsing of Delphi's escaped apostrophes in strings
  2716. - in Ruby fixed highlighting of keywords 'def' and 'class', same for 'sub' in
  2717. Perl
  2718. ## Version 2.0
  2719. - Ruby support by [Anton Kovalyov][ak]
  2720. - speed increased by orders of magnitude due to new way of parsing
  2721. - this same way allows now correct highlighting of keywords in some tricky
  2722. places (like keyword "End" at the end of Delphi classes)
  2723. [ak]: http://anton.kovalyov.net/
  2724. ## Version 1.0
  2725. Version 1.0 of javascript syntax highlighter is released!
  2726. It's the first version available with English description. Feel free to post
  2727. your comments and question to [highlight.js forum][forum]. And don't be afraid
  2728. if you find there some fancy Cyrillic letters -- it's for Russian users too :-)
  2729. [forum]: http://softwaremaniacs.org/forum/viewforum.php?id=6