Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

highlight.js

Package Overview
Dependencies
Maintainers
0
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highlight.js - npm Package Versions

1
11

9.7.0

Diff

Changelog

Source

Version 9.7.0

A comprehensive bugfix release. This is one of the best things about highlight.js: even boring things keep getting better (even if slow).

  • VHDL updated with PSL keywords and uses more consistent styling.
  • Nested C-style comments no longer break highlighting in many languages.
  • JavaScript updated with => functions, highlighted object attributes and parsing within template string substitution blocks (${...}).
  • Fixed another corner case with self-closing <tag/> in JSX.
  • Added HEALTHCHECK directive in Docker.
  • Delphi updated with new Free Pascal keywords.
  • Fixed digit separator parsing in C++.
  • C# updated with new keywords and fixed to allow multiple identifiers within generics <...>.
  • Fixed another slow regex in Less.
isagalaev
published 9.6.0 •

Changelog

Source

Version 9.6.0

New languages:

  • ABNF and EBNF by [Alex McKibben][]
  • Awk by [Matthew Daly][]
  • SubUnit by [Sergey Bronnikov][]

New styles:

  • Atom One in both Dark and Light variants by [Daniel Gamage][]

Plus, a few smaller updates for Lasso, Elixir, C++ and SQL.

isagalaev
published 9.5.0 •

Changelog

Source

Version 9.5.0

New languages:

  • Excel by [Victor Zhou][]
  • Linden Scripting Language by [Builder's Brewery][]
  • TAP (Test Anything Protocol) by [Sergey Bronnikov][]
  • Pony by [Joe Eli McIlvain][]
  • Coq by [Stephan Boyer][]
  • dsconfig and LDIF by [Jacob Childress][]

New styles:

  • Ocean Dark by [Gavin Siu][]

Notable changes:

  • [Minh Nguyễn][] added more built-ins to Objective C.
  • [Jeremy Hull][] fixed corner cases in C++ preprocessor directives and Diff comments.
  • [Victor Zhou][] added support for digit separators in C++ numbers.
isagalaev
published 9.4.0 •

Changelog

Source

Version 9.4.0

New languages:

  • PureBASIC by [Tristano Ajmone][]
  • BNF by [Oleg Efimov][]
  • Ada by [Lars Schulna][]

New styles:

  • PureBASIC by [Tristano Ajmone][]

Improvements to existing languages and styles:

  • We now highlight function declarations in Go.
  • [Taisuke Fujimoto][] contributed very convoluted rules for raw and interpolated strings in C#.
  • [Boone Severson][] updated Verilog to comply with IEEE 1800-2012 SystemVerilog.
  • [Victor Zhou][] improved rules for comments and strings in PowerShell files.
  • [Janis Voigtländer][] updated the definition of Elm to version 0.17 of the languages. Elm is now featured on the front page of https://highlightjs.org.
  • Special variable $this is highlighted as a keyword in PHP.
  • usize and isize are now highlighted in Rust.
  • Fixed labels and directives in x86 assembler.
isagalaev
published 9.3.0 •

Changelog

Source

Version 9.3.0

New languages:

  • Tagger Script by [Philipp Wolfer][]
  • MoonScript by [Billy Quith][]

New styles:

  • xt256 by [Herbert Shin][]

Improvements to existing languages and styles:

  • More robust handling of unquoted HTML tag attributes
  • Relevance tuning for QML which was unnecessary eager at seizing other languages' code
  • Improve GAMS language parsing
  • Fixed a bunch of bugs around selectors in Less
  • Kotlin's got a new definition for annotations, updated keywords and other minor improvements
  • Added move to Rust keywords
  • Markdown now recognizes ```-fenced code blocks
  • Improved detection of function declarations in C++ and C#
isagalaev
published 9.2.0 •

Changelog

Source

Version 9.2.0

New languages:

  • QML by [John Foster][]
  • HTMLBars by [Michael Johnston][]
  • CSP by [Taras][]
  • Maxima by [Robert Dodier][]

New styles:

  • Gruvbox by [Qeole][]
  • Dracula by [Denis Ciccale][]

Improvements to existing languages and styles:

  • We now correctly handle JSX with arbitrary node tree depth.
  • Argument list for (lambda) in Scheme is no longer highlighted as a function call.
  • Stylus syntax doesn't break on valid CSS.
  • More correct handling of comments and strings and other improvements for VimScript.
  • More subtle work on the default style.
  • We now use anonymous modules for AMD.
  • macro_rules! is now recognized as a built-in in Rust.
isagalaev
published 9.1.0 •

Changelog

Source

Version 9.1.0

New languages:

  • Stan by [Brendan Rocks][]
  • BASIC by [Raphaël Assénat][]
  • GAUSS by [Matt Evans][]
  • DTS by [Martin Braun][]
  • Arduino by [Stefania Mellai][]

New Styles:

  • Arduino Light by [Stefania Mellai][]

Improvements to existing languages and styles:

  • Handle return type annotations in Python
  • Allow shebang headers in Javascript
  • Support strings in Rust meta
  • Recognize struct as a class-level definition in Rust
  • Recognize b-prefixed chars and strings in Rust
  • Better numbers handling in Verilog
isagalaev
published 9.0.0 •

Changelog

Source

Version 9.0.0

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][#348] 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][issues].

New languages in this release:

  • Caché Object Script by [Nikita Savchenko][]
  • YAML by [Stefan Wienert][]
  • MIPS Assembler by [Nebuleon Fumika][]
  • HSP by [prince][]

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.
isagalaev
published 8.9.1 •

Changelog

Source

Version 8.9.1

Some last-minute changes reverted due to strange bug with minified browser build:

  • Scala case classes params highlight fixed
  • 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
  • License added to not minified browser build
isagalaev
published 8.9.0 •

Changelog

Source

Version 8.9.0

New languages:

  • crmsh by [Kristoffer Gronlund][]
  • SQF by [Soren Enevoldsen][]

Notable fixes and improvements to existing languages:

  • Added abstract and namespace keywords to TypeScript by [Daniel Rosenwasser][]
  • Added label support to Dockerfile by [Ladislav Prskavec][]
  • Crystal highlighting improved by [Tsuyusato Kitsune][]
  • Missing Swift keywords added by [Nate Cook][]
  • Improve detection of C block comments
  • ~~Scala case classes params highlight fixed~~
  • ~~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~~

Other notable changes:

  • ~~License added to not minified browser build~~
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc