rapipdf 2.1.1 → 3.0.0

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.
Files changed (173) hide show
  1. package/README.md +66 -14
  2. package/dist/chunks/generate-BQLGaRvK.js +386 -0
  3. package/dist/chunks/generate-BQLGaRvK.js.LICENSE.txt +224 -0
  4. package/dist/chunks/localize-CRvDVkIz.js +8 -0
  5. package/dist/node.js +13096 -0
  6. package/dist/node.js.LICENSE.txt +195 -0
  7. package/dist/rapipdf-min.js +352 -90
  8. package/dist/rapipdf-min.js.LICENSE.txt +224 -0
  9. package/dist/rapipdf.js +69 -0
  10. package/package.json +58 -52
  11. package/src/node.d.ts +82 -0
  12. package/src/rapipdf.d.ts +50 -0
  13. package/.babelrc +0 -11
  14. package/.eslintrc +0 -28
  15. package/dist/index.html +0 -48
  16. package/dist/index.html.gz +0 -0
  17. package/dist/rapipdf-min.js.gz +0 -0
  18. package/dist/rapipdf-min.js.map +0 -1
  19. package/dist/rapipdf-min.js.map.gz +0 -0
  20. package/dist/report.html +0 -67
  21. package/docs/examples/example1.html +0 -68
  22. package/docs/examples/list.html +0 -27
  23. package/docs/examples/rapidoc-regular.woff2 +0 -0
  24. package/docs/examples/rapidoc-semi-bold.woff2 +0 -0
  25. package/docs/examples/roboto-mono-bold.woff2 +0 -0
  26. package/docs/examples/roboto-mono-regular.woff2 +0 -0
  27. package/docs/highlight/CHANGES.md +0 -1803
  28. package/docs/highlight/LICENSE +0 -24
  29. package/docs/highlight/README.md +0 -188
  30. package/docs/highlight/README.ru.md +0 -142
  31. package/docs/highlight/highlight.pack.js +0 -2
  32. package/docs/highlight/styles/a11y-dark.css +0 -99
  33. package/docs/highlight/styles/a11y-light.css +0 -99
  34. package/docs/highlight/styles/agate.css +0 -108
  35. package/docs/highlight/styles/an-old-hope.css +0 -89
  36. package/docs/highlight/styles/androidstudio.css +0 -66
  37. package/docs/highlight/styles/arduino-light.css +0 -88
  38. package/docs/highlight/styles/arta.css +0 -73
  39. package/docs/highlight/styles/ascetic.css +0 -45
  40. package/docs/highlight/styles/atelier-cave-dark.css +0 -83
  41. package/docs/highlight/styles/atelier-cave-light.css +0 -85
  42. package/docs/highlight/styles/atelier-dune-dark.css +0 -69
  43. package/docs/highlight/styles/atelier-dune-light.css +0 -69
  44. package/docs/highlight/styles/atelier-estuary-dark.css +0 -84
  45. package/docs/highlight/styles/atelier-estuary-light.css +0 -84
  46. package/docs/highlight/styles/atelier-forest-dark.css +0 -69
  47. package/docs/highlight/styles/atelier-forest-light.css +0 -69
  48. package/docs/highlight/styles/atelier-heath-dark.css +0 -69
  49. package/docs/highlight/styles/atelier-heath-light.css +0 -69
  50. package/docs/highlight/styles/atelier-lakeside-dark.css +0 -69
  51. package/docs/highlight/styles/atelier-lakeside-light.css +0 -69
  52. package/docs/highlight/styles/atelier-plateau-dark.css +0 -84
  53. package/docs/highlight/styles/atelier-plateau-light.css +0 -84
  54. package/docs/highlight/styles/atelier-savanna-dark.css +0 -84
  55. package/docs/highlight/styles/atelier-savanna-light.css +0 -84
  56. package/docs/highlight/styles/atelier-seaside-dark.css +0 -69
  57. package/docs/highlight/styles/atelier-seaside-light.css +0 -69
  58. package/docs/highlight/styles/atelier-sulphurpool-dark.css +0 -69
  59. package/docs/highlight/styles/atelier-sulphurpool-light.css +0 -69
  60. package/docs/highlight/styles/atom-one-dark-reasonable.css +0 -77
  61. package/docs/highlight/styles/atom-one-dark.css +0 -96
  62. package/docs/highlight/styles/atom-one-light.css +0 -96
  63. package/docs/highlight/styles/brown-paper.css +0 -64
  64. package/docs/highlight/styles/brown-papersq.png +0 -0
  65. package/docs/highlight/styles/codepen-embed.css +0 -60
  66. package/docs/highlight/styles/color-brewer.css +0 -71
  67. package/docs/highlight/styles/darcula.css +0 -77
  68. package/docs/highlight/styles/dark.css +0 -63
  69. package/docs/highlight/styles/darkula.css +0 -6
  70. package/docs/highlight/styles/default.css +0 -99
  71. package/docs/highlight/styles/docco.css +0 -97
  72. package/docs/highlight/styles/dracula.css +0 -76
  73. package/docs/highlight/styles/far.css +0 -71
  74. package/docs/highlight/styles/foundation.css +0 -88
  75. package/docs/highlight/styles/github-gist.css +0 -71
  76. package/docs/highlight/styles/github.css +0 -99
  77. package/docs/highlight/styles/gml.css +0 -78
  78. package/docs/highlight/styles/googlecode.css +0 -89
  79. package/docs/highlight/styles/grayscale.css +0 -101
  80. package/docs/highlight/styles/gruvbox-dark.css +0 -108
  81. package/docs/highlight/styles/gruvbox-light.css +0 -108
  82. package/docs/highlight/styles/hopscotch.css +0 -83
  83. package/docs/highlight/styles/hybrid.css +0 -102
  84. package/docs/highlight/styles/idea.css +0 -97
  85. package/docs/highlight/styles/ir-black.css +0 -73
  86. package/docs/highlight/styles/isbl-editor-dark.css +0 -112
  87. package/docs/highlight/styles/isbl-editor-light.css +0 -112
  88. package/docs/highlight/styles/kimbie.dark.css +0 -74
  89. package/docs/highlight/styles/kimbie.light.css +0 -74
  90. package/docs/highlight/styles/lightfair.css +0 -87
  91. package/docs/highlight/styles/magula.css +0 -70
  92. package/docs/highlight/styles/mono-blue.css +0 -59
  93. package/docs/highlight/styles/monokai-sublime.css +0 -83
  94. package/docs/highlight/styles/monokai.css +0 -70
  95. package/docs/highlight/styles/nord.css +0 -309
  96. package/docs/highlight/styles/obsidian.css +0 -88
  97. package/docs/highlight/styles/ocean.css +0 -74
  98. package/docs/highlight/styles/paraiso-dark.css +0 -72
  99. package/docs/highlight/styles/paraiso-light.css +0 -72
  100. package/docs/highlight/styles/pojoaque.css +0 -83
  101. package/docs/highlight/styles/pojoaque.jpg +0 -0
  102. package/docs/highlight/styles/purebasic.css +0 -96
  103. package/docs/highlight/styles/qtcreator_dark.css +0 -83
  104. package/docs/highlight/styles/qtcreator_light.css +0 -83
  105. package/docs/highlight/styles/railscasts.css +0 -106
  106. package/docs/highlight/styles/rainbow.css +0 -85
  107. package/docs/highlight/styles/routeros.css +0 -108
  108. package/docs/highlight/styles/school-book.css +0 -72
  109. package/docs/highlight/styles/school-book.png +0 -0
  110. package/docs/highlight/styles/shades-of-purple.css +0 -97
  111. package/docs/highlight/styles/solarized-dark.css +0 -84
  112. package/docs/highlight/styles/solarized-light.css +0 -84
  113. package/docs/highlight/styles/sunburst.css +0 -102
  114. package/docs/highlight/styles/tomorrow-night-blue.css +0 -75
  115. package/docs/highlight/styles/tomorrow-night-bright.css +0 -74
  116. package/docs/highlight/styles/tomorrow-night-eighties.css +0 -74
  117. package/docs/highlight/styles/tomorrow-night.css +0 -75
  118. package/docs/highlight/styles/tomorrow.css +0 -72
  119. package/docs/highlight/styles/vs.css +0 -68
  120. package/docs/highlight/styles/vs2015.css +0 -115
  121. package/docs/highlight/styles/xcode.css +0 -104
  122. package/docs/highlight/styles/xt256.css +0 -92
  123. package/docs/highlight/styles/zenburn.css +0 -80
  124. package/docs/images/console.svg +0 -12
  125. package/docs/images/dark_ss.png +0 -0
  126. package/docs/images/easy.svg +0 -14
  127. package/docs/images/fast.svg +0 -8
  128. package/docs/images/gears.svg +0 -11
  129. package/docs/images/light_ss.png +0 -0
  130. package/docs/images/logo.png +0 -0
  131. package/docs/images/love.svg +0 -8
  132. package/docs/images/mask.svg +0 -16
  133. package/docs/images/mouse.svg +0 -7
  134. package/docs/images/pdf_sample1.png +0 -0
  135. package/docs/images/pdf_sample2.png +0 -0
  136. package/docs/images/webcomponent.svg +0 -13
  137. package/docs/index.css +0 -254
  138. package/docs/index.html +0 -376
  139. package/docs/rapipdf-min.js +0 -95
  140. package/docs/specs/allof-primitives.json +0 -80
  141. package/docs/specs/allof.json +0 -73
  142. package/docs/specs/anyof.json +0 -84
  143. package/docs/specs/basic.json +0 -75
  144. package/docs/specs/bitbucket.json +0 -12916
  145. package/docs/specs/data-types.yaml +0 -168
  146. package/docs/specs/gcloud.json +0 -1347
  147. package/docs/specs/no-server.json +0 -1
  148. package/docs/specs/oneof.json +0 -64
  149. package/docs/specs/petstore.json +0 -1042
  150. package/docs/specs/petstore_extended.yaml +0 -889
  151. package/docs/specs/temp.json +0 -53
  152. package/docs/specs/test-specs/large-models.json +0 -5998
  153. package/docs/specs/test-specs/long-descriptions.json +0 -5443
  154. package/docs/specs/test-specs/long-paths.json +0 -9562
  155. package/docs/specs/test-specs/oneof-allof-nested.yaml +0 -105
  156. package/docs/specs/test-specs/partial-spec-main.json +0 -29
  157. package/docs/specs/test-specs/partial.json +0 -17
  158. package/docs/specs/test-specs/petstore_complex_request.yaml +0 -335
  159. package/docs/specs/test-specs/petstore_experimental.yaml +0 -167
  160. package/docs/specs/test-specs/xxx-of-with-primitives-and-recursive-model.yaml +0 -952
  161. package/docs/welcome.html +0 -369
  162. package/index.html +0 -48
  163. package/logo.png +0 -0
  164. package/src/index.js +0 -3
  165. package/src/markdown.js +0 -120
  166. package/src/object-tree-gen.js +0 -370
  167. package/src/pdf-gen.js +0 -113
  168. package/src/pdf-parts-gen.js +0 -488
  169. package/src/rapipdf.js +0 -246
  170. package/src/spec-parser.js +0 -162
  171. package/src/table-layouts.js +0 -35
  172. package/src/vfs_fonts.js +0 -7
  173. package/webpack.config.js +0 -118
@@ -1,1803 +0,0 @@
1
- ## Master
2
-
3
- New languages:
4
-
5
- New styles:
6
-
7
- Improvements:
8
-
9
- ## Version 9.14.3
10
- New languages:
11
- none.
12
- New styles:
13
- none.
14
- Improvements:
15
- - new cli tool `hljs` - allows easier [building from command line](docs/building-testing.rst#building-a-bundle-from-the-command-line).
16
- - cpp: Fully support C++11 raw strings. (#1897)
17
- - Python: Treat False None and True as literals (#1920)
18
-
19
- ## Version 9.14.2
20
-
21
- New languages:
22
- none.
23
- New styles:
24
- none.
25
- Improvements:
26
- - *Gauss* fixed to stop global namespace pollution [Scott Hyndman][].
27
- - fix(Tcl): removed apostrophe string delimiters (don't exist)
28
-
29
- [Scott Hyndman]: https://github.com/shyndman
30
-
31
- ## Version 9.14.1
32
-
33
- New languages:
34
- none.
35
- New styles:
36
- none.
37
- Improvements:
38
- - Pony: language improvements (#1958)
39
-
40
- ## Version 9.14.0
41
-
42
- New languages:
43
- none.
44
- New styles:
45
- none.
46
- Improvements:
47
- - Pony: add missing "object" highlighting (#1932)
48
- - Added *XQuery* built-in functions, prolog declarations, as well as parsing of function bodies, computed and direct constructors, by [Duncan Paterson][]
49
- - fix(dart): Corrects highlighting with string interpolation. (#1946)
50
- - fix(swift): be eager on optional-using types (!/?) (#1919)
51
- - fix(tex): Changed cyrillic to unicode (IE11 throw SCRIPT5021) (#1601)
52
- - fix(JavaScript): Recognize get/set accessor keywords (#1940)
53
- - Fixed Dockerfile definition when using highlight continuation parameter, by [Laurent Voullemier][]
54
- - Added tests & new `annotation` and `verbatim` keywords to *Crystal*, by [Benoit de Chezelles][]
55
- - Added missing dockerfile markup tests, by [Laurent Voullemier][]
56
- Allow empty prompt text in clojure-repl, by [Egor Rogov][]
57
- - Fixed several issues with *Crystal* language definition, by [Johannes Müller][]
58
- - Added `C#` as an alias for *CSharp* language, by [Ahmed Atito][]
59
- - Added generic user-defined proc support, new compiler define, refactor to re-use rules, and add tests to *GAUSS*, by [Matthew Evans][]
60
- - Improve *Crystal* language to highlight regexes after some keywords, by [Tsuyusato Kitsune][]
61
- - Fix filterByQualifiers: fileInfo can be null
62
- - Fixed String interpolation in Dart, by [Scott Hyndman][].
63
-
64
- [Laurent Voullemier]: https://github.com/l-vo
65
- [Benoit de Chezelles]: https://github.com/bew
66
- [Johannes Müller]: https://github.com/straight-shoota
67
- [Ahmed Atito]: https://github.com/atitoa93
68
- [Matthew Evans]: https://github.com/matthewevans
69
- [Tsuyusato Kitsune]: https://github.com/MakeNowJust
70
- [Scott Hyndman]: https://github.com/shyndman
71
- [Duncan Paterson]: https://github.com/duncdrum
72
-
73
- ## Version 9.13.1
74
-
75
- Improvements:
76
-
77
- - *C#* function declarations no longer include trailing whitespace, by [JeremyTCD][]
78
- - Added new and missing keywords to *AngelScript*, by [Melissa Geels][]
79
- - *TypeScript* decorator factories highlighting fix, by [Antoine Boisier-Michaud][]
80
- - Added support for multiline strings to *Swift*, by [Alejandro Isaza][]
81
- - Fixed issue that was causing some minifiers to fail.
82
- - Fixed `autoDetection` to accept language aliases.
83
-
84
- [JeremyTCD]: https://github.com/JeremyTCD
85
- [Melissa Geels]: https://github.com/codecat
86
- [Antoine Boisier-Michaud]: https://github.com/Aboisier
87
- [Alejandro Isaza]: https://github.com/alejandro-isaza
88
-
89
- ## Version 9.13.0
90
-
91
- New languages:
92
-
93
- - *ArcGIS Arcade* by [John Foster][]
94
- - *AngelScript* by [Melissa Geels][]
95
- - *GML* by [meseta][]
96
- - *isbl* built-in language DIRECTUM and Conterra by [Dmitriy Tarasov][].
97
- - *PostgreSQL* SQL dialect and PL/pgSQL language by [Egor Rogov][].
98
- - *ReasonML* by [Gidi Meir Morris][]
99
- - *SAS* by [Mauricio Caceres Bravo][]
100
- - *Plaintext* by [Egor Rogov][]
101
- - *.properties* by [bostko][] and [Egor Rogov][]
102
-
103
- New styles:
104
-
105
- - *a11y-dark theme* by [Eric Bailey][]
106
- - *a11y-light theme* by [Eric Bailey][]
107
- - *An Old Hope* by [Gustavo Costa][]
108
- - *Atom One Dark Reasonable* by [Gidi Meir Morris][]
109
- - *isbl editor dark* by [Dmitriy Tarasov][]
110
- - *isbl editor light* by [Dmitriy Tarasov][]
111
- - *Lightfair* by [Tristian Kelly][]
112
- - [*Nord*][nord-highlightjs] by [Arctic Ice Studio][]
113
- - *[🦄 Shades of Purple](https://github.com/ahmadawais/Shades-of-Purple-HighlightJS)* by [Ahmad Awais][]
114
-
115
- Improvements:
116
-
117
- - New attribute `endSameAsBegin` for nested constructs with variable names
118
- by [Egor Rogov][].
119
- - *Python* highlighting of escaped quotes fixed by [Harmon][]
120
- - *PHP*: Added alias for php7, by [Vijaya Chandran Mani][]
121
- - *C++* string handling, by [David Benjamin][]
122
- - *Swift* Add `@objcMembers` to `@attributes`, by [Berk Çebi][]
123
- - Infrastructural changes by [Marcos Cáceres][]
124
- - Fixed metachars highighting for *NSIS* by [Jan T. Sott][]
125
- - *Yaml* highlight local tags as types by [Léo Lam][]
126
- - Improved highlighting for *Elixir* by [Piotr Kaminski][]
127
- - New attribute `disableAutodetect` for preventing autodetection by [Egor Rogov][]
128
- - *Matlab*: transpose operators and double quote strings, by [JohnC32][] and [Egor Rogov][]
129
- - Various documentation typos and improvemets by [Jimmy Wärting][], [Lutz Büch][], [bcleland][]
130
- - *Cmake* updated with new keywords and commands by [Deniz Bahadir][]
131
-
132
- [Ahmad Awais]: https://github.com/ahmadawais
133
- [Arctic Ice Studio]: https://github.com/arcticicestudio
134
- [Dmitriy Tarasov]: https://github.com/MedvedTMN
135
- [Egor Rogov]: https://github.com/egor-rogov
136
- [Eric Bailey]: https://github.com/ericwbailey
137
- [Gidi Meir Morris]: https://github.com/gmmorris
138
- [Gustavo Costa]: https://github.com/gusbemacbe
139
- [Harmon]: https://github.com/Harmon758
140
- [Melissa Geels]: https://github.com/codecat
141
- [meseta]: https://github.com/meseta
142
- [nord-highlightjs]: https://github.com/arcticicestudio/nord-highlightjs
143
- [Tristian Kelly]: https://github.com/TristianK3604
144
- [Vijaya Chandran Mani]: https://github.com/vijaycs85
145
- [John Foster]: https://github.com/jf990
146
- [David Benjamin]: https://github.com/davidben
147
- [Berk Çebi]: https://github.com/berkcebi
148
- [Mauricio Caceres Bravo]: https://github.com/mcaceresb
149
- [bostko]: https://github.com/bostko
150
- [Deniz Bahadir]: https://github.com/Bagira80
151
- [bcleland]: https://github.com/bcleland
152
- [JohnC32]: https://github.com/JohnC32
153
- [Lutz Büch]: https://github.com/lutz-100worte
154
- [Piotr Kaminski]: https://github.com/pkaminski
155
- [Léo Lam]: https://github.com/leoetlino
156
- [Jan T. Sott]: https://github.com/idleberg
157
- [Jimmy Wärting]: https://github.com/jimmywarting
158
- [Marcos Cáceres]: https://github.com/marcoscaceres
159
-
160
- ## Version 9.12.0
161
-
162
- New language:
163
-
164
- - *MikroTik* RouterOS Scripting language by [Ivan Dementev][].
165
-
166
- New style:
167
-
168
- - *VisualStudio 2015 Dark* by [Nicolas LLOBERA][]
169
-
170
- Improvements:
171
- - *Crystal* updated with new keywords and syntaxes by [Tsuyusato Kitsune][].
172
- - *Julia* updated to the modern definitions by [Alex Arslan][].
173
- - *julia-repl* added by [Morten Piibeleht][].
174
- - [Stanislav Belov][] wrote a new definition for *1C*, replacing the one that
175
- has not been updated for more than 8 years. The new version supports syntax
176
- for versions 7.7 and 8.
177
- - [Nicolas LLOBERA][] improved C# definition fixing edge cases with function
178
- titles detection and added highlighting of `[Attributes]`.
179
- - [nnnik][] provided a few correctness fixes for *Autohotkey*.
180
- - [Martin Clausen][] made annotation collections in *Clojure* to look
181
- consistently with other kinds.
182
- - [Alejandro Alonso][] updated *Swift* keywords.
183
-
184
- [Tsuyusato Kitsune]: https://github.com/MakeNowJust
185
- [Alex Arslan]: https://github.com/ararslan
186
- [Morten Piibeleht]: https://github.com/mortenpi
187
- [Stanislav Belov]: https://github.com/4ppl
188
- [Ivan Dementev]: https://github.com/DiVAN1x
189
- [Nicolas LLOBERA]: https://github.com/Nicolas01
190
- [nnnik]: https://github.com/nnnik
191
- [Martin Clausen]: https://github.com/maacl
192
- [Alejandro Alonso]: https://github.com/Azoy
193
-
194
- ## Version 9.11.0
195
-
196
- New languages:
197
-
198
- - *Shell* by [Tsuyusato Kitsune][]
199
- - *jboss-cli* by [Raphaël Parrëe][]
200
-
201
- Improvements:
202
-
203
- - [Joël Porquet] has [greatly improved the definition of *makefile*][5b3e0e6].
204
- - *C++* class titles are now highlighted as in other languages with classes.
205
- - [Jordi Petit][] added rarely used `or`, `and` and `not` keywords to *C++*.
206
- - [Pieter Vantorre][] fixed highlighting of negative floating point values.
207
-
208
-
209
- [Tsuyusato Kitsune]: https://github.com/MakeNowJust
210
- [Jordi Petit]: https://github.com/jordi-petit
211
- [Raphaël Parrëe]: https://github.com/rparree
212
- [Pieter Vantorre]: https://github.com/NuclearCookie
213
- [5b3e0e6]: https://github.com/isagalaev/highlight.js/commit/5b3e0e68bfaae282faff6697d6a490567fa9d44b
214
-
215
-
216
- ## Version 9.10.0
217
-
218
- Apologies for missing the previous release cycle. Some thing just can't be
219
- automated… Anyway, we're back!
220
-
221
- New languages:
222
-
223
- - *Hy* by [Sergey Sobko][]
224
- - *Leaf* by [Hale Chan][]
225
- - *N1QL* by [Andres Täht][] and [Rene Saarsoo][]
226
-
227
- Improvements:
228
-
229
- - *Rust* got updated with new keywords by [Kasper Andersen][] and then
230
- significantly modernized even more by [Eduard-Mihai Burtescu][] (yes, @eddyb,
231
- Rust core team member!)
232
- - *Python* updated with f-literals by [Philipp A][].
233
- - *YAML* updated with unquoted strings support.
234
- - *Gauss* updated with new keywords by [Matt Evans][].
235
- - *Lua* updated with new keywords by [Joe Blow][].
236
- - *Kotlin* updated with new keywords by [Philipp Hauer][].
237
- - *TypeScript* got highlighting of function params and updated keywords by
238
- [Ike Ku][].
239
- - *Scheme* now correctly handles \`-quoted lists thanks to [Guannan Wei].
240
- - [Sam Wu][] fixed handling of `<<` in *C++* defines.
241
-
242
- [Philipp A]: https://github.com/flying-sheep
243
- [Philipp Hauer]: https://github.com/phauer
244
- [Sergey Sobko]: https://github.com/profitware
245
- [Hale Chan]: https://github.com/halechan
246
- [Matt Evans]: https://github.com/matthewevans
247
- [Joe Blow]: https://github.com/mossarelli
248
- [Kasper Andersen]: https://github.com/kasma1990
249
- [Eduard-Mihai Burtescu]: https://github.com/eddyb
250
- [Andres Täht]: https://github.com/andrestaht
251
- [Rene Saarsoo]: https://github.com/nene
252
- [Philipp Hauer]: https://github.com/phauer
253
- [Ike Ku]: https://github.com/dempfi
254
- [Guannan Wei]: https://github.com/Kraks
255
- [Sam Wu]: https://github.com/samsam2310
256
-
257
-
258
- ## Version 9.9.0
259
-
260
- New languages
261
-
262
- - *LLVM* by [Michael Rodler][]
263
-
264
- Improvements:
265
-
266
- - *TypeScript* updated with annotations and param lists inside constructors, by
267
- [Raphael Parree][].
268
- - *CoffeeScript* updated with new keywords and fixed to recognize JavaScript
269
- in \`\`\`, thanks to thanks to [Geoffrey Booth][].
270
- - Compiler directives in *Delphi* are now correctly highlighted as "meta".
271
-
272
- [Raphael Parree]: https://github.com/rparree
273
- [Michael Rodler]: https://github.com/f0rki
274
- [Geoffrey Booth]: https://github.com/GeoffreyBooth
275
-
276
-
277
- ## Version 9.8.0 "New York"
278
-
279
- This version is the second one that deserved a name. Because I'm in New York,
280
- and the release isn't missing the deadline only because it's still Tuesday on
281
- West Coast.
282
-
283
- New languages:
284
-
285
- - *Clean* by [Camil Staps][]
286
- - *Flix* by [Magnus Madsen][]
287
-
288
- Improvements:
289
-
290
- - [Kenton Hamaluik][] did a comprehensive update for *Haxe*.
291
- - New commands for *PowerShell* from [Nicolas Le Gall][].
292
- - [Jan T. Sott][] updated *NSIS*.
293
- - *Java* and *Swift* support unicode characters in identifiers thanks to
294
- [Alexander Lichter][].
295
-
296
- [Camil Staps]: https://github.com/camilstaps
297
- [Magnus Madsen]: https://github.com/magnus-madsen
298
- [Kenton Hamaluik]: https://github.com/FuzzyWuzzie
299
- [Nicolas Le Gall]: https://github.com/darkitty
300
- [Jan T. Sott]: https://github.com/idleberg
301
- [Alexander Lichter]: https://github.com/manniL
302
-
303
-
304
- ## Version 9.7.0
305
-
306
- A comprehensive bugfix release. This is one of the best things about
307
- highlight.js: even boring things keep getting better (even if slow).
308
-
309
- - VHDL updated with PSL keywords and uses more consistent styling.
310
- - Nested C-style comments no longer break highlighting in many languages.
311
- - JavaScript updated with `=>` functions, highlighted object attributes and
312
- parsing within template string substitution blocks (`${...}`).
313
- - Fixed another corner case with self-closing `<tag/>` in JSX.
314
- - Added `HEALTHCHECK` directive in Docker.
315
- - Delphi updated with new Free Pascal keywords.
316
- - Fixed digit separator parsing in C++.
317
- - C# updated with new keywords and fixed to allow multiple identifiers within
318
- generics `<...>`.
319
- - Fixed another slow regex in Less.
320
-
321
-
322
- ## Version 9.6.0
323
-
324
- New languages:
325
-
326
- - *ABNF* and *EBNF* by [Alex McKibben][]
327
- - *Awk* by [Matthew Daly][]
328
- - *SubUnit* by [Sergey Bronnikov][]
329
-
330
- New styles:
331
-
332
- - *Atom One* in both Dark and Light variants by [Daniel Gamage][]
333
-
334
- Plus, a few smaller updates for *Lasso*, *Elixir*, *C++* and *SQL*.
335
-
336
- [Alex McKibben]: https://github.com/mckibbenta
337
- [Daniel Gamage]: https://github.com/danielgamage
338
- [Matthew Daly]: https://github.com/matthewbdaly
339
- [Sergey Bronnikov]: https://github.com/ligurio
340
-
341
-
342
- ## Version 9.5.0
343
-
344
- New languages:
345
-
346
- - *Excel* by [Victor Zhou][]
347
- - *Linden Scripting Language* by [Builder's Brewery][]
348
- - *TAP* (Test Anything Protocol) by [Sergey Bronnikov][]
349
- - *Pony* by [Joe Eli McIlvain][]
350
- - *Coq* by [Stephan Boyer][]
351
- - *dsconfig* and *LDIF* by [Jacob Childress][]
352
-
353
- New styles:
354
-
355
- - *Ocean Dark* by [Gavin Siu][]
356
-
357
- Notable changes:
358
-
359
- - [Minh Nguyễn][] added more built-ins to Objective C.
360
- - [Jeremy Hull][] fixed corner cases in C++ preprocessor directives and Diff
361
- comments.
362
- - [Victor Zhou][] added support for digit separators in C++ numbers.
363
-
364
- [Gavin Siu]: https://github.com/gavsiu
365
- [Builder's Brewery]: https://github.com/buildersbrewery
366
- [Victor Zhou]: https://github.com/OiCMudkips
367
- [Sergey Bronnikov]: https://github.com/ligurio
368
- [Joe Eli McIlvain]: https://github.com/jemc
369
- [Stephan Boyer]: https://github.com/boyers
370
- [Jacob Childress]: https://github.com/braveulysses
371
- [Minh Nguyễn]: https://github.com/1ec5
372
- [Jeremy Hull]: https://github.com/sourrust
373
-
374
-
375
- ## Version 9.4.0
376
-
377
- New languages:
378
-
379
- - *PureBASIC* by [Tristano Ajmone][]
380
- - *BNF* by [Oleg Efimov][]
381
- - *Ada* by [Lars Schulna][]
382
-
383
- New styles:
384
-
385
- - *PureBASIC* by [Tristano Ajmone][]
386
-
387
- Improvements to existing languages and styles:
388
-
389
- - We now highlight function declarations in Go.
390
- - [Taisuke Fujimoto][] contributed very convoluted rules for raw and
391
- interpolated strings in C#.
392
- - [Boone Severson][] updated Verilog to comply with IEEE 1800-2012
393
- SystemVerilog.
394
- - [Victor Zhou][] improved rules for comments and strings in PowerShell files.
395
- - [Janis Voigtländer][] updated the definition of Elm to version 0.17 of the
396
- languages. Elm is now featured on the front page of <https://highlightjs.org>.
397
- - Special variable `$this` is highlighted as a keyword in PHP.
398
- - `usize` and `isize` are now highlighted in Rust.
399
- - Fixed labels and directives in x86 assembler.
400
-
401
- [Tristano Ajmone]: https://github.com/tajmone
402
- [Taisuke Fujimoto]: https://github.com/temp-impl
403
- [Oleg Efimov]: https://github.com/Sannis
404
- [Boone Severson]: https://github.com/BooneJS
405
- [Victor Zhou]: https://github.com/OiCMudkips
406
- [Lars Schulna]: https://github.com/captain-hanuta
407
- [Janis Voigtländer]: https://github.com/jvoigtlaender
408
-
409
-
410
- ## Version 9.3.0
411
-
412
- New languages:
413
-
414
- - *Tagger Script* by [Philipp Wolfer][]
415
- - *MoonScript* by [Billy Quith][]
416
-
417
- New styles:
418
-
419
- - *xt256* by [Herbert Shin][]
420
-
421
- Improvements to existing languages and styles:
422
-
423
- - More robust handling of unquoted HTML tag attributes
424
- - Relevance tuning for QML which was unnecessary eager at seizing other
425
- languages' code
426
- - Improve GAMS language parsing
427
- - Fixed a bunch of bugs around selectors in Less
428
- - Kotlin's got a new definition for annotations, updated keywords and other
429
- minor improvements
430
- - Added `move` to Rust keywords
431
- - Markdown now recognizes \`\`\`-fenced code blocks
432
- - Improved detection of function declarations in C++ and C#
433
-
434
- [Philipp Wolfer]: https://github.com/phw
435
- [Billy Quith]: https://github.com/billyquith
436
- [Herbert Shin]: https://github.com/initbar
437
-
438
-
439
- ## Version 9.2.0
440
-
441
- New languages:
442
-
443
- - *QML* by [John Foster][]
444
- - *HTMLBars* by [Michael Johnston][]
445
- - *CSP* by [Taras][]
446
- - *Maxima* by [Robert Dodier][]
447
-
448
- New styles:
449
-
450
- - *Gruvbox* by [Qeole][]
451
- - *Dracula* by [Denis Ciccale][]
452
-
453
- Improvements to existing languages and styles:
454
-
455
- - We now correctly handle JSX with arbitrary node tree depth.
456
- - Argument list for `(lambda)` in Scheme is no longer highlighted as a function
457
- call.
458
- - Stylus syntax doesn't break on valid CSS.
459
- - More correct handling of comments and strings and other improvements for
460
- VimScript.
461
- - More subtle work on the default style.
462
- - We now use anonymous modules for AMD.
463
- - `macro_rules!` is now recognized as a built-in in Rust.
464
-
465
- [John Foster]: https://github.com/jf990
466
- [Qeole]: https://github.com/Qeole
467
- [Denis Ciccale]: https://github.com/dciccale
468
- [Michael Johnston]: https://github.com/lastobelus
469
- [Taras]: https://github.com/oxdef
470
- [Robert Dodier]: https://github.com/robert-dodier
471
-
472
-
473
- ## Version 9.1.0
474
-
475
- New languages:
476
-
477
- - *Stan* by [Brendan Rocks][]
478
- - *BASIC* by [Raphaël Assénat][]
479
- - *GAUSS* by [Matt Evans][]
480
- - *DTS* by [Martin Braun][]
481
- - *Arduino* by [Stefania Mellai][]
482
-
483
- New Styles:
484
-
485
- - *Arduino Light* by [Stefania Mellai][]
486
-
487
- Improvements to existing languages and styles:
488
-
489
- - Handle return type annotations in Python
490
- - Allow shebang headers in Javascript
491
- - Support strings in Rust meta
492
- - Recognize `struct` as a class-level definition in Rust
493
- - Recognize b-prefixed chars and strings in Rust
494
- - Better numbers handling in Verilog
495
-
496
- [Brendan Rocks]: http://brendanrocks.com
497
- [Raphaël Assénat]: https://github.com/raphnet
498
- [Matt Evans]: https://github.com/matthewevans
499
- [Martin Braun]: https://github.com/mbr0wn
500
- [Stefania Mellai]: https://github.com/smellai
501
-
502
-
503
- ## Version 9.0.0
504
-
505
- The new major version brings a reworked styling system. Highlight.js now defines
506
- a limited set of highlightable classes giving a consistent result across all the
507
- styles and languages. You can read a more detailed explanation and background in
508
- the [tracking issue][#348] that started this long process back in May.
509
-
510
- This change is backwards incompatible for those who uses highlight.js with a
511
- custom stylesheet. The [new style guide][sg] explains how to write styles
512
- in this new world.
513
-
514
- Bundled themes have also suffered a significant amount of improvements and may
515
- look different in places, but all the things now consistent and make more sense.
516
- Among others, the Default style has got a refresh and will probably be tweaked
517
- some more in next releases. Please do give your feedback in our
518
- [issue tracker][issues].
519
-
520
- New languages in this release:
521
-
522
- - *Caché Object Script* by [Nikita Savchenko][]
523
- - *YAML* by [Stefan Wienert][]
524
- - *MIPS Assembler* by [Nebuleon Fumika][]
525
- - *HSP* by [prince][]
526
-
527
- Improvements to existing languages and styles:
528
-
529
- - ECMAScript 6 modules import now do not require closing semicolon.
530
- - ECMAScript 6 classes constructors now highlighted.
531
- - Template string support for Typescript, as for ECMAScript 6.
532
- - Scala case classes params highlight fixed.
533
- - Built-in names introduced in Julia v0.4 added by [Kenta Sato][].
534
- - Refreshed Default style.
535
-
536
- Other notable changes:
537
-
538
- - [Web workers support][webworkers] added bu [Jan Kühle][].
539
- - We now have tests for compressed browser builds as well.
540
- - The building tool chain has been switched to node.js 4.x. and is now
541
- shamelessly uses ES6 features all over the place, courtesy of [Jeremy Hull][].
542
- - License added to non-compressed browser build.
543
-
544
- [Jan Kühle]: https://github.com/frigus02
545
- [Stefan Wienert]: https://github.com/zealot128
546
- [Kenta Sato]: https://github.com/bicycle1885
547
- [Nikita Savchenko]: https://github.com/ZitRos
548
- [webworkers]: https://github.com/isagalaev/highlight.js#web-workers
549
- [Jeremy Hull]: https://github.com/sourrust
550
- [#348]: https://github.com/isagalaev/highlight.js/issues/348
551
- [sg]: http://highlightjs.readthedocs.org/en/latest/style-guide.html
552
- [issues]: https://github.com/isagalaev/highlight.js/issues
553
- [Nebuleon Fumika]: https://github.com/Nebuleon
554
- [prince]: https://github.com/prince-0203
555
-
556
-
557
- ## Version 8.9.1
558
-
559
- Some last-minute changes reverted due to strange bug with minified browser build:
560
-
561
- - Scala case classes params highlight fixed
562
- - ECMAScript 6 modules import now do not require closing semicolon
563
- - ECMAScript 6 classes constructors now highlighted
564
- - Template string support for Typescript, as for ECMAScript 6
565
- - License added to not minified browser build
566
-
567
-
568
- ## Version 8.9.0
569
-
570
- New languages:
571
-
572
- - *crmsh* by [Kristoffer Gronlund][]
573
- - *SQF* by [Soren Enevoldsen][]
574
-
575
- [Kristoffer Gronlund]: https://github.com/krig
576
- [Soren Enevoldsen]: https://github.com/senevoldsen90
577
-
578
- Notable fixes and improvements to existing languages:
579
-
580
- - Added `abstract` and `namespace` keywords to TypeScript by [Daniel Rosenwasser][]
581
- - Added `label` support to Dockerfile by [Ladislav Prskavec][]
582
- - Crystal highlighting improved by [Tsuyusato Kitsune][]
583
- - Missing Swift keywords added by [Nate Cook][]
584
- - Improve detection of C block comments
585
- - ~~Scala case classes params highlight fixed~~
586
- - ~~ECMAScript 6 modules import now do not require closing semicolon~~
587
- - ~~ECMAScript 6 classes constructors now highlighted~~
588
- - ~~Template string support for Typescript, as for ECMAScript 6~~
589
-
590
- Other notable changes:
591
-
592
- - ~~License added to not minified browser build~~
593
-
594
- [Kristoffer Gronlund]: https://github.com/krig
595
- [Søren Enevoldsen]: https://github.com/senevoldsen90
596
- [Daniel Rosenwasser]: https://github.com/DanielRosenwasser
597
- [Ladislav Prskavec]: https://github.com/abtris
598
- [Tsuyusato Kitsune]: https://github.com/MakeNowJust
599
- [Nate Cook]: https://github.com/natecook1000
600
-
601
-
602
- ## Version 8.8.0
603
-
604
- New languages:
605
-
606
- - *Golo* by [Philippe Charrière][]
607
- - *GAMS* by [Stefan Bechert][]
608
- - *IRPF90* by [Anthony Scemama][]
609
- - *Access logs* by [Oleg Efimov][]
610
- - *Crystal* by [Tsuyusato Kitsune][]
611
-
612
- Notable fixes and improvements to existing languages:
613
-
614
- - JavaScript highlighting no longer fails with ES6 default parameters
615
- - Added keywords `async` and `await` to Python
616
- - PHP heredoc support improved
617
- - Allow preprocessor directives within C++ functions
618
-
619
- Other notable changes:
620
-
621
- - Change versions to X.Y.Z SemVer-compatible format
622
- - Added ability to build all targets at once
623
-
624
- [Philippe Charrière]: https://github.com/k33g
625
- [Stefan Bechert]: https://github.com/b-pos465
626
- [Anthony Scemama]: https://github.com/scemama
627
- [Oleg Efimov]: https://github.com/Sannis
628
- [Tsuyusato Kitsune]: https://github.com/MakeNowJust
629
-
630
-
631
- ## Version 8.7
632
-
633
- New languages:
634
-
635
- - *Zephir* by [Oleg Efimov][]
636
- - *Elm* by [Janis Voigtländer][]
637
- - *XQuery* by [Dirk Kirsten][]
638
- - *Mojolicious* by [Dotan Dimet][]
639
- - *AutoIt* by Manh Tuan from [J2TeaM][]
640
- - *Toml* (ini extension) by [Guillaume Gomez][]
641
-
642
- New styles:
643
-
644
- - *Hopscotch* by [Jan T. Sott][]
645
- - *Grayscale* by [MY Sun][]
646
-
647
- Notable fixes and improvements to existing languages:
648
-
649
- - Fix encoding of images when copied over in certain builds
650
- - Fix incorrect highlighting of the word "bug" in comments
651
- - Treat decorators different from matrix multiplication in Python
652
- - Fix traits inheritance highlighting in Rust
653
- - Fix incorrect document
654
- - Oracle keywords added to SQL language definition by [Vadimtro][]
655
- - Postgres keywords added to SQL language definition by [Benjamin Auder][]
656
- - Fix registers in x86asm being highlighted as a hex number
657
- - Fix highlighting for numbers with a leading decimal point
658
- - Correctly highlight numbers and strings inside of C/C++ macros
659
- - C/C++ functions now support pointer, reference, and move returns
660
-
661
- [Oleg Efimov]: https://github.com/Sannis
662
- [Guillaume Gomez]: https://github.com/GuillaumeGomez
663
- [Janis Voigtländer]: https://github.com/jvoigtlaender
664
- [Jan T. Sott]: https://github.com/idleberg
665
- [Dirk Kirsten]: https://github.com/dirkk
666
- [MY Sun]: https://github.com/simonmysun
667
- [Vadimtro]: https://github.com/Vadimtro
668
- [Benjamin Auder]: https://github.com/ghost
669
- [Dotan Dimet]: https://github.com/dotandimet
670
- [J2TeaM]: https://github.com/J2TeaM
671
-
672
-
673
- ## Version 8.6
674
-
675
- New languages:
676
-
677
- - *C/AL* by [Kenneth Fuglsang][]
678
- - *DNS zone file* by [Tim Schumacher][]
679
- - *Ceylon* by [Lucas Werkmeister][]
680
- - *OpenSCAD* by [Dan Panzarella][]
681
- - *Inform7* by [Bruno Dias][]
682
- - *armasm* by [Dan Panzarella][]
683
- - *TP* by [Jay Strybis][]
684
-
685
- New styles:
686
-
687
- - *Atelier Cave*, *Atelier Estuary*,
688
- *Atelier Plateau* and *Atelier Savanna* by [Bram de Haan][]
689
- - *Github Gist* by [Louis Barranqueiro][]
690
-
691
- Notable fixes and improvements to existing languages:
692
-
693
- - Multi-line raw strings from C++11 are now supported
694
- - Fix class names with dashes in HAML
695
- - The `async` keyword from ES6/7 is now supported
696
- - TypeScript functions handle type and parameter complexity better
697
- - We unified phpdoc/javadoc/yardoc etc modes across all languages
698
- - CSS .class selectors relevance was dropped to prevent wrong language detection
699
- - Images is now included to CDN build
700
- - Release process is now automated
701
-
702
- [Bram de Haan]: https://github.com/atelierbram
703
- [Kenneth Fuglsang]: https://github.com/kfuglsang
704
- [Louis Barranqueiro]: https://github.com/LouisBarranqueiro
705
- [Tim Schumacher]: https://github.com/enko
706
- [Lucas Werkmeister]: https://github.com/lucaswerkmeister
707
- [Dan Panzarella]: https://github.com/pzl
708
- [Bruno Dias]: https://github.com/sequitur
709
- [Jay Strybis]: https://github.com/unreal
710
-
711
-
712
- ## Version 8.5
713
-
714
- New languages:
715
-
716
- - *pf.conf* by [Peter Piwowarski][]
717
- - *Julia* by [Kenta Sato][]
718
- - *Prolog* by [Raivo Laanemets][]
719
- - *Docker* by [Alexis Hénaut][]
720
- - *Fortran* by [Anthony Scemama][] and [Thomas Applencourt][]
721
- - *Kotlin* by [Sergey Mashkov][]
722
-
723
- New styles:
724
-
725
- - *Agate* by [Taufik Nurrohman][]
726
- - *Darcula* by [JetBrains][]
727
- - *Atelier Sulphurpool* by [Bram de Haan][]
728
- - *Android Studio* by [Pedro Oliveira][]
729
-
730
- Notable fixes and improvements to existing languages:
731
-
732
- - ES6 features in JavaScript are better supported now by [Gu Yiling][].
733
- - Swift now recognizes body-less method definitions.
734
- - Single expression functions `def foo, do: ... ` now work in Elixir.
735
- - More uniform detection of built-in classes in Objective C.
736
- - Fixes for number literals and processor directives in Rust.
737
- - HTML `<script>` tag now allows any language, not just JavaScript.
738
- - Multi-line comments are supported now in MatLab.
739
-
740
- [Taufik Nurrohman]: https://github.com/tovic
741
- [Jet Brains]: https://www.jetbrains.com/
742
- [Peter Piwowarski]: https://github.com/oldlaptop
743
- [Kenta Sato]: https://github.com/bicycle1885
744
- [Bram de Haan]: https://github.com/atelierbram
745
- [Raivo Laanemets]: https://github.com/rla
746
- [Alexis Hénaut]: https://github.com/AlexisNo
747
- [Anthony Scemama]: https://github.com/scemama
748
- [Pedro Oliveira]: https://github.com/kanytu
749
- [Gu Yiling]: https://github.com/Justineo
750
- [Sergey Mashkov]: https://github.com/cy6erGn0m
751
- [Thomas Applencourt]: https://github.com/TApplencourt
752
-
753
-
754
- ## Version 8.4
755
-
756
- We've got the new [demo page][]! The obvious new feature is the new look, but
757
- apart from that it's got smarter: by presenting languages in groups it avoids
758
- running 10000 highlighting attempts after first load which was slowing it down
759
- and giving bad overall impression. It is now also being generated from test
760
- code snippets so the authors of new languages don't have to update both tests
761
- and the demo page with the same thing.
762
-
763
- Other notable changes:
764
-
765
- - The `template_comment` class is gone in favor of the more general `comment`.
766
- - Number parsing unified and improved across languages.
767
- - C++, Java and C# now use unified grammar to highlight titles in
768
- function/method definitions.
769
- - The browser build is now usable as an AMD module, there's no separate build
770
- target for that anymore.
771
- - OCaml has got a [comprehensive overhaul][ocaml] by [Mickaël Delahaye][].
772
- - Clojure's data structures and literals are now highlighted outside of lists
773
- and we can now highlight Clojure's REPL sessions.
774
-
775
- New languages:
776
-
777
- - *AspectJ* by [Hakan Özler][]
778
- - *STEP Part 21* by [Adam Joseph Cook][]
779
- - *SML* derived by [Edwin Dalorzo][] from OCaml definition
780
- - *Mercury* by [mucaho][]
781
- - *Smali* by [Dennis Titze][]
782
- - *Verilog* by [Jon Evans][]
783
- - *Stata* by [Brian Quistorff][]
784
-
785
- [Hakan Özler]: https://github.com/ozlerhakan
786
- [Adam Joseph Cook]: https://github.com/adamjcook
787
- [demo page]: https://highlightjs.org/static/demo/
788
- [Ivan Sagalaev]: https://github.com/isagalaev
789
- [Edwin Dalorzo]: https://github.com/edalorzo
790
- [mucaho]: https://github.com/mucaho
791
- [Dennis Titze]: https://github.com/titze
792
- [Jon Evans]: https://github.com/craftyjon
793
- [Brian Quistorff]: https://github.com/bquistorff
794
- [ocaml]: https://github.com/isagalaev/highlight.js/pull/608#issue-46190207
795
- [Mickaël Delahaye]: https://github.com/polazarus
796
-
797
-
798
- ## Version 8.3
799
-
800
- We streamlined our tool chain, it is now based entirely on node.js instead of
801
- being a mix of node.js, Python and Java. The build script options and arguments
802
- remained the same, and we've noted all the changes in the [documentation][b].
803
- Apart from reducing complexity, the new build script is also faster from not
804
- having to start Java machine repeatedly. The credits for the work go to [Jeremy
805
- Hull][].
806
-
807
- Some notable fixes:
808
-
809
- - PHP and JavaScript mixed in HTML now live happily with each other.
810
- - JavaScript regexes now understand ES6 flags "u" and "y".
811
- - `throw` keyword is no longer detected as a method name in Java.
812
- - Fixed parsing of numbers and symbols in Clojure thanks to [input from Ivan
813
- Kleshnin][ik].
814
-
815
- New languages in this release:
816
-
817
- - *Less* by [Max Mikhailov][]
818
- - *Stylus* by [Bryant Williams][]
819
- - *Tcl* by [Radek Liska][]
820
- - *Puppet* by [Jose Molina Colmenero][]
821
- - *Processing* by [Erik Paluka][]
822
- - *Twig* templates by [Luke Holder][]
823
- - *PowerShell* by [David Mohundro][], based on [the work of Nicholas Blumhardt][ps]
824
- - *XL* by [Christophe de Dinechin][]
825
- - *LiveScript* by [Taneli Vatanen][] and [Jen Evers-Corvina][]
826
- - *ERB* (Ruby in HTML) by [Lucas Mazza][]
827
- - *Roboconf* by [Vincent Zurczak][]
828
-
829
- [b]: http://highlightjs.readthedocs.org/en/latest/building-testing.html
830
- [Jeremy Hull]: https://github.com/sourrust
831
- [ik]: https://twitter.com/IvanKleshnin/status/514041599484231680
832
- [Max Mikhailov]: https://github.com/seven-phases-max
833
- [Bryant Williams]: https://github.com/scien
834
- [Radek Liska]: https://github.com/Nindaleth
835
- [Jose Molina Colmenero]: https://github.com/Moliholy
836
- [Erik Paluka]: https://github.com/paluka
837
- [Luke Holder]: https://github.com/lukeholder
838
- [David Mohundro]: https://github.com/drmohundro
839
- [ps]: https://github.com/OctopusDeploy/Library/blob/master/app/shared/presentation/highlighting/powershell.js
840
- [Christophe de Dinechin]: https://github.com/c3d
841
- [Taneli Vatanen]: https://github.com/Daiz-
842
- [Jen Evers-Corvina]: https://github.com/sevvie
843
- [Lucas Mazza]: https://github.com/lucasmazza
844
- [Vincent Zurczak]: https://github.com/vincent-zurczak
845
-
846
-
847
- ## Version 8.2
848
-
849
- We've finally got [real tests][test] and [continuous testing on Travis][ci]
850
- thanks to [Jeremy Hull][] and [Chris Eidhof][]. The tests designed to cover
851
- everything: language detection, correct parsing of individual language features
852
- and various special cases. This is a very important change that gives us
853
- confidence in extending language definitions and refactoring library core.
854
-
855
- We're going to redesign the old [demo/test suite][demo] into an interactive
856
- demo web app. If you're confident front-end developer or designer and want to
857
- help us with it, drop a comment into [the issue][#542] on GitHub.
858
-
859
- [test]: https://github.com/isagalaev/highlight.js/tree/master/test
860
- [demo]: https://highlightjs.org/static/test.html
861
- [#542]: https://github.com/isagalaev/highlight.js/issues/542
862
- [ci]: https://travis-ci.org/isagalaev/highlight.js
863
- [Jeremy Hull]: https://github.com/sourrust
864
- [Chris Eidhof]: https://github.com/chriseidhof
865
-
866
- As usually there's a handful of new languages in this release:
867
-
868
- - *Groovy* by [Guillaume Laforge][]
869
- - *Dart* by [Maxim Dikun][]
870
- - *Dust* by [Michael Allen][]
871
- - *Scheme* by [JP Verkamp][]
872
- - *G-Code* by [Adam Joseph Cook][]
873
- - *Q* from Kx Systems by [Sergey Vidyuk][]
874
-
875
- [Guillaume Laforge]: https://github.com/glaforge
876
- [Maxim Dikun]: https://github.com/dikmax
877
- [Michael Allen]: https://github.com/bfui
878
- [JP Verkamp]: https://github.com/jpverkamp
879
- [Adam Joseph Cook]: https://github.com/adamjcook
880
- [Sergey Vidyuk]: https://github.com/sv
881
-
882
- Other improvements:
883
-
884
- - [Erik Osheim][] heavily reworked Scala definitions making it richer.
885
- - [Lucas Mazza][] fixed Ruby hashes highlighting
886
- - Lisp variants (Lisp, Clojure and Scheme) are unified in regard to naming
887
- the first symbol in parentheses: it's "keyword" in general case and also
888
- "built_in" for built-in functions in Clojure and Scheme.
889
-
890
- [Erik Osheim]: https://github.com/non
891
- [Lucas Mazza]: https://github.com/lucasmazza
892
-
893
-
894
- ## Version 8.1
895
-
896
- New languages:
897
-
898
- - *Gherkin* by [Sam Pikesley][]
899
- - *Elixir* by [Josh Adams][]
900
- - *NSIS* by [Jan T. Sott][]
901
- - *VIM script* by [Jun Yang][]
902
- - *Protocol Buffers* by [Dan Tao][]
903
- - *Nix* by [Domen Kožar][]
904
- - *x86asm* by [innocenat][]
905
- - *Cap’n Proto* and *Thrift* by [Oleg Efimov][]
906
- - *Monkey* by [Arthur Bikmullin][]
907
- - *TypeScript* by [Panu Horsmalahti][]
908
- - *Nimrod* by [Flaviu Tamas][]
909
- - *Gradle* by [Damian Mee][]
910
- - *Haxe* by [Christopher Kaster][]
911
- - *Swift* by [Chris Eidhof][] and [Nate Cook][]
912
-
913
- New styles:
914
-
915
- - *Kimbie*, light and dark variants by [Jan T. Sott][]
916
- - *Color brewer* by [Fabrício Tavares de Oliveira][]
917
- - *Codepen.io embed* by [Justin Perry][]
918
- - *Hybrid* by [Nic West][]
919
-
920
- [Sam Pikesley]: https://github.com/pikesley
921
- [Sindre Sorhus]: https://github.com/sindresorhus
922
- [Josh Adams]: https://github.com/knewter
923
- [Jan T. Sott]: https://github.com/idleberg
924
- [Jun Yang]: https://github.com/harttle
925
- [Dan Tao]: https://github.com/dtao
926
- [Domen Kožar]: https://github.com/iElectric
927
- [innocenat]: https://github.com/innocenat
928
- [Oleg Efimov]: https://github.com/Sannis
929
- [Arthur Bikmullin]: https://github.com/devolonter
930
- [Panu Horsmalahti]: https://github.com/panuhorsmalahti
931
- [Flaviu Tamas]: https://github.com/flaviut
932
- [Damian Mee]: https://github.com/chester1000
933
- [Christopher Kaster]: http://christopher.kaster.ws
934
- [Fabrício Tavares de Oliveira]: https://github.com/fabriciotav
935
- [Justin Perry]: https://github.com/ourmaninamsterdam
936
- [Nic West]: https://github.com/nicwest
937
- [Chris Eidhof]: https://github.com/chriseidhof
938
- [Nate Cook]: https://github.com/natecook1000
939
-
940
- Other improvements:
941
-
942
- - The README is heavily reworked and brought up to date by [Jeremy Hull][].
943
- - Added [`listLanguages()`][ll] method in the API.
944
- - Improved C/C++/C# detection.
945
- - Added a bunch of new language aliases, documented the existing ones. Thanks to
946
- [Sindre Sorhus][] for background research.
947
- - Added phrasal English words to boost relevance in comments.
948
- - Many improvements to SQL definition made by [Heiko August][],
949
- [Nikolay Lisienko][] and [Travis Odom][].
950
- - The shorter `lang-` prefix for language names in HTML classes supported
951
- alongside `language-`. Thanks to [Jeff Escalante][].
952
- - Ruby's got support for interactive console sessions. Thanks to
953
- [Pascal Hurni][].
954
- - Added built-in functions for R language. Thanks to [Artem A. Klevtsov][].
955
- - Rust's got definition for lifetime parameters and improved string syntax.
956
- Thanks to [Roman Shmatov][].
957
- - Various improvements to Objective-C definition by [Matt Diephouse][].
958
- - Fixed highlighting of generics in Java.
959
-
960
- [ll]: http://highlightjs.readthedocs.org/en/latest/api.html#listlanguages
961
- [Sindre Sorhus]: https://github.com/sindresorhus
962
- [Heiko August]: https://github.com/auge8472
963
- [Nikolay Lisienko]: https://github.com/neor-ru
964
- [Travis Odom]: https://github.com/Burstaholic
965
- [Jeff Escalante]: https://github.com/jenius
966
- [Pascal Hurni]: https://github.com/phurni
967
- [Jiyin Yiyong]: https://github.com/jiyinyiyong
968
- [Artem A. Klevtsov]: https://github.com/unikum
969
- [Roman Shmatov]: https://github.com/shmatov
970
- [Jeremy Hull]: https://github.com/sourrust
971
- [Matt Diephouse]: https://github.com/mdiep
972
-
973
-
974
- ## Version 8.0
975
-
976
- This new major release is quite a big overhaul bringing both new features and
977
- some backwards incompatible changes. However, chances are that the majority of
978
- users won't be affected by the latter: the basic scenario described in the
979
- README is left intact.
980
-
981
- Here's what did change in an incompatible way:
982
-
983
- - We're now prefixing all classes located in [CSS classes reference][cr] with
984
- `hljs-`, by default, because some class names would collide with other
985
- people's stylesheets. If you were using an older version, you might still want
986
- the previous behavior, but still want to upgrade. To suppress this new
987
- behavior, you would initialize like so:
988
-
989
- ```html
990
- <script type="text/javascript">
991
- hljs.configure({classPrefix: ''});
992
- hljs.initHighlightingOnLoad();
993
- </script>
994
- ```
995
-
996
- - `tabReplace` and `useBR` that were used in different places are also unified
997
- into the global options object and are to be set using `configure(options)`.
998
- This function is documented in our [API docs][]. Also note that these
999
- parameters are gone from `highlightBlock` and `fixMarkup` which are now also
1000
- rely on `configure`.
1001
-
1002
- - We removed public-facing (though undocumented) object `hljs.LANGUAGES` which
1003
- was used to register languages with the library in favor of two new methods:
1004
- `registerLanguage` and `getLanguage`. Both are documented in our [API docs][].
1005
-
1006
- - Result returned from `highlight` and `highlightAuto` no longer contains two
1007
- separate attributes contributing to relevance score, `relevance` and
1008
- `keyword_count`. They are now unified in `relevance`.
1009
-
1010
- Another technically compatible change that nonetheless might need attention:
1011
-
1012
- - The structure of the NPM package was refactored, so if you had installed it
1013
- locally, you'll have to update your paths. The usual `require('highlight.js')`
1014
- works as before. This is contributed by [Dmitry Smolin][].
1015
-
1016
- New features:
1017
-
1018
- - Languages now can be recognized by multiple names like "js" for JavaScript or
1019
- "html" for, well, HTML (which earlier insisted on calling it "xml"). These
1020
- aliases can be specified in the class attribute of the code container in your
1021
- HTML as well as in various API calls. For now there are only a few very common
1022
- aliases but we'll expand it in the future. All of them are listed in the
1023
- [class reference][cr].
1024
-
1025
- - Language detection can now be restricted to a subset of languages relevant in
1026
- a given context — a web page or even a single highlighting call. This is
1027
- especially useful for node.js build that includes all the known languages.
1028
- Another example is a StackOverflow-style site where users specify languages
1029
- as tags rather than in the markdown-formatted code snippets. This is
1030
- documented in the [API reference][] (see methods `highlightAuto` and
1031
- `configure`).
1032
-
1033
- - Language definition syntax streamlined with [variants][] and
1034
- [beginKeywords][].
1035
-
1036
- New languages and styles:
1037
-
1038
- - *Oxygene* by [Carlo Kok][]
1039
- - *Mathematica* by [Daniel Kvasnička][]
1040
- - *Autohotkey* by [Seongwon Lee][]
1041
- - *Atelier* family of styles in 10 variants by [Bram de Haan][]
1042
- - *Paraíso* styles by [Jan T. Sott][]
1043
-
1044
- Miscellaneous improvements:
1045
-
1046
- - Highlighting `=>` prompts in Clojure.
1047
- - [Jeremy Hull][] fixed a lot of styles for consistency.
1048
- - Finally, highlighting PHP and HTML [mixed in peculiar ways][php-html].
1049
- - Objective C and C# now properly highlight titles in method definition.
1050
- - Big overhaul of relevance counting for a number of languages. Please do report
1051
- bugs about mis-detection of non-trivial code snippets!
1052
-
1053
- [API reference]: http://highlightjs.readthedocs.org/en/latest/api.html
1054
-
1055
- [cr]: http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html
1056
- [api docs]: http://highlightjs.readthedocs.org/en/latest/api.html
1057
- [variants]: https://groups.google.com/d/topic/highlightjs/VoGC9-1p5vk/discussion
1058
- [beginKeywords]: https://github.com/isagalaev/highlight.js/commit/6c7fdea002eb3949577a85b3f7930137c7c3038d
1059
- [php-html]: https://twitter.com/highlightjs/status/408890903017689088
1060
-
1061
- [Carlo Kok]: https://github.com/carlokok
1062
- [Bram de Haan]: https://github.com/atelierbram
1063
- [Daniel Kvasnička]: https://github.com/dkvasnicka
1064
- [Dmitry Smolin]: https://github.com/dimsmol
1065
- [Jeremy Hull]: https://github.com/sourrust
1066
- [Seongwon Lee]: https://github.com/dlimpid
1067
- [Jan T. Sott]: https://github.com/idleberg
1068
-
1069
-
1070
- ## Version 7.5
1071
-
1072
- A catch-up release dealing with some of the accumulated contributions. This one
1073
- is probably will be the last before the 8.0 which will be slightly backwards
1074
- incompatible regarding some advanced use-cases.
1075
-
1076
- One outstanding change in this version is the addition of 6 languages to the
1077
- [hosted script][d]: Markdown, ObjectiveC, CoffeeScript, Apache, Nginx and
1078
- Makefile. It now weighs about 6K more but we're going to keep it under 30K.
1079
-
1080
- New languages:
1081
-
1082
- - OCaml by [Mehdi Dogguy][mehdid] and [Nicolas Braud-Santoni][nbraud]
1083
- - [LiveCode Server][lcs] by [Ralf Bitter][revig]
1084
- - Scilab by [Sylvestre Ledru][sylvestre]
1085
- - basic support for Makefile by [Ivan Sagalaev][isagalaev]
1086
-
1087
- Improvements:
1088
-
1089
- - Ruby's got support for characters like `?A`, `?1`, `?\012` etc. and `%r{..}`
1090
- regexps.
1091
- - Clojure now allows a function call in the beginning of s-expressions
1092
- `(($filter "myCount") (arr 1 2 3 4 5))`.
1093
- - Haskell's got new keywords and now recognizes more things like pragmas,
1094
- preprocessors, modules, containers, FFIs etc. Thanks to [Zena Treep][treep]
1095
- for the implementation and to [Jeremy Hull][sourrust] for guiding it.
1096
- - Miscellaneous fixes in PHP, Brainfuck, SCSS, Asciidoc, CMake, Python and F#.
1097
-
1098
- [mehdid]: https://github.com/mehdid
1099
- [nbraud]: https://github.com/nbraud
1100
- [revig]: https://github.com/revig
1101
- [lcs]: http://livecode.com/developers/guides/server/
1102
- [sylvestre]: https://github.com/sylvestre
1103
- [isagalaev]: https://github.com/isagalaev
1104
- [treep]: https://github.com/treep
1105
- [sourrust]: https://github.com/sourrust
1106
- [d]: http://highlightjs.org/download/
1107
-
1108
-
1109
- ## New core developers
1110
-
1111
- The latest long period of almost complete inactivity in the project coincided
1112
- with growing interest to it led to a decision that now seems completely obvious:
1113
- we need more core developers.
1114
-
1115
- So without further ado let me welcome to the core team two long-time
1116
- contributors: [Jeremy Hull][] and [Oleg
1117
- Efimov][].
1118
-
1119
- Hope now we'll be able to work through stuff faster!
1120
-
1121
- P.S. The historical commit is [here][1] for the record.
1122
-
1123
- [Jeremy Hull]: https://github.com/sourrust
1124
- [Oleg Efimov]: https://github.com/sannis
1125
- [1]: https://github.com/isagalaev/highlight.js/commit/f3056941bda56d2b72276b97bc0dd5f230f2473f
1126
-
1127
-
1128
- ## Version 7.4
1129
-
1130
- This long overdue version is a snapshot of the current source tree with all the
1131
- changes that happened during the past year. Sorry for taking so long!
1132
-
1133
- Along with the changes in code highlight.js has finally got its new home at
1134
- <http://highlightjs.org/>, moving from its cradle on Software Maniacs which it
1135
- outgrew a long time ago. Be sure to report any bugs about the site to
1136
- <mailto:info@highlightjs.org>.
1137
-
1138
- On to what's new…
1139
-
1140
- New languages:
1141
-
1142
- - Handlebars templates by [Robin Ward][]
1143
- - Oracle Rules Language by [Jason Jacobson][]
1144
- - F# by [Joans Follesø][]
1145
- - AsciiDoc and Haml by [Dan Allen][]
1146
- - Lasso by [Eric Knibbe][]
1147
- - SCSS by [Kurt Emch][]
1148
- - VB.NET by [Poren Chiang][]
1149
- - Mizar by [Kelley van Evert][]
1150
-
1151
- [Robin Ward]: https://github.com/eviltrout
1152
- [Jason Jacobson]: https://github.com/jayce7
1153
- [Joans Follesø]: https://github.com/follesoe
1154
- [Dan Allen]: https://github.com/mojavelinux
1155
- [Eric Knibbe]: https://github.com/EricFromCanada
1156
- [Kurt Emch]: https://github.com/kemch
1157
- [Poren Chiang]: https://github.com/rschiang
1158
- [Kelley van Evert]: https://github.com/kelleyvanevert
1159
-
1160
- New style themes:
1161
-
1162
- - Monokai Sublime by [noformnocontent][]
1163
- - Railscasts by [Damien White][]
1164
- - Obsidian by [Alexander Marenin][]
1165
- - Docco by [Simon Madine][]
1166
- - Mono Blue by [Ivan Sagalaev][] (uses a single color hue for everything)
1167
- - Foundation by [Dan Allen][]
1168
-
1169
- [noformnocontent]: http://nn.mit-license.org/
1170
- [Damien White]: https://github.com/visoft
1171
- [Alexander Marenin]: https://github.com/ioncreature
1172
- [Simon Madine]: https://github.com/thingsinjars
1173
- [Ivan Sagalaev]: https://github.com/isagalaev
1174
-
1175
- Other notable changes:
1176
-
1177
- - Corrected many corner cases in CSS.
1178
- - Dropped Python 2 version of the build tool.
1179
- - Implemented building for the AMD format.
1180
- - Updated Rust keywords (thanks to [Dmitry Medvinsky][]).
1181
- - Literal regexes can now be used in language definitions.
1182
- - CoffeeScript highlighting is now significantly more robust and rich due to
1183
- input from [Cédric Néhémie][].
1184
-
1185
- [Dmitry Medvinsky]: https://github.com/dmedvinsky
1186
- [Cédric Néhémie]: https://github.com/abe33
1187
-
1188
-
1189
- ## Version 7.3
1190
-
1191
- - Since this version highlight.js no longer works in IE version 8 and older.
1192
- It's made it possible to reduce the library size and dramatically improve code
1193
- readability and made it easier to maintain. Time to go forward!
1194
-
1195
- - New languages: AppleScript (by [Nathan Grigg][ng] and [Dr. Drang][dd]) and
1196
- Brainfuck (by [Evgeny Stepanischev][bolk]).
1197
-
1198
- - Improvements to existing languages:
1199
-
1200
- - interpreter prompt in Python (`>>>` and `...`)
1201
- - @-properties and classes in CoffeeScript
1202
- - E4X in JavaScript (by [Oleg Efimov][oe])
1203
- - new keywords in Perl (by [Kirk Kimmel][kk])
1204
- - big Ruby syntax update (by [Vasily Polovnyov][vast])
1205
- - small fixes in Bash
1206
-
1207
- - Also Oleg Efimov did a great job of moving all the docs for language and style
1208
- developers and contributors from the old wiki under the source code in the
1209
- "docs" directory. Now these docs are nicely presented at
1210
- <http://highlightjs.readthedocs.org/>.
1211
-
1212
- [ng]: https://github.com/nathan11g
1213
- [dd]: https://github.com/drdrang
1214
- [bolk]: https://github.com/bolknote
1215
- [oe]: https://github.com/Sannis
1216
- [kk]: https://github.com/kimmel
1217
- [vast]: https://github.com/vast
1218
-
1219
-
1220
- ## Version 7.2
1221
-
1222
- A regular bug-fix release without any significant new features. Enjoy!
1223
-
1224
-
1225
- ## Version 7.1
1226
-
1227
- A Summer crop:
1228
-
1229
- - [Marc Fornos][mf] made the definition for Clojure along with the matching
1230
- style Rainbow (which, of course, works for other languages too).
1231
- - CoffeeScript support continues to improve getting support for regular
1232
- expressions.
1233
- - Yoshihide Jimbo ported to highlight.js [five Tomorrow styles][tm] from the
1234
- [project by Chris Kempson][tm0].
1235
- - Thanks to [Casey Duncun][cd] the library can now be built in the popular
1236
- [AMD format][amd].
1237
- - And last but not least, we've got a fair number of correctness and consistency
1238
- fixes, including a pretty significant refactoring of Ruby.
1239
-
1240
- [mf]: https://github.com/mfornos
1241
- [tm]: http://jmblog.github.com/color-themes-for-highlightjs/
1242
- [tm0]: https://github.com/ChrisKempson/Tomorrow-Theme
1243
- [cd]: https://github.com/caseman
1244
- [amd]: http://requirejs.org/docs/whyamd.html
1245
-
1246
-
1247
- ## Version 7.0
1248
-
1249
- The reason for the new major version update is a global change of keyword syntax
1250
- which resulted in the library getting smaller once again. For example, the
1251
- hosted build is 2K less than at the previous version while supporting two new
1252
- languages.
1253
-
1254
- Notable changes:
1255
-
1256
- - The library now works not only in a browser but also with [node.js][]. It is
1257
- installable with `npm install highlight.js`. [API][] docs are available on our
1258
- wiki.
1259
-
1260
- - The new unique feature (apparently) among syntax highlighters is highlighting
1261
- *HTTP* headers and an arbitrary language in the request body. The most useful
1262
- languages here are *XML* and *JSON* both of which highlight.js does support.
1263
- Here's [the detailed post][p] about the feature.
1264
-
1265
- - Two new style themes: a dark "south" *[Pojoaque][]* by Jason Tate and an
1266
- emulation of*XCode* IDE by [Angel Olloqui][ao].
1267
-
1268
- - Three new languages: *D* by [Aleksandar Ružičić][ar], *R* by [Joe Cheng][jc]
1269
- and *GLSL* by [Sergey Tikhomirov][st].
1270
-
1271
- - *Nginx* syntax has become a million times smaller and more universal thanks to
1272
- remaking it in a more generic manner that doesn't require listing all the
1273
- directives in the known universe.
1274
-
1275
- - Function titles are now highlighted in *PHP*.
1276
-
1277
- - *Haskell* and *VHDL* were significantly reworked to be more rich and correct
1278
- by their respective maintainers [Jeremy Hull][sr] and [Igor Kalnitsky][ik].
1279
-
1280
- And last but not least, many bugs have been fixed around correctness and
1281
- language detection.
1282
-
1283
- Overall highlight.js currently supports 51 languages and 20 style themes.
1284
-
1285
- [node.js]: http://nodejs.org/
1286
- [api]: http://softwaremaniacs.org/wiki/doku.php/highlight.js:api
1287
- [p]: http://softwaremaniacs.org/blog/2012/05/10/http-and-json-in-highlight-js/en/
1288
- [pojoaque]: http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html
1289
- [ao]: https://github.com/angelolloqui
1290
- [ar]: https://github.com/raleksandar
1291
- [jc]: https://github.com/jcheng5
1292
- [st]: https://github.com/tikhomirov
1293
- [sr]: https://github.com/sourrust
1294
- [ik]: https://github.com/ikalnitsky
1295
-
1296
-
1297
- ## Version 6.2
1298
-
1299
- A lot of things happened in highlight.js since the last version! We've got nine
1300
- new contributors, the discussion group came alive, and the main branch on GitHub
1301
- now counts more than 350 followers. Here are most significant results coming
1302
- from all this activity:
1303
-
1304
- - 5 (five!) new languages: Rust, ActionScript, CoffeeScript, MatLab and
1305
- experimental support for markdown. Thanks go to [Andrey Vlasovskikh][av],
1306
- [Alexander Myadzel][am], [Dmytrii Nagirniak][dn], [Oleg Efimov][oe], [Denis
1307
- Bardadym][db] and [John Crepezzi][jc].
1308
-
1309
- - 2 new style themes: Monokai by [Luigi Maselli][lm] and stylistic imitation of
1310
- another well-known highlighter Google Code Prettify by [Aahan Krish][ak].
1311
-
1312
- - A vast number of [correctness fixes and code refactorings][log], mostly made
1313
- by [Oleg Efimov][oe] and [Evgeny Stepanischev][es].
1314
-
1315
- [av]: https://github.com/vlasovskikh
1316
- [am]: https://github.com/myadzel
1317
- [dn]: https://github.com/dnagir
1318
- [oe]: https://github.com/Sannis
1319
- [db]: https://github.com/btd
1320
- [jc]: https://github.com/seejohnrun
1321
- [lm]: http://grigio.org/
1322
- [ak]: https://github.com/geekpanth3r
1323
- [es]: https://github.com/bolknote
1324
- [log]: https://github.com/isagalaev/highlight.js/commits/
1325
-
1326
-
1327
- ## Version 6.1 — Solarized
1328
-
1329
- [Jeremy Hull][jh] has implemented my dream feature — a port of [Solarized][]
1330
- style theme famous for being based on the intricate color theory to achieve
1331
- correct contrast and color perception. It is now available for highlight.js in
1332
- both variants — light and dark.
1333
-
1334
- This version also adds a new original style Arta. Its author pumbur maintains a
1335
- [heavily modified fork of highlight.js][pb] on GitHub.
1336
-
1337
- [jh]: https://github.com/sourrust
1338
- [solarized]: http://ethanschoonover.com/solarized
1339
- [pb]: https://github.com/pumbur/highlight.js
1340
-
1341
-
1342
- ## Version 6.0
1343
-
1344
- New major version of the highlighter has been built on a significantly
1345
- refactored syntax. Due to this it's even smaller than the previous one while
1346
- supporting more languages!
1347
-
1348
- New languages are:
1349
-
1350
- - Haskell by [Jeremy Hull][sourrust]
1351
- - Erlang in two varieties — module and REPL — made collectively by [Nikolay
1352
- Zakharov][desh], [Dmitry Kovega][arhibot] and [Sergey Ignatov][ignatov]
1353
- - Objective C by [Valerii Hiora][vhbit]
1354
- - Vala by [Antono Vasiljev][antono]
1355
- - Go by [Stephan Kountso][steplg]
1356
-
1357
- [sourrust]: https://github.com/sourrust
1358
- [desh]: http://desh.su/
1359
- [arhibot]: https://github.com/arhibot
1360
- [ignatov]: https://github.com/ignatov
1361
- [vhbit]: https://github.com/vhbit
1362
- [antono]: https://github.com/antono
1363
- [steplg]: https://github.com/steplg
1364
-
1365
- Also this version is marginally faster and fixes a number of small long-standing
1366
- bugs.
1367
-
1368
- Developer overview of the new language syntax is available in a [blog post about
1369
- recent beta release][beta].
1370
-
1371
- [beta]: http://softwaremaniacs.org/blog/2011/04/25/highlight-js-60-beta/en/
1372
-
1373
- P.S. New version is not yet available on a Yandex CDN, so for now you have to
1374
- download [your own copy][d].
1375
-
1376
- [d]: /soft/highlight/en/download/
1377
-
1378
-
1379
- ## Version 5.14
1380
-
1381
- Fixed bugs in HTML/XML detection and relevance introduced in previous
1382
- refactoring.
1383
-
1384
- Also test.html now shows the second best result of language detection by
1385
- relevance.
1386
-
1387
-
1388
- ## Version 5.13
1389
-
1390
- Past weekend began with a couple of simple additions for existing languages but
1391
- ended up in a big code refactoring bringing along nice improvements for language
1392
- developers.
1393
-
1394
- ### For users
1395
-
1396
- - Description of C++ has got new keywords from the upcoming [C++ 0x][] standard.
1397
- - Description of HTML has got new tags from [HTML 5][].
1398
- - CSS-styles have been unified to use consistent padding and also have lost
1399
- pop-outs with names of detected languages.
1400
- - [Igor Kalnitsky][ik] has sent two new language descriptions: CMake & VHDL.
1401
-
1402
- This makes total number of languages supported by highlight.js to reach 35.
1403
-
1404
- Bug fixes:
1405
-
1406
- - Custom classes on `<pre>` tags are not being overridden anymore
1407
- - More correct highlighting of code blocks inside non-`<pre>` containers:
1408
- highlighter now doesn't insist on replacing them with its own container and
1409
- just replaces the contents.
1410
- - Small fixes in browser compatibility and heuristics.
1411
-
1412
- [c++ 0x]: http://ru.wikipedia.org/wiki/C%2B%2B0x
1413
- [html 5]: http://en.wikipedia.org/wiki/HTML5
1414
- [ik]: http://kalnitsky.org.ua/
1415
-
1416
- ### For developers
1417
-
1418
- The most significant change is the ability to include language submodes right
1419
- under `contains` instead of defining explicit named submodes in the main array:
1420
-
1421
- contains: [
1422
- 'string',
1423
- 'number',
1424
- {begin: '\\n', end: hljs.IMMEDIATE_RE}
1425
- ]
1426
-
1427
- This is useful for auxiliary modes needed only in one place to define parsing.
1428
- Note that such modes often don't have `className` and hence won't generate a
1429
- separate `<span>` in the resulting markup. This is similar in effect to
1430
- `noMarkup: true`. All existing languages have been refactored accordingly.
1431
-
1432
- Test file test.html has at last become a real test. Now it not only puts the
1433
- detected language name under the code snippet but also tests if it matches the
1434
- expected one. Test summary is displayed right above all language snippets.
1435
-
1436
-
1437
- ## CDN
1438
-
1439
- Fine people at [Yandex][] agreed to host highlight.js on their big fast servers.
1440
- [Link up][l]!
1441
-
1442
- [yandex]: http://yandex.com/
1443
- [l]: http://softwaremaniacs.org/soft/highlight/en/download/
1444
-
1445
-
1446
- ## Version 5.10 — "Paris".
1447
-
1448
- Though I'm on a vacation in Paris, I decided to release a new version with a
1449
- couple of small fixes:
1450
-
1451
- - Tomas Vitvar discovered that TAB replacement doesn't always work when used
1452
- with custom markup in code
1453
- - SQL parsing is even more rigid now and doesn't step over SmallTalk in tests
1454
-
1455
-
1456
- ## Version 5.9
1457
-
1458
- A long-awaited version is finally released.
1459
-
1460
- New languages:
1461
-
1462
- - Andrew Fedorov made a definition for Lua
1463
- - a long-time highlight.js contributor [Peter Leonov][pl] made a definition for
1464
- Nginx config
1465
- - [Vladimir Moskva][vm] made a definition for TeX
1466
-
1467
- [pl]: http://kung-fu-tzu.ru/
1468
- [vm]: http://fulc.ru/
1469
-
1470
- Fixes for existing languages:
1471
-
1472
- - [Loren Segal][ls] reworked the Ruby definition and added highlighting for
1473
- [YARD][] inline documentation
1474
- - the definition of SQL has become more solid and now it shouldn't be overly
1475
- greedy when it comes to language detection
1476
-
1477
- [ls]: http://gnuu.org/
1478
- [yard]: http://yardoc.org/
1479
-
1480
- The highlighter has become more usable as a library allowing to do highlighting
1481
- from initialization code of JS frameworks and in ajax methods (see.
1482
- readme.eng.txt).
1483
-
1484
- Also this version drops support for the [WordPress][wp] plugin. Everyone is
1485
- welcome to [pick up its maintenance][p] if needed.
1486
-
1487
- [wp]: http://wordpress.org/
1488
- [p]: http://bazaar.launchpad.net/~isagalaev/+junk/highlight/annotate/342/src/wp_highlight.js.php
1489
-
1490
-
1491
- ## Version 5.8
1492
-
1493
- - Jan Berkel has contributed a definition for Scala. +1 to hotness!
1494
- - All CSS-styles are rewritten to work only inside `<pre>` tags to avoid
1495
- conflicts with host site styles.
1496
-
1497
-
1498
- ## Version 5.7.
1499
-
1500
- Fixed escaping of quotes in VBScript strings.
1501
-
1502
-
1503
- ## Version 5.5
1504
-
1505
- This version brings a small change: now .ini-files allow digits, underscores and
1506
- square brackets in key names.
1507
-
1508
-
1509
- ## Version 5.4
1510
-
1511
- Fixed small but upsetting bug in the packer which caused incorrect highlighting
1512
- of explicitly specified languages. Thanks to Andrew Fedorov for precise
1513
- diagnostics!
1514
-
1515
-
1516
- ## Version 5.3
1517
-
1518
- The version to fulfil old promises.
1519
-
1520
- The most significant change is that highlight.js now preserves custom user
1521
- markup in code along with its own highlighting markup. This means that now it's
1522
- possible to use, say, links in code. Thanks to [Vladimir Dolzhenko][vd] for the
1523
- [initial proposal][1] and for making a proof-of-concept patch.
1524
-
1525
- Also in this version:
1526
-
1527
- - [Vasily Polovnyov][vp] has sent a GitHub-like style and has implemented
1528
- support for CSS @-rules and Ruby symbols.
1529
- - Yura Zaripov has sent two styles: Brown Paper and School Book.
1530
- - Oleg Volchkov has sent a definition for [Parser 3][p3].
1531
-
1532
- [1]: http://softwaremaniacs.org/forum/highlightjs/6612/
1533
- [p3]: http://www.parser.ru/
1534
- [vp]: http://vasily.polovnyov.ru/
1535
- [vd]: http://dolzhenko.blogspot.com/
1536
-
1537
-
1538
- ## Version 5.2
1539
-
1540
- - at last it's possible to replace indentation TABs with something sensible
1541
- (e.g. 2 or 4 spaces)
1542
- - new keywords and built-ins for 1C by Sergey Baranov
1543
- - a couple of small fixes to Apache highlighting
1544
-
1545
-
1546
- ## Version 5.1
1547
-
1548
- This is one of those nice version consisting entirely of new and shiny
1549
- contributions!
1550
-
1551
- - [Vladimir Ermakov][vooon] created highlighting for AVR Assembler
1552
- - [Ruslan Keba][rukeba] created highlighting for Apache config file. Also his
1553
- original visual style for it is now available for all highlight.js languages
1554
- under the name "Magula".
1555
- - [Shuen-Huei Guan][drake] (aka Drake) sent new keywords for RenderMan
1556
- languages. Also thanks go to [Konstantin Evdokimenko][ke] for his advice on
1557
- the matter.
1558
-
1559
- [vooon]: http://vehq.ru/about/
1560
- [rukeba]: http://rukeba.com/
1561
- [drake]: http://drakeguan.org/
1562
- [ke]: http://k-evdokimenko.moikrug.ru/
1563
-
1564
-
1565
- ## Version 5.0
1566
-
1567
- The main change in the new major version of highlight.js is a mechanism for
1568
- packing several languages along with the library itself into a single compressed
1569
- file. Now sites using several languages will load considerably faster because
1570
- the library won't dynamically include additional files while loading.
1571
-
1572
- Also this version fixes a long-standing bug with Javascript highlighting that
1573
- couldn't distinguish between regular expressions and division operations.
1574
-
1575
- And as usually there were a couple of minor correctness fixes.
1576
-
1577
- Great thanks to all contributors! Keep using highlight.js.
1578
-
1579
-
1580
- ## Version 4.3
1581
-
1582
- This version comes with two contributions from [Jason Diamond][jd]:
1583
-
1584
- - language definition for C# (yes! it was a long-missed thing!)
1585
- - Visual Studio-like highlighting style
1586
-
1587
- Plus there are a couple of minor bug fixes for parsing HTML and XML attributes.
1588
-
1589
- [jd]: http://jason.diamond.name/weblog/
1590
-
1591
-
1592
- ## Version 4.2
1593
-
1594
- The biggest news is highlighting for Lisp, courtesy of Vasily Polovnyov. It's
1595
- somewhat experimental meaning that for highlighting "keywords" it doesn't use
1596
- any pre-defined set of a Lisp dialect. Instead it tries to highlight first word
1597
- in parentheses wherever it makes sense. I'd like to ask people programming in
1598
- Lisp to confirm if it's a good idea and send feedback to [the forum][f].
1599
-
1600
- Other changes:
1601
-
1602
- - Smalltalk was excluded from DEFAULT_LANGUAGES to save traffic
1603
- - [Vladimir Epifanov][voldmar] has implemented javascript style switcher for
1604
- test.html
1605
- - comments now allowed inside Ruby function definition
1606
- - [MEL][] language from [Shuen-Huei Guan][drake]
1607
- - whitespace now allowed between `<pre>` and `<code>`
1608
- - better auto-detection of C++ and PHP
1609
- - HTML allows embedded VBScript (`<% .. %>`)
1610
-
1611
- [f]: http://softwaremaniacs.org/forum/highlightjs/
1612
- [voldmar]: http://voldmar.ya.ru/
1613
- [mel]: http://en.wikipedia.org/wiki/Maya_Embedded_Language
1614
- [drake]: http://drakeguan.org/
1615
-
1616
-
1617
- ## Version 4.1
1618
-
1619
- Languages:
1620
-
1621
- - Bash from Vah
1622
- - DOS bat-files from Alexander Makarov (Sam)
1623
- - Diff files from Vasily Polovnyov
1624
- - Ini files from myself though initial idea was from Sam
1625
-
1626
- Styles:
1627
-
1628
- - Zenburn from Vladimir Epifanov, this is an imitation of a
1629
- [well-known theme for Vim][zenburn].
1630
- - Ascetic from myself, as a realization of ideals of non-flashy highlighting:
1631
- just one color in only three gradations :-)
1632
-
1633
- In other news. [One small bug][bug] was fixed, built-in keywords were added for
1634
- Python and C++ which improved auto-detection for the latter (it was shame that
1635
- [my wife's blog][alenacpp] had issues with it from time to time). And lastly
1636
- thanks go to Sam for getting rid of my stylistic comments in code that were
1637
- getting in the way of [JSMin][].
1638
-
1639
- [zenburn]: http://en.wikipedia.org/wiki/Zenburn
1640
- [alenacpp]: http://alenacpp.blogspot.com/
1641
- [bug]: http://softwaremaniacs.org/forum/viewtopic.php?id=1823
1642
- [jsmin]: http://code.google.com/p/jsmin-php/
1643
-
1644
-
1645
- ## Version 4.0
1646
-
1647
- New major version is a result of vast refactoring and of many contributions.
1648
-
1649
- Visible new features:
1650
-
1651
- - Highlighting of embedded languages. Currently is implemented highlighting of
1652
- Javascript and CSS inside HTML.
1653
- - Bundled 5 ready-made style themes!
1654
-
1655
- Invisible new features:
1656
-
1657
- - Highlight.js no longer pollutes global namespace. Only one object and one
1658
- function for backward compatibility.
1659
- - Performance is further increased by about 15%.
1660
-
1661
- Changing of a major version number caused by a new format of language definition
1662
- files. If you use some third-party language files they should be updated.
1663
-
1664
-
1665
- ## Version 3.5
1666
-
1667
- A very nice version in my opinion fixing a number of small bugs and slightly
1668
- increased speed in a couple of corner cases. Thanks to everybody who reports
1669
- bugs in he [forum][f] and by email!
1670
-
1671
- There is also a new language — XML. A custom XML formerly was detected as HTML
1672
- and didn't highlight custom tags. In this version I tried to make custom XML to
1673
- be detected and highlighted by its own rules. Which by the way include such
1674
- things as CDATA sections and processing instructions (`<? ... ?>`).
1675
-
1676
- [f]: http://softwaremaniacs.org/forum/viewforum.php?id=6
1677
-
1678
-
1679
- ## Version 3.3
1680
-
1681
- [Vladimir Gubarkov][xonix] has provided an interesting and useful addition.
1682
- File export.html contains a little program that shows and allows to copy and
1683
- paste an HTML code generated by the highlighter for any code snippet. This can
1684
- be useful in situations when one can't use the script itself on a site.
1685
-
1686
-
1687
- [xonix]: http://xonixx.blogspot.com/
1688
-
1689
-
1690
- ## Version 3.2 consists completely of contributions:
1691
-
1692
- - Vladimir Gubarkov has described SmallTalk
1693
- - Yuri Ivanov has described 1C
1694
- - Peter Leonov has packaged the highlighter as a Firefox extension
1695
- - Vladimir Ermakov has compiled a mod for phpBB
1696
-
1697
- Many thanks to you all!
1698
-
1699
-
1700
- ## Version 3.1
1701
-
1702
- Three new languages are available: Django templates, SQL and Axapta. The latter
1703
- two are sent by [Dmitri Roudakov][1]. However I've almost entirely rewrote an
1704
- SQL definition but I'd never started it be it from the ground up :-)
1705
-
1706
- The engine itself has got a long awaited feature of grouping keywords
1707
- ("keyword", "built-in function", "literal"). No more hacks!
1708
-
1709
- [1]: http://roudakov.ru/
1710
-
1711
-
1712
- ## Version 3.0
1713
-
1714
- It is major mainly because now highlight.js has grown large and has become
1715
- modular. Now when you pass it a list of languages to highlight it will
1716
- dynamically load into a browser only those languages.
1717
-
1718
- Also:
1719
-
1720
- - Konstantin Evdokimenko of [RibKit][] project has created a highlighting for
1721
- RenderMan Shading Language and RenderMan Interface Bytestream. Yay for more
1722
- languages!
1723
- - Heuristics for C++ and HTML got better.
1724
- - I've implemented (at last) a correct handling of backslash escapes in C-like
1725
- languages.
1726
-
1727
- There is also a small backwards incompatible change in the new version. The
1728
- function initHighlighting that was used to initialize highlighting instead of
1729
- initHighlightingOnLoad a long time ago no longer works. If you by chance still
1730
- use it — replace it with the new one.
1731
-
1732
- [RibKit]: http://ribkit.sourceforge.net/
1733
-
1734
-
1735
- ## Version 2.9
1736
-
1737
- Highlight.js is a parser, not just a couple of regular expressions. That said
1738
- I'm glad to announce that in the new version 2.9 has support for:
1739
-
1740
- - in-string substitutions for Ruby -- `#{...}`
1741
- - strings from from numeric symbol codes (like #XX) for Delphi
1742
-
1743
-
1744
- ## Version 2.8
1745
-
1746
- A maintenance release with more tuned heuristics. Fully backwards compatible.
1747
-
1748
-
1749
- ## Version 2.7
1750
-
1751
- - Nikita Ledyaev presents highlighting for VBScript, yay!
1752
- - A couple of bugs with escaping in strings were fixed thanks to Mickle
1753
- - Ongoing tuning of heuristics
1754
-
1755
- Fixed bugs were rather unpleasant so I encourage everyone to upgrade!
1756
-
1757
-
1758
- ## Version 2.4
1759
-
1760
- - Peter Leonov provides another improved highlighting for Perl
1761
- - Javascript gets a new kind of keywords — "literals". These are the words
1762
- "true", "false" and "null"
1763
-
1764
- Also highlight.js homepage now lists sites that use the library. Feel free to
1765
- add your site by [dropping me a message][mail] until I find the time to build a
1766
- submit form.
1767
-
1768
- [mail]: mailto:Maniac@SoftwareManiacs.Org
1769
-
1770
-
1771
- ## Version 2.3
1772
-
1773
- This version fixes IE breakage in previous version. My apologies to all who have
1774
- already downloaded that one!
1775
-
1776
-
1777
- ## Version 2.2
1778
-
1779
- - added highlighting for Javascript
1780
- - at last fixed parsing of Delphi's escaped apostrophes in strings
1781
- - in Ruby fixed highlighting of keywords 'def' and 'class', same for 'sub' in
1782
- Perl
1783
-
1784
-
1785
- ## Version 2.0
1786
-
1787
- - Ruby support by [Anton Kovalyov][ak]
1788
- - speed increased by orders of magnitude due to new way of parsing
1789
- - this same way allows now correct highlighting of keywords in some tricky
1790
- places (like keyword "End" at the end of Delphi classes)
1791
-
1792
- [ak]: http://anton.kovalyov.net/
1793
-
1794
-
1795
- ## Version 1.0
1796
-
1797
- Version 1.0 of javascript syntax highlighter is released!
1798
-
1799
- It's the first version available with English description. Feel free to post
1800
- your comments and question to [highlight.js forum][forum]. And don't be afraid
1801
- if you find there some fancy Cyrillic letters -- it's for Russian users too :-)
1802
-
1803
- [forum]: http://softwaremaniacs.org/forum/viewforum.php?id=6