Socket
Socket
Sign inDemoInstall

@highlightjs/cdn-assets

Package Overview
Dependencies
0
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @highlightjs/cdn-assets

Syntax highlighting with language autodetection. (pre-compiled CDN assets)


Version published
Weekly downloads
63K
increased by12.89%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

Version 10.1.0

New themes:

  • NNFX and NNFX-dark by [Jim Mason][]
  • lioshi by [lioshi][]

Parser Engine:

  • (parser) Now escapes quotes in text content when escaping HTML (#2564) [Josh Goebel][]
  • (parser) Adds keywords.$pattern key to grammar definitions (#2519) [Josh Goebel][]
  • (parser) Adds SHEBANG utility mode [Josh Goebel][]
  • (parser) Adds registerAliases method (#2540) [Taufik Nurrohman][]
  • (enh) Added on:begin callback for modes (#2261) [Josh Goebel][]
  • (enh) Added on:end callback for modes (#2261) [Josh Goebel][]
  • (enh) Added ability to programatically ignore begin and end matches (#2261) [Josh Goebel][]
  • (enh) Added END_SAME_AS_BEGIN mode to replace endSameAsBegin parser attribute (#2261) [Josh Goebel][]
  • (fix) fixMarkup would rarely destroy markup when useBR was enabled (#2532) [Josh Goebel][]

Deprecations:

  • htmlbars grammar is now deprecated. Use handlebars instead. (#2344) [Nils Knappmeier][]
  • when using highlightBlock result.re deprecated. Use result.relevance instead. (#2552) [Josh Goebel][]
  • ditto for result.second_best.re => result.second_best.relevance (#2552)
  • lexemes is now deprecated in favor of keywords.$pattern key (#2519) [Josh Goebel][]
  • endSameAsBegin is now deprecated. (#2261) [Josh Goebel][]

Language Improvements:

  • fix(groovy) strings are not allowed inside ternary clauses (#2217) [Josh Goebel][]
  • fix(typescript) add readonly keyword (#2562) [Martin (Lhoerion)][]
  • fix(javascript) fix regex inside parens after a non-regex (#2530) [Josh Goebel][]
  • enh(typescript) use identifier to match potential keywords, preventing false positivites (#2519) [Josh Goebel][]
  • enh(javascript) use identifier to match potential keywords, preventing false positivites (#2519) [Josh Goebel][]
  • [enh] Add OPTIMIZE: and HACK: to the labels highlighted inside comments [Josh Goebel][]
  • enh(typescript/javascript/coffeescript/livescript) derive ECMAscript keywords from a common foudation (#2518) [Josh Goebel][]
  • enh(typescript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Josh Goebel][]
  • enh(javascript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Vania Kucher][]
  • enh(cpp) add pair, make_pair, priority_queue as built-ins (#2538) [Hankun Lin][]
  • enh(cpp) recognize priority_queue pair as cpp containers (#2541) [Hankun Lin][]
  • fix(javascript) prevent set keyword conflicting with setTimeout, etc. (#2514) [Vania Kucher][]
  • fix(cpp) Fix highlighting of unterminated raw strings (#2261) [David Benjamin][]
  • fix(javascript) => function with nested () in params now works (#2502) [Josh Goebel][]
  • fix(typescript) => function with nested () in params now works (#2502) [Josh Goebel][]
  • fix(yaml) Fix tags to include non-word characters (#2486) [Peter Plantinga][]
  • fix(swift) @objcMembers was being partially highlighted (#2543) [Nick Randall][]
  • enh(dart) Add late and required keywords, the Never built-in type, and nullable built-in types (#2550) [Sam Rawlins][]
  • enh(erlang) Add underscore separators to numeric literals (#2554) [Sergey Prokhorov][]
  • enh(handlebars) Support for sub-expressions, path-expressions, hashes, block-parameters and literals (#2344) [Nils Knappmeier][]
  • enh(protobuf) Support multiline comments (#2597) [Pavel Evstigneev][]
  • fix(toml) Improve key parsing (#2595) [Antoine du Hamel][]

Readme

Source

Highlight.js CDN Assets

install size

This package contains only the CDN build assets of highlight.js.

This may be what you want if you'd like to install the pre-built distributable highlight.js client-side assets via NPM. If you're wanting to use highlight.js mainly on the server-side you likely want the highlight.js package instead.

To access these files via CDN:
https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/

If you just want a single .js file with the common languages built-in: https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/highlight.min.js


Highlight.js

Highlight.js is a syntax highlighter written in JavaScript. It works in the browser as well as on the server. It works with pretty much any markup, doesn’t depend on any framework, and has automatic language detection.

If you'd like to read the full README:
https://github.com/highlightjs/highlight.js/blob/master/README.md

License

Highlight.js is released under the BSD License. See LICENSE file for details.

The official site for the library is at https://highlightjs.org/.

The Github project may be found at: https://github.com/highlightjs/highlight.js

Further in-depth documentation for the API and other topics is at http://highlightjs.readthedocs.io/.

Authors and contributors are listed in the AUTHORS.txt file.

Keywords

FAQs

Last updated on 11 Jun 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc