highlight.js v9.0.0 Release Notes
-
The new major version brings a reworked styling system. Highlight.js now defines a limited set of highlightable classes giving a consistent result across all the π styles and languages. You can read a more detailed explanation and background in the tracking issue that started this long process back in May.
This change is backwards incompatible for those who uses highlight.js with a π custom stylesheet. The [new style guide][sg] explains how to write styles in this new world.
Bundled themes have also suffered a significant amount of improvements and may look different in places, but all the things now consistent and make more sense. π Among others, the Default style has got a refresh and will probably be tweaked π some more in next releases. Please do give your feedback in our issue tracker.
π New languages in this release:
- CachΓ© Object Script by Nikita Savchenko
- YAML by Stefan Wienert
- MIPS Assembler by Nebuleon Fumika
- HSP by prince
π Improvements to existing languages and styles:
- ECMAScript 6 modules import now do not require closing semicolon.
- ECMAScript 6 classes constructors now highlighted.
- π Template string support for Typescript, as for ECMAScript 6.
- π Scala case classes params highlight fixed.
- Built-in names introduced in Julia v0.4 added by Kenta Sato.
- π Refreshed Default style.
Other notable changes:
- π· [Web workers support][webworkers] added bu Jan KΓΌhle.
- π We now have tests for compressed browser builds as well.
- π The building tool chain has been switched to node.js 4.x. and is now shamelessly uses ES6 features all over the place, courtesy of Jeremy Hull.
- π License added to non-compressed browser build.
π· [webworkers]: https://github.com/isagalaev/highlight.js#web-workers
π [sg]: http://highlightjs.readthedocs.org/en/latest/style-guide.html