@ng-doc/utils 17.6.3 → 17.6.5

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