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:

    πŸ‘Œ 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