国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CHANGES.md 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. ## Version 8.0 beta
  2. This new major release is quite a big overhaul bringing both new features and
  3. some backwards incompatible changes. However, chances are that the majority of
  4. users won't be affected by the latter: the basic scenario described in the
  5. README is left intact.
  6. Here's what did change in an incompatible way:
  7. - We're now prefixing all classes located in [CSS classes reference][cr] with
  8. `hljs-`, by default, because some class names would collide with other
  9. people's stylesheets. If you were using an older version, you might still want
  10. the previous behavior, but still want to upgrade. To suppress this new
  11. behavior, you would initialize like so:
  12. ```html
  13. <script type="text/javascript">
  14. hljs.configure({classPrefix: ''});
  15. hljs.initHighlightingOnLoad();
  16. </script>
  17. ```
  18. - `tabReplace` and `useBR` that were used in different places are also unified
  19. into the global options object and are to be set using `configure(options)`.
  20. This function is documented in our [API docs][]. Also note that these
  21. parameters are gone from `highlightBlock` and `fixMarkup` which are now also
  22. rely on `configure`.
  23. - We removed public-facing (though undocumented) object `hljs.LANGUAGES` which
  24. was used to register languages with the library in favor of two new methods:
  25. `registerLanguage` and `getLanguage`. Both are documented in our [API docs][].
  26. - Result returned from `highlight` and `highlightAuto` no longer contains two
  27. separate attributes contributing to relevance score, `relevance` and
  28. `keyword_count`. They are now unified in `relevance`.
  29. Another technically compatible change that nonetheless might need attention:
  30. - The structure of the NPM package was refactored, so if you had installed it
  31. locally, you'll have to update your paths. The usual `require('highlight.js')`
  32. works as before. This is contributed by [Dmitry Smolin][].
  33. New features:
  34. - Languages now can be recognized by multiple names like "js" for JavaScript or
  35. "html" for, well, HTML (which earlier insisted on calling it "xml"). These
  36. aliases can be specified in the class attribute of the code container in your
  37. HTML as well as in various API calls. For now there are only a few very common
  38. aliases but we'll expand it in the future. All of them are listed in the
  39. [class reference][].
  40. - Language detection can now be restricted to a subset of languages relevant in
  41. a given context — a web page or even a single highlighting call. This is
  42. especially useful for node.js build that includes all the known languages.
  43. Another example is a StackOverflow-style site where users specify languages
  44. as tags rather than in the markdown-formatted code snippets. This is
  45. documented in the [API reference][] (see methods `highlightAuto` and
  46. `configure`).
  47. - Language definition syntax streamlined with [variants][] and
  48. [beginKeywords][].
  49. New languages and styles:
  50. - *Oxygene* by [Carlo Kok][]
  51. - *Mathematica* by [Daniel Kvasnička][]
  52. - *Autohotkey* by [Seongwon Lee][]
  53. - *Atelier* family of styles in 10 variants by [Bram de Haan][]
  54. - *Paraíso* styles by [Jan T. Sott][]
  55. Miscelleanous improvements:
  56. - Highlighting `=>` prompts in Clojure.
  57. - [Jeremy Hull][] fixed a lot of styles for consistency.
  58. - Finally, highlighting PHP and HTML [mixed in peculiar ways][php-html].
  59. - Objective C and C# now properly highlight titles in method definition.
  60. - Big overhaul of relevance counting for a number of languages. Please do report
  61. bugs about mis-detection of non-trivial code snippets!
  62. [cr]: http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html
  63. [api docs]: http://highlightjs.readthedocs.org/en/latest/api.html
  64. [variants]: https://groups.google.com/d/topic/highlightjs/VoGC9-1p5vk/discussion
  65. [beginKeywords]: https://github.com/isagalaev/highlight.js/commit/6c7fdea002eb3949577a85b3f7930137c7c3038d
  66. [php-html]: https://twitter.com/highlightjs/status/408890903017689088
  67. [Carlo Kok]: https://github.com/carlokok
  68. [Bram de Haan]: https://github.com/atelierbram
  69. [Daniel Kvasnička]: https://github.com/dkvasnicka
  70. [Dmitry Smolin]: https://github.com/dimsmol
  71. [Jeremy Hull]: https://github.com/sourrust
  72. [Seongwon Lee]: https://github.com/dlimpid
  73. [Jan T. Sott]: https://github.com/idleberg
  74. ## Version 7.5
  75. A catch-up release dealing with some of the accumulated contributions. This one
  76. is probably will be the last before the 8.0 which will be slightly backwards
  77. incompatible regarding some advanced use-cases.
  78. One outstanding change in this version is the addition of 6 languages to the
  79. [hosted script][d]: Markdown, ObjectiveC, CoffeeScript, Apache, Nginx and
  80. Makefile. It now weighs about 6K more but we're going to keep it under 30K.
  81. New languages:
  82. - OCaml by [Mehdi Dogguy][mehdid] and [Nicolas Braud-Santoni][nbraud]
  83. - [LiveCode Server][lcs] by [Ralf Bitter][revig]
  84. - Scilab by [Sylvestre Ledru][sylvestre]
  85. - basic support for Makefile by [Ivan Sagalaev][isagalaev]
  86. Improvements:
  87. - Ruby's got support for characters like `?A`, `?1`, `?\012` etc. and `%r{..}`
  88. regexps.
  89. - Clojure now allows a function call in the beginning of s-expressions
  90. `(($filter "myCount") (arr 1 2 3 4 5))`.
  91. - Haskell's got new keywords and now recognizes more things like pragmas,
  92. preprocessors, modules, containers, FFIs etc. Thanks to [Zena Treep][treep]
  93. for the implementation and to [Jeremy Hull][sourrust] for guiding it.
  94. - Miscelleanous fixes in PHP, Brainfuck, SCSS, Asciidoc, CMake, Python and F#.
  95. [mehdid]: https://github.com/mehdid
  96. [nbraud]: https://github.com/nbraud
  97. [revig]: https://github.com/revig
  98. [lcs]: http://livecode.com/developers/guides/server/
  99. [sylvestre]: https://github.com/sylvestre
  100. [isagalaev]: https://github.com/isagalaev
  101. [treep]: https://github.com/treep
  102. [sourrust]: https://github.com/sourrust
  103. [d]: http://highlightjs.org/download/
  104. ## New core developers
  105. The latest long period of almost complete inactivity in the project coincided
  106. with growing interest to it led to a decision that now seems completely obvious:
  107. we need more core developers.
  108. So without further ado let me welcome to the core team two long-time
  109. contributors: [Jeremy Hull][] and [Oleg
  110. Efimov][].
  111. Hope now we'll be able to work through stuff faster!
  112. P.S. The historical commit is [here][1] for the record.
  113. [Jeremy Hull]: https://github.com/sourrust
  114. [Oleg Efimov]: https://github.com/sannis
  115. [1]: https://github.com/isagalaev/highlight.js/commit/f3056941bda56d2b72276b97bc0dd5f230f2473f
  116. ## Version 7.4
  117. This long overdue version is a snapshot of the current source tree with all the
  118. changes that happened during the past year. Sorry for taking so long!
  119. Along with the changes in code highlight.js has finally got its new home at
  120. <http://highlightjs.org/>, moving from its craddle on Software Maniacs which it
  121. outgrew a long time ago. Be sure to report any bugs about the site to
  122. <mailto:info@highlightjs.org>.
  123. On to what's new…
  124. New languages:
  125. - Handlebars templates by [Robin Ward][]
  126. - Oracle Rules Language by [Jason Jacobson][]
  127. - F# by [Joans Follesø][]
  128. - AsciiDoc and Haml by [Dan Allen][]
  129. - Lasso by [Eric Knibbe][]
  130. - SCSS by [Kurt Emch][]
  131. - VB.NET by [Poren Chiang][]
  132. - Mizar by [Kelley van Evert][]
  133. [Robin Ward]: https://github.com/eviltrout
  134. [Jason Jacobson]: https://github.com/jayce7
  135. [Joans Follesø]: https://github.com/follesoe
  136. [Dan Allen]: https://github.com/mojavelinux
  137. [Eric Knibbe]: https://github.com/EricFromCanada
  138. [Kurt Emch]: https://github.com/kemch
  139. [Poren Chiang]: https://github.com/rschiang
  140. [Kelley van Evert]: https://github.com/kelleyvanevert
  141. New style themes:
  142. - Monokai Sublime by [noformnocontent][]
  143. - Railscasts by [Damien White][]
  144. - Obsidian by [Alexander Marenin][]
  145. - Docco by [Simon Madine][]
  146. - Mono Blue by [Ivan Sagalaev][] (uses a single color hue for everything)
  147. - Foundation by [Dan Allen][]
  148. [noformnocontent]: http://nn.mit-license.org/
  149. [Damien White]: https://github.com/visoft
  150. [Alexander Marenin]: https://github.com/ioncreature
  151. [Simon Madine]: https://github.com/thingsinjars
  152. [Ivan Sagalaev]: https://github.com/isagalaev
  153. Other notable changes:
  154. - Corrected many corner cases in CSS.
  155. - Dropped Python 2 version of the build tool.
  156. - Implemented building for the AMD format.
  157. - Updated Rust keywords (thanks to [Dmitry Medvinsky][]).
  158. - Literal regexes can now be used in language definitions.
  159. - CoffeeScript highlighting is now significantly more robust and rich due to
  160. input from [Cédric Néhémie][].
  161. [Dmitry Medvinsky]: https://github.com/dmedvinsky
  162. [Cédric Néhémie]: https://github.com/abe33
  163. ## Version 7.3
  164. - Since this version highlight.js no longer works in IE version 8 and older.
  165. It's made it possible to reduce the library size and dramatically improve code
  166. readability and made it easier to maintain. Time to go forward!
  167. - New languages: AppleScript (by [Nathan Grigg][ng] and [Dr. Drang][dd]) and
  168. Brainfuck (by [Evgeny Stepanischev][bolk]).
  169. - Improvements to existing languages:
  170. - interpreter prompt in Python (`>>>` and `...`)
  171. - @-properties and classes in CoffeeScript
  172. - E4X in JavaScript (by [Oleg Efimov][oe])
  173. - new keywords in Perl (by [Kirk Kimmel][kk])
  174. - big Ruby syntax update (by [Vasily Polovnyov][vast])
  175. - small fixes in Bash
  176. - Also Oleg Efimov did a great job of moving all the docs for language and style
  177. developers and contributors from the old wiki under the source code in the
  178. "docs" directory. Now these docs are nicely presented at
  179. <http://highlightjs.readthedocs.org/>.
  180. [ng]: https://github.com/nathan11g
  181. [dd]: https://github.com/drdrang
  182. [bolk]: https://github.com/bolknote
  183. [oe]: https://github.com/Sannis
  184. [kk]: https://github.com/kimmel
  185. [vast]: https://github.com/vast
  186. ## Version 7.2
  187. A regular bug-fix release without any significant new features. Enjoy!
  188. ## Version 7.1
  189. A Summer crop:
  190. - [Marc Fornos][mf] made the definition for Clojure along with the matching
  191. style Rainbow (which, of course, works for other languages too).
  192. - CoffeeScript support continues to improve getting support for regular
  193. expressions.
  194. - Yoshihide Jimbo ported to highlight.js [five Tomorrow styles][tm] from the
  195. [project by Chris Kempson][tm0].
  196. - Thanks to [Casey Duncun][cd] the library can now be built in the popular
  197. [AMD format][amd].
  198. - And last but not least, we've got a fair number of correctness and consistency
  199. fixes, including a pretty significant refactoring of Ruby.
  200. [mf]: https://github.com/mfornos
  201. [tm]: http://jmblog.github.com/color-themes-for-highlightjs/
  202. [tm0]: https://github.com/ChrisKempson/Tomorrow-Theme
  203. [cd]: https://github.com/caseman
  204. [amd]: http://requirejs.org/docs/whyamd.html
  205. ## Version 7.0
  206. The reason for the new major version update is a global change of keyword syntax
  207. which resulted in the library getting smaller once again. For example, the
  208. hosted build is 2K less than at the previous version while supporting two new
  209. languages.
  210. Notable changes:
  211. - The library now works not only in a browser but also with [node.js][]. It is
  212. installable with `npm install highlight.js`. [API][] docs are available on our
  213. wiki.
  214. - The new unique feature (apparently) among syntax highlighters is highlighting
  215. *HTTP* headers and an arbitrary language in the request body. The most useful
  216. languages here are *XML* and *JSON* both of which highlight.js does support.
  217. Here's [the detailed post][p] about the feature.
  218. - Two new style themes: a dark "south" *[Pojoaque][]* by Jason Tate and an
  219. emulation of*XCode* IDE by [Angel Olloqui][ao].
  220. - Three new languages: *D* by [Aleksandar Ružičić][ar], *R* by [Joe Cheng][jc]
  221. and *GLSL* by [Sergey Tikhomirov][st].
  222. - *Nginx* syntax has become a million times smaller and more universal thanks to
  223. remaking it in a more generic manner that doesn't require listing all the
  224. directives in the known universe.
  225. - Function titles are now highlighted in *PHP*.
  226. - *Haskell* and *VHDL* were significantly reworked to be more rich and correct
  227. by their respective maintainers [Jeremy Hull][sr] and [Igor Kalnitsky][ik].
  228. And last but not least, many bugs have been fixed around correctness and
  229. language detection.
  230. Overall highlight.js currently supports 51 languages and 20 style themes.
  231. [node.js]: http://nodejs.org/
  232. [api]: http://softwaremaniacs.org/wiki/doku.php/highlight.js:api
  233. [p]: http://softwaremaniacs.org/blog/2012/05/10/http-and-json-in-highlight-js/en/
  234. [pojoaque]: http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html
  235. [ao]: https://github.com/angelolloqui
  236. [ar]: https://github.com/raleksandar
  237. [jc]: https://github.com/jcheng5
  238. [st]: https://github.com/tikhomirov
  239. [sr]: https://github.com/sourrust
  240. [ik]: https://github.com/ikalnitsky
  241. ## Version 6.2
  242. A lot of things happened in highlight.js since the last version! We've got nine
  243. new contributors, the discussion group came alive, and the main branch on GitHub
  244. now counts more than 350 followers. Here are most significant results coming
  245. from all this activity:
  246. - 5 (five!) new languages: Rust, ActionScript, CoffeeScript, MatLab and
  247. experimental support for markdown. Thanks go to [Andrey Vlasovskikh][av],
  248. [Alexander Myadzel][am], [Dmytrii Nagirniak][dn], [Oleg Efimov][oe], [Denis
  249. Bardadym][db] and [John Crepezzi][jc].
  250. - 2 new style themes: Monokai by [Luigi Maselli][lm] and stylistic imitation of
  251. another well-known highlighter Google Code Prettify by [Aahan Krish][ak].
  252. - A vast number of [correctness fixes and code refactorings][log], mostly made
  253. by [Oleg Efimov][oe] and [Evgeny Stepanischev][es].
  254. [av]: https://github.com/vlasovskikh
  255. [am]: https://github.com/myadzel
  256. [dn]: https://github.com/dnagir
  257. [oe]: https://github.com/Sannis
  258. [db]: https://github.com/btd
  259. [jc]: https://github.com/seejohnrun
  260. [lm]: http://grigio.org/
  261. [ak]: https://github.com/geekpanth3r
  262. [es]: https://github.com/bolknote
  263. [log]: https://github.com/isagalaev/highlight.js/commits/
  264. ## Version 6.1 — Solarized
  265. [Jeremy Hull][jh] has implemented my dream feature — a port of [Solarized][]
  266. style theme famous for being based on the intricate color theory to achieve
  267. correct contrast and color perception. It is now available for highlight.js in
  268. both variants — light and dark.
  269. This version also adds a new original style Arta. Its author pumbur maintains a
  270. [heavily modified fork of highlight.js][pb] on GitHub.
  271. [jh]: https://github.com/sourrust
  272. [solarized]: http://ethanschoonover.com/solarized
  273. [pb]: https://github.com/pumbur/highlight.js
  274. ## Version 6.0
  275. New major version of the highlighter has been built on a significantly
  276. refactored syntax. Due to this it's even smaller than the previous one while
  277. supporting more languages!
  278. New languages are:
  279. - Haskell by [Jeremy Hull][sourrust]
  280. - Erlang in two varieties — module and REPL — made collectively by [Nikolay
  281. Zakharov][desh], [Dmitry Kovega][arhibot] and [Sergey Ignatov][ignatov]
  282. - Objective C by [Valerii Hiora][vhbit]
  283. - Vala by [Antono Vasiljev][antono]
  284. - Go by [Stephan Kountso][steplg]
  285. [sourrust]: https://github.com/sourrust
  286. [desh]: http://desh.su/
  287. [arhibot]: https://github.com/arhibot
  288. [ignatov]: https://github.com/ignatov
  289. [vhbit]: https://github.com/vhbit
  290. [antono]: https://github.com/antono
  291. [steplg]: https://github.com/steplg
  292. Also this version is marginally faster and fixes a number of small long-standing
  293. bugs.
  294. Developer overview of the new language syntax is available in a [blog post about
  295. recent beta release][beta].
  296. [beta]: http://softwaremaniacs.org/blog/2011/04/25/highlight-js-60-beta/en/
  297. P.S. New version is not yet available on a Yandex' CDN, so for now you have to
  298. download [your own copy][d].
  299. [d]: /soft/highlight/en/download/
  300. ## Version 5.14
  301. Fixed bugs in HTML/XML detection and relevance introduced in previous
  302. refactoring.
  303. Also test.html now shows the second best result of language detection by
  304. relevance.
  305. ## Version 5.13
  306. Past weekend began with a couple of simple additions for existing languages but
  307. ended up in a big code refactoring bringing along nice improvements for language
  308. developers.
  309. ### For users
  310. - Description of C++ has got new keywords from the upcoming [C++ 0x][] standard.
  311. - Description of HTML has got new tags from [HTML 5][].
  312. - CSS-styles have been unified to use consistent padding and also have lost
  313. pop-outs with names of detected languages.
  314. - [Igor Kalnitsky][ik] has sent two new language descriptions: CMake и VHDL.
  315. This makes total number of languages supported by highlight.js to reach 35.
  316. Bug fixes:
  317. - Custom classes on `<pre>` tags are not being overridden anymore
  318. - More correct highlighting of code blocks inside non-`<pre>` containers:
  319. highlighter now doesn't insist on replacing them with its own container and
  320. just replaces the contents.
  321. - Small fixes in browser compatibility and heuristics.
  322. [c++ 0x]: http://ru.wikipedia.org/wiki/C%2B%2B0x
  323. [html 5]: http://en.wikipedia.org/wiki/HTML5
  324. [ik]: http://kalnitsky.org.ua/
  325. ### For developers
  326. The most significant change is the ability to include language submodes right
  327. under `contains` instead of defining explicit named submodes in the main array:
  328. contains: [
  329. 'string',
  330. 'number',
  331. {begin: '\\n', end: hljs.IMMEDIATE_RE}
  332. ]
  333. This is useful for auxiliary modes needed only in one place to define parsing.
  334. Note that such modes often don't have `className` and hence won't generate a
  335. separate `<span>` in the resulting markup. This is similar in effect to
  336. `noMarkup: true`. All existing languages have been refactored accordingly.
  337. Test file test.html has at last become a real test. Now it not only puts the
  338. detected language name under the code snippet but also tests if it matches the
  339. expected one. Test summary is displayed right above all language snippets.
  340. ## CDN
  341. Fine people at [Yandex][] agreed to host highlight.js on their big fast servers.
  342. [Link up][l]!
  343. [yandex]: http://yandex.com/
  344. [l]: http://softwaremaniacs.org/soft/highlight/en/download/
  345. ## Version 5.10 — "Paris".
  346. Though I'm on a vacation in Paris, I decided to release a new version with a
  347. couple of small fixes:
  348. - Tomas Vitvar discovered that TAB replacement doesn't always work when used
  349. with custom markup in code
  350. - SQL parsing is even more rigid now and doesn't step over SmallTalk in tests
  351. ## Version 5.9
  352. A long-awaited version is finally released.
  353. New languages:
  354. - Andrew Fedorov made a definition for Lua
  355. - a long-time highlight.js contributor [Peter Leonov][pl] made a definition for
  356. Nginx config
  357. - [Vladimir Moskva][vm] made a definition for TeX
  358. [pl]: http://kung-fu-tzu.ru/
  359. [vm]: http://fulc.ru/
  360. Fixes for existing languages:
  361. - [Loren Segal][ls] reworked the Ruby definition and added highlighting for
  362. [YARD][] inline documentation
  363. - the definition of SQL has become more solid and now it shouldn't be overly
  364. greedy when it comes to language detection
  365. [ls]: http://gnuu.org/
  366. [yard]: http://yardoc.org/
  367. The highlighter has become more usable as a library allowing to do highlighting
  368. from initialization code of JS frameworks and in ajax methods (see.
  369. readme.eng.txt).
  370. Also this version drops support for the [WordPress][wp] plugin. Everyone is
  371. welcome to [pick up its maintenance][p] if needed.
  372. [wp]: http://wordpress.org/
  373. [p]: http://bazaar.launchpad.net/~isagalaev/+junk/highlight/annotate/342/src/wp_highlight.js.php
  374. ## Version 5.8
  375. - Jan Berkel has contributed a definition for Scala. +1 to hotness!
  376. - All CSS-styles are rewritten to work only inside `<pre>` tags to avoid
  377. conflicts with host site styles.
  378. ## Version 5.7.
  379. Fixed escaping of quotes in VBScript strings.
  380. ## Version 5.5
  381. This version brings a small change: now .ini-files allow digits, underscores and
  382. square brackets in key names.
  383. ## Version 5.4
  384. Fixed small but upsetting bug in the packer which caused incorrect highlighting
  385. of explicitly specified languages. Thanks to Andrew Fedorov for precise
  386. diagnostics!
  387. ## Version 5.3
  388. The version to fulfil old promises.
  389. The most significant change is that highlight.js now preserves custom user
  390. markup in code along with its own highlighting markup. This means that now it's
  391. possible to use, say, links in code. Thanks to [Vladimir Dolzhenko][vd] for the
  392. [initial proposal][1] and for making a proof-of-concept patch.
  393. Also in this version:
  394. - [Vasily Polovnyov][vp] has sent a GitHub-like style and has implemented
  395. support for CSS @-rules and Ruby symbols.
  396. - Yura Zaripov has sent two styles: Brown Paper and School Book.
  397. - Oleg Volchkov has sent a definition for [Parser 3][p3].
  398. [1]: http://softwaremaniacs.org/forum/highlightjs/6612/
  399. [p3]: http://www.parser.ru/
  400. [vp]: http://vasily.polovnyov.ru/
  401. [vd]: http://dolzhenko.blogspot.com/
  402. ## Version 5.2
  403. - at last it's possible to replace indentation TABs with something sensible (e.g. 2 or 4 spaces)
  404. - new keywords and built-ins for 1C by Sergey Baranov
  405. - a couple of small fixes to Apache highlighting
  406. ## Version 5.1
  407. This is one of those nice version consisting entirely of new and shiny
  408. contributions!
  409. - [Vladimir Ermakov][vooon] created highlighting for AVR Assembler
  410. - [Ruslan Keba][rukeba] created highlighting for Apache config file. Also his
  411. original visual style for it is now available for all highlight.js languages
  412. under the name "Magula".
  413. - [Shuen-Huei Guan][drake] (aka Drake) sent new keywords for RenderMan
  414. languages. Also thanks go to [Konstantin Evdokimenko][ke] for his advice on
  415. the matter.
  416. [vooon]: http://vehq.ru/about/
  417. [rukeba]: http://rukeba.com/
  418. [drake]: http://drakeguan.org/
  419. [ke]: http://k-evdokimenko.moikrug.ru/
  420. ## Version 5.0
  421. The main change in the new major version of highlight.js is a mechanism for
  422. packing several languages along with the library itself into a single compressed
  423. file. Now sites using several languages will load considerably faster because
  424. the library won't dynamically include additional files while loading.
  425. Also this version fixes a long-standing bug with Javascript highlighting that
  426. couldn't distinguish between regular expressions and division operations.
  427. And as usually there were a couple of minor correctness fixes.
  428. Great thanks to all contributors! Keep using highlight.js.
  429. ## Version 4.3
  430. This version comes with two contributions from [Jason Diamond][jd]:
  431. - language definition for C# (yes! it was a long-missed thing!)
  432. - Visual Studio-like highlighting style
  433. Plus there are a couple of minor bug fixes for parsing HTML and XML attributes.
  434. [jd]: http://jason.diamond.name/weblog/
  435. ## Version 4.2
  436. The biggest news is highlighting for Lisp, courtesy of Vasily Polovnyov. It's
  437. somewhat experimental meaning that for highlighting "keywords" it doesn't use
  438. any pre-defined set of a Lisp dialect. Instead it tries to highlight first word
  439. in parentheses wherever it makes sense. I'd like to ask people programming in
  440. Lisp to confirm if it's a good idea and send feedback to [the forum][f].
  441. Other changes:
  442. - Smalltalk was excluded from DEFAULT_LANGUAGES to save traffic
  443. - [Vladimir Epifanov][voldmar] has implemented javascript style switcher for
  444. test.html
  445. - comments now allowed inside Ruby function definition
  446. - [MEL][] language from [Shuen-Huei Guan][drake]
  447. - whitespace now allowed between `<pre>` and `<code>`
  448. - better auto-detection of C++ and PHP
  449. - HTML allows embedded VBScript (`<% .. %>`)
  450. [f]: http://softwaremaniacs.org/forum/highlightjs/
  451. [voldmar]: http://voldmar.ya.ru/
  452. [mel]: http://en.wikipedia.org/wiki/Maya_Embedded_Language
  453. [drake]: http://drakeguan.org/
  454. ## Version 4.1
  455. Languages:
  456. - Bash from Vah
  457. - DOS bat-files from Alexander Makarov (Sam)
  458. - Diff files from Vasily Polovnyov
  459. - Ini files from myself though initial idea was from Sam
  460. Styles:
  461. - Zenburn from Vladimir Epifanov, this is an imitation of a
  462. [well-known theme for Vim][zenburn].
  463. - Ascetic from myself, as a realization of ideals of non-flashy highlighting:
  464. just one color in only three gradations :-)
  465. In other news. [One small bug][bug] was fixed, built-in keywords were added for
  466. Python and C++ which improved auto-detection for the latter (it was shame that
  467. [my wife's blog][alenacpp] had issues with it from time to time). And lastly
  468. thanks go to Sam for getting rid of my stylistic comments in code that were
  469. getting in the way of [JSMin][].
  470. [zenburn]: http://en.wikipedia.org/wiki/Zenburn
  471. [alenacpp]: http://alenacpp.blogspot.com/
  472. [bug]: http://softwaremaniacs.org/forum/viewtopic.php?id=1823
  473. [jsmin]: http://code.google.com/p/jsmin-php/
  474. ## Version 4.0
  475. New major version is a result of vast refactoring and of many contributions.
  476. Visible new features:
  477. - Highlighting of embedded languages. Currently is implemented highlighting of
  478. Javascript and CSS inside HTML.
  479. - Bundled 5 ready-made style themes!
  480. Invisible new features:
  481. - Highlight.js no longer pollutes global namespace. Only one object and one
  482. function for backward compatibility.
  483. - Performance is further increased by about 15%.
  484. Changing of a major version number caused by a new format of language definition
  485. files. If you use some third-party language files they should be updated.
  486. ## Version 3.5
  487. A very nice version in my opinion fixing a number of small bugs and slightly
  488. increased speed in a couple of corner cases. Thanks to everybody who reports
  489. bugs in he [forum][f] and by email!
  490. There is also a new language — XML. A custom XML formerly was detected as HTML
  491. and didn't highlight custom tags. In this version I tried to make custom XML to
  492. be detected and highlighted by its own rules. Which by the way include such
  493. things as CDATA sections and processing instructions (`<? ... ?>`).
  494. [f]: http://softwaremaniacs.org/forum/viewforum.php?id=6
  495. ## Version 3.3
  496. [Vladimir Gubarkov][xonix] has provided an interesting and useful addition.
  497. File export.html contains a little program that shows and allows to copy and
  498. paste an HTML code generated by the highlighter for any code snippet. This can
  499. be useful in situations when one can't use the script itself on a site.
  500. [xonix]: http://xonixx.blogspot.com/
  501. ## Version 3.2 consists completely of contributions:
  502. - Vladimir Gubarkov has described SmallTalk
  503. - Yuri Ivanov has described 1C
  504. - Peter Leonov has packaged the highlighter as a Firefox extension
  505. - Vladimir Ermakov has compiled a mod for phpBB
  506. Many thanks to you all!
  507. ## Version 3.1
  508. Three new languages are available: Django templates, SQL and Axapta. The latter
  509. two are sent by [Dmitri Roudakov][1]. However I've almost entirely rewrote an
  510. SQL definition but I'd never started it be it from the ground up :-)
  511. The engine itself has got a long awaited feature of grouping keywords
  512. ("keyword", "built-in function", "literal"). No more hacks!
  513. [1]: http://roudakov.ru/
  514. ## Version 3.0
  515. It is major mainly because now highlight.js has grown large and has become
  516. modular. Now when you pass it a list of languages to highlight it will
  517. dynamically load into a browser only those languages.
  518. Also:
  519. - Konstantin Evdokimenko of [RibKit][] project has created a highlighting for
  520. RenderMan Shading Language and RenderMan Interface Bytestream. Yay for more
  521. languages!
  522. - Heuristics for C++ and HTML got better.
  523. - I've implemented (at last) a correct handling of backslash escapes in C-like
  524. languages.
  525. There is also a small backwards incompatible change in the new version. The
  526. function initHighlighting that was used to initialize highlighting instead of
  527. initHighlightingOnLoad a long time ago no longer works. If you by chance still
  528. use it — replace it with the new one.
  529. [RibKit]: http://ribkit.sourceforge.net/
  530. ## Version 2.9
  531. Highlight.js is a parser, not just a couple of regular expressions. That said
  532. I'm glad to announce that in the new version 2.9 has support for:
  533. - in-string substitutions for Ruby -- `#{...}`
  534. - strings from from numeric symbol codes (like #XX) for Delphi
  535. ## Version 2.8
  536. A maintenance release with more tuned heuristics. Fully backwards compatible.
  537. ## Version 2.7
  538. - Nikita Ledyaev presents highlighting for VBScript, yay!
  539. - A couple of bugs with escaping in strings were fixed thanks to Mickle
  540. - Ongoing tuning of heuristics
  541. Fixed bugs were rather unpleasant so I encourage everyone to upgrade!
  542. ## Version 2.4
  543. - Peter Leonov provides another improved highlighting for Perl
  544. - Javascript gets a new kind of keywords — "literals". These are the words
  545. "true", "false" and "null"
  546. Also highlight.js homepage now lists sites that use the library. Feel free to
  547. add your site by [dropping me a message][mail] until I find the time to build a
  548. submit form.
  549. [mail]: mailto:Maniac@SoftwareManiacs.Org
  550. ## Version 2.3
  551. This version fixes IE breakage in previous version. My apologies to all who have
  552. already downloaded that one!
  553. ## Version 2.2
  554. - added highlighting for Javascript
  555. - at last fixed parsing of Delphi's escaped apostrophes in strings
  556. - in Ruby fixed highlighting of keywords 'def' and 'class', same for 'sub' in
  557. Perl
  558. ## Version 2.0
  559. - Ruby support by [Anton Kovalyov][ak]
  560. - speed increased by orders of magnitude due to new way of parsing
  561. - this same way allows now correct highlighting of keywords in some tricky
  562. places (like keyword "End" at the end of Delphi classes)
  563. [ak]: http://anton.kovalyov.net/
  564. ## Version 1.0
  565. Version 1.0 of javascript syntax highlighter is released!
  566. It's the first version available with English description. Feel free to post
  567. your comments and question to [highlight.js forum][forum]. And don't be afraid
  568. if you find there some fancy Cyrillic letters -- it's for Russian users too :-)
  569. [forum]: http://softwaremaniacs.org/forum/viewforum.php?id=6