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
49K
increased by2.53%
Maintainers
4
Install size
1.33 MB
Created
Weekly downloads
 

Changelog

Source

Version 10.3.0

Language Improvements:

  • enh(latex) Complete ground up rewrite of LaTex grammar [schtandard][]
  • fix(cpp) implement backslash line continuation in comments (#2757) [Konrad Rudolph][]
  • fix(cpp) improve parsing issues with templates (#2752) [Josh Goebel][]
  • enh(cpp) add support for enum (struct|class) and union (#2752) [Josh Goebel][]
  • fix(js/ts) Fix nesting of {} inside template literals SUBST expression (#2748) [Josh Goebel][]
  • enh(js/ts) Highlight class methods as functions (#2727) [Josh Goebel][]
  • fix(js/ts) constructor is now highlighted as a function title (not keyword) (#2727) [Josh Goebel][]
  • fix(c-like) preprocessor directives not detected after else (#2738) [Josh Goebel][]
  • enh(javascript) allow # for private class fields (#2701) [Chris Krycho][]
  • fix(js) prevent runaway regex (#2746) [Josh Goebel][]
  • fix(bash) enh(bash) allow nested params (#2731) [Josh Goebel][]
  • fix(python) Fix highlighting of keywords and strings (#2713, #2715) [Konrad Rudolph][]
  • fix(fsharp) Prevent (*) from being detected as a multi-line comment [Josh Goebel][]
  • enh(bash) add support for heredocs (#2684) [Josh Goebel][]
  • enh(r) major overhaul of the R language grammar (and fix a few bugs) (#2680) [Konrad Rudolph][]
  • enh(csharp) Add all C# 9 keywords, and other missing keywords (#2679) [David Pine][]
  • enh(objectivec) Add objective-c++ and obj-c++ aliases for Objective-C [Josh Goebel][]
  • enh(java) Add support for record (#2685) [Josh Goebel][]
  • fix(csharp) prevent modifier keywords wrongly flagged as title (#2683) [Josh Goebel][]
  • enh(axapta) Update keyword list for Axapta (X++) (#2686) [Ryan Jonasson][]
  • fix(fortran) FORTRAN 77-style comments (#2677) [Philipp Engel][]
  • fix(javascript) Comments inside params should be highlighted (#2702) [Josh Goebel][]
  • fix(scala) Comments inside class header should be highlighted (#1559) [Josh Goebel][]
  • fix(c-like) Correctly highlight modifiers (final) in class declaration (#2696) [Josh Goebel][]
  • enh(angelscript) Improve heredocs, numbers, metadata blocks (#2724) [Melissa Geels][]
  • enh(javascript) Implement Numeric Separators (#2617) [Antoine du Hamel][]
  • enh(typescript) TypeScript also gains support for numeric separators (#2617) [Antoine du Hamel][]
  • enh(php) Add support for PHP 8 match keyword and add php8 as an alias (#2733) [Ayesh Karunaratne][]
  • fix(handlebars) Support if else keyboards (#2659) [Tom Wallace][]

Deprecations:

  • useBR option deprecated and will be removed in v11.0. (#2559) [Josh Goebel][]

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 17 Oct 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc