npm highlight.js 10.6.0
Version 10.6.0

latest releases: 11.9.0, 11.8.0, 11.7.0...
3 years ago

New Languages:

Language grammar improvements:

Grammar Deprecations:

  • Deprecate c-like, though you should not be using it directly anyways.
    • will be removed in v11.
  • c and cpp are now wholly unique grammars that will diverge over time

Parser:

  • new simpler highlightAll() API (#2962) Josh Goebel
    • this should be a drop-in replacement for both initHighlighting() and initHighlightingOnLoad()
    • note: it does not prevent itself from being called multiple times (as the previous API did)
  • beginKeyword no longer bestows double relevance (#2953) Josh Goebel
  • allow keywords to be an array of strings Josh Goebel
  • add modes.MATCH_NOTHING_RE that will never match
    • This can be used with end to hold a mode open (it must then be ended with endsParent in one of it's children modes) Josh Goebel

Deprecations:

  • initHighlighting() and initHighlightingOnLoad() deprecated.
    • Please use the new highlightAll() API instead.
    • Deprecated as of 10.6.
    • These will both be aliases to highlightAll in v11.

Don't miss a new highlight.js release

NewReleases is sending notifications on new releases.