highlight.js v10.0.0 Release Notes

Release Date: 2020-03-10 // about 4 years ago
  • πŸ†• New languages:

    • βž• add(php-template) Explicit language to detect PHP templates (vs xml) Josh Goebel
    • enh(python) Added python-repl for Python REPL sessions
    • βž• add(never) Added 3rd party Never language support

    πŸ†• New themes:

    πŸ“œ Parser Engine Changes:

    • (bug) Fix beginKeywords to ignore . matches (#2434) Josh Goebel
    • πŸ”Œ (enh) add before:highlight plugin API callback (#2395) Josh Goebel
    • πŸ”Œ (enh) add after:highlight plugin API callback (#2395) Josh Goebel
    • πŸ“œ (enh) split out parse tree generation and HTML rendering concerns (#2404) Josh Goebel
    • (enh) every language can have a name attribute now (#2400) Josh Goebel
    • (enh) improve regular expression detect (less false-positives) (#2380) Josh Goebel
    • πŸ”§ (enh) make noHighlightRe and languagePrefixRe configurable (#2374) Josh Goebel

    Language Improvements:

    • enh(python) Exclude parens from functions params (#2490) Álvaro MondΓ©jar
    • enh(swift) Add compactMap to keywords as built_in (#2478) Omid Golparvar
    • enh(nim) adds func keyword (#2468) Adnan Yaqoob
    • πŸ—„ enh(xml) deprecate ActionScript inside script tags (#2444) Josh Goebel
    • πŸ›  fix(javascript) prevent get/set variables conflicting with keywords (#2440) Josh Goebel
    • πŸ› bug(clojure) Now highlights defn- properly (#2438) Josh Goebel
    • 0️⃣ enh(bash) default value is another variable (#2439) Josh Goebel
    • enh(bash) string nested within string (#2439) Josh Goebel
    • πŸ‘ enh(bash) Add arithmetic expression support (#2439) Josh Goebel
    • πŸ‘ enh(clojure) Add support for global definitions name (#2347) Alexandre Grison
    • πŸ’… enh(fortran) Support Fortran 77 style comments (#2416) Josh Goebel
    • πŸ’… (csharp) add support for @identifier style identifiers (#2414) Josh Goebel
    • πŸ›  fix(elixir) Support function names with a slash (#2406) Josh Goebel
    • πŸ›  fix(javascript) comma is allowed in a "value container" (#2403) Josh Goebel
    • enh(apache) add deny and allow keywords Josh Goebel
    • enh(apache) highlight numeric attributes values Josh Goebel
    • enh(apache) highlight IP addresses, ports, and strings in sections Josh Goebel
    • enh(php) added more keywords and include <?= syntax to meta Taufik Nurrohman
    • πŸ›  fix(protobuf) Fix rpc when followed by a block (#) Josh Goebel
    • enh(zephir) almost complete rework of the zephir grammar (#2387) Josh Goebel
    • πŸ‘ (markdown) much improved code block support (#2382) Josh Goebel
    • (markdown) improve bold/italic nesting (#2382) Josh Goebel
    • πŸ‘ enh(csharp) Support where keyword as class constraint (#2378) Josh Goebel
    • enh(csharp) Allow reference path in class inheritance lists (#2378) Josh Goebel
    • enh(csharp) Add generic modifiers (in, out) (#2378) Josh Goebel
    • πŸ‘ (fortran) enh(fortran) support intrinsic data types (#2379) Josh Goebel
    • enh(java) annotations can include numbers (#2377) Josh Goebel
    • enh(java) annotations can take params (#2377) Josh Goebel
    • enh(java) allow annotations inside function call params (#2377) Josh Goebel
    • πŸ”Œ enh(parser) pre/post-highlightBlock callbacks via plugin (#2285) Josh Goebel
    • (fortran) Add Fortran 2018 keywords and coarray intrinsics (#2361) Sam Miller
    • (delphi) highlight hexadecimal, octal, and binary numbers (#2370) Robert Riebisch
    • enh(plaintext) added text and txt as alias (#2360) Taufik Nurrohman
    • 0️⃣ enh(powershell) added PowerShell v5.1/v7 default aliases as "built_in"s (#2423) Sean Williams
    • πŸ‘ enh(yaml) added support for timestamps (#2475) [Peter Plantinga][]

    Developer Tools:

    • βž• added Dockerfile for optionally developing with a container