Socket
Socket
Sign inDemoInstall

highlight.js

Package Overview
Dependencies
0
Maintainers
5
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
67910Next

9.4.0

Diff

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~~
isagalaev
published 8.8.0 •

Changelog

Source

Version 8.8.0

New languages:

  • Golo by [Philippe Charrière][]
  • GAMS by [Stefan Bechert][]
  • IRPF90 by [Anthony Scemama][]
  • Access logs by [Oleg Efimov][]
  • Crystal by [Tsuyusato Kitsune][]

Notable fixes and improvements to existing languages:

  • JavaScript highlighting no longer fails with ES6 default parameters
  • Added keywords async and await to Python
  • PHP heredoc support improved
  • Allow preprocessor directives within C++ functions

Other notable changes:

  • Change versions to X.Y.Z SemVer-compatible format
  • Added ability to build all targets at once

Version 8.7

New languages:

  • Zephir by [Oleg Efimov][]
  • Elm by [Janis Voigtländer][]
  • XQuery by [Dirk Kirsten][]
  • Mojolicious by [Dotan Dimet][]
  • AutoIt by Manh Tuan from [J2TeaM][]
  • Toml (ini extension) by [Guillaume Gomez][]

New styles:

  • Hopscotch by [Jan T. Sott][]
  • Grayscale by [MY Sun][]

Notable fixes and improvements to existing languages:

  • Fix encoding of images when copied over in certain builds
  • Fix incorrect highlighting of the word "bug" in comments
  • Treat decorators different from matrix multiplication in Python
  • Fix traits inheritance highlighting in Rust
  • Fix incorrect document
  • Oracle keywords added to SQL language definition by [Vadimtro][]
  • Postgres keywords added to SQL language definition by [Benjamin Auder][]
  • Fix registers in x86asm being highlighted as a hex number
  • Fix highlighting for numbers with a leading decimal point
  • Correctly highlight numbers and strings inside of C/C++ macros
  • C/C++ functions now support pointer, reference, and move returns

Version 8.6

New languages:

  • C/AL by [Kenneth Fuglsang][]
  • DNS zone file by [Tim Schumacher][]
  • Ceylon by [Lucas Werkmeister][]
  • OpenSCAD by [Dan Panzarella][]
  • Inform7 by [Bruno Dias][]
  • armasm by [Dan Panzarella][]
  • TP by [Jay Strybis][]

New styles:

  • Atelier Cave, Atelier Estuary, Atelier Plateau and Atelier Savanna by [Bram de Haan][]
  • Github Gist by [Louis Barranqueiro][]

Notable fixes and improvements to existing languages:

  • Multi-line raw strings from C++11 are now supported
  • Fix class names with dashes in HAML
  • The async keyword from ES6/7 is now supported
  • TypeScript functions handle type and parameter complexity better
  • We unified phpdoc/javadoc/yardoc etc modes across all languages
  • CSS .class selectors relevance was dropped to prevent wrong language detection
  • Images is now included to CDN build
  • Release process is now automated

Version 8.5

New languages:

  • pf.conf by [Peter Piwowarski][]
  • Julia by [Kenta Sato][]
  • Prolog by [Raivo Laanemets][]
  • Docker by [Alexis Hénaut][]
  • Fortran by [Anthony Scemama][] and [Thomas Applencourt][]
  • Kotlin by [Sergey Mashkov][]

New styles:

  • Agate by [Taufik Nurrohman][]
  • Darcula by [JetBrains][]
  • Atelier Sulphurpool by [Bram de Haan][]
  • Android Studio by [Pedro Oliveira][]

Notable fixes and improvements to existing languages:

  • ES6 features in JavaScript are better supported now by [Gu Yiling][].
  • Swift now recognizes body-less method definitions.
  • Single expression functions def foo, do: ... now work in Elixir.
  • More uniform detection of built-in classes in Objective C.
  • Fixes for number literals and processor directives in Rust.
  • HTML <script> tag now allows any language, not just JavaScript.
  • Multi-line comments are supported now in MatLab.

Version 8.4

We've got the new [demo page][]! The obvious new feature is the new look, but apart from that it's got smarter: by presenting languages in groups it avoids running 10000 highlighting attempts after first load which was slowing it down and giving bad overall impression. It is now also being generated from test code snippets so the authors of new languages don't have to update both tests and the demo page with the same thing.

Other notable changes:

  • The template_comment class is gone in favor of the more general comment.
  • Number parsing unified and improved across languages.
  • C++, Java and C# now use unified grammar to highlight titles in function/method definitions.
  • The browser build is now usable as an AMD module, there's no separate build target for that anymore.
  • OCaml has got a [comprehensive overhaul][ocaml] by [Mickaël Delahaye][].
  • Clojure's data structures and literals are now highlighted outside of lists and we can now highlight Clojure's REPL sessions.

New languages:

  • AspectJ by [Hakan Özler][]
  • STEP Part 21 by [Adam Joseph Cook][]
  • SML derived by [Edwin Dalorzo][] from OCaml definition
  • Mercury by [mucaho][]
  • Smali by [Dennis Titze][]
  • Verilog by [Jon Evans][]
  • Stata by [Brian Quistorff][]

Version 8.3

We streamlined our tool chain, it is now based entirely on node.js instead of being a mix of node.js, Python and Java. The build script options and arguments remained the same, and we've noted all the changes in the [documentation][b]. Apart from reducing complexity, the new build script is also faster from not having to start Java machine repeatedly. The credits for the work go to [Jeremy Hull][].

Some notable fixes:

  • PHP and JavaScript mixed in HTML now live happily with each other.
  • JavaScript regexes now understand ES6 flags "u" and "y".
  • throw keyword is no longer detected as a method name in Java.
  • Fixed parsing of numbers and symbols in Clojure thanks to [input from Ivan Kleshnin][ik].

New languages in this release:

  • Less by [Max Mikhailov][]
  • Stylus by [Bryant Williams][]
  • Tcl by [Radek Liska][]
  • Puppet by [Jose Molina Colmenero][]
  • Processing by [Erik Paluka][]
  • Twig templates by [Luke Holder][]
  • PowerShell by [David Mohundro][], based on [the work of Nicholas Blumhardt][ps]
  • XL by [Christophe de Dinechin][]
  • LiveScript by [Taneli Vatanen][] and [Jen Evers-Corvina][]
  • ERB (Ruby in HTML) by [Lucas Mazza][]
  • Roboconf by [Vincent Zurczak][]

Version 8.2

We've finally got [real tests][test] and [continuous testing on Travis][ci] thanks to [Jeremy Hull][] and [Chris Eidhof][]. The tests designed to cover everything: language detection, correct parsing of individual language features and various special cases. This is a very important change that gives us confidence in extending language definitions and refactoring library core.

We're going to redesign the old [demo/test suite][demo] into an interactive demo web app. If you're confident front-end developer or designer and want to help us with it, drop a comment into [the issue][#542] on GitHub.

As usually there's a handful of new languages in this release:

  • Groovy by [Guillaume Laforge][]
  • Dart by [Maxim Dikun][]
  • Dust by [Michael Allen][]
  • Scheme by [JP Verkamp][]
  • G-Code by [Adam Joseph Cook][]
  • Q from Kx Systems by [Sergey Vidyuk][]

Other improvements:

  • [Erik Osheim][] heavily reworked Scala definitions making it richer.
  • [Lucas Mazza][] fixed Ruby hashes highlighting
  • Lisp variants (Lisp, Clojure and Scheme) are unified in regard to naming the first symbol in parentheses: it's "keyword" in general case and also "built_in" for built-in functions in Clojure and Scheme.

Version 8.1

New languages:

  • Gherkin by [Sam Pikesley][]
  • Elixir by [Josh Adams][]
  • NSIS by [Jan T. Sott][]
  • VIM script by [Jun Yang][]
  • Protocol Buffers by [Dan Tao][]
  • Nix by [Domen Kožar][]
  • x86asm by [innocenat][]
  • Cap'n Proto and Thrift by [Oleg Efimov][]
  • Monkey by [Arthur Bikmullin][]
  • TypeScript by [Panu Horsmalahti][]
  • Nimrod by [Flaviu Tamas][]
  • Gradle by [Damian Mee][]
  • Haxe by [Christopher Kaster][]
  • Swift by [Chris Eidhof][] and [Nate Cook][]

New styles:

  • Kimbie, light and dark variants by [Jan T. Sott][]
  • Color brewer by [Fabrício Tavares de Oliveira][]
  • Codepen.io embed by [Justin Perry][]
  • Hybrid by [Nic West][]

Other improvements:

  • The README is heavily reworked and brought up to date by [Jeremy Hull][].
  • Added [listLanguages()][ll] method in the API.
  • Improved C/C++/C# detection.
  • Added a bunch of new language aliases, documented the existing ones. Thanks to [Sindre Sorhus][] for background research.
  • Added phrasal English words to boost relevance in comments.
  • Many improvements to SQL definition made by [Heiko August][], [Nikolay Lisienko][] and [Travis Odom][].
  • The shorter lang- prefix for language names in HTML classes supported alongside language-. Thanks to [Jeff Escalante][].
  • Ruby's got support for interactive console sessions. Thanks to [Pascal Hurni][].
  • Added built-in functions for R language. Thanks to [Artem A. Klevtsov][].
  • Rust's got definition for lifetime parameters and improved string syntax. Thanks to [Roman Shmatov][].
  • Various improvements to Objective-C definition by [Matt Diephouse][].
  • Fixed highlighting of generics in Java.

Version 8.0

This new major release is quite a big overhaul bringing both new features and some backwards incompatible changes. However, chances are that the majority of users won't be affected by the latter: the basic scenario described in the README is left intact.

Here's what did change in an incompatible way:

  • We're now prefixing all classes located in [CSS classes reference][cr] with hljs-, by default, because some class names would collide with other people's stylesheets. If you were using an older version, you might still want the previous behavior, but still want to upgrade. To suppress this new behavior, you would initialize like so:

    <script type="text/javascript">
      hljs.configure({classPrefix: ''});
      hljs.initHighlightingOnLoad();
    </script>
    
  • tabReplace and useBR that were used in different places are also unified into the global options object and are to be set using configure(options). This function is documented in our [API docs][]. Also note that these parameters are gone from highlightBlock and fixMarkup which are now also rely on configure.

  • We removed public-facing (though undocumented) object hljs.LANGUAGES which was used to register languages with the library in favor of two new methods: registerLanguage and getLanguage. Both are documented in our [API docs][].

  • Result returned from highlight and highlightAuto no longer contains two separate attributes contributing to relevance score, relevance and keyword_count. They are now unified in relevance.

Another technically compatible change that nonetheless might need attention:

  • The structure of the NPM package was refactored, so if you had installed it locally, you'll have to update your paths. The usual require('highlight.js') works as before. This is contributed by [Dmitry Smolin][].

New features:

  • Languages now can be recognized by multiple names like "js" for JavaScript or "html" for, well, HTML (which earlier insisted on calling it "xml"). These aliases can be specified in the class attribute of the code container in your HTML as well as in various API calls. For now there are only a few very common aliases but we'll expand it in the future. All of them are listed in the [class reference][cr].

  • Language detection can now be restricted to a subset of languages relevant in a given context — a web page or even a single highlighting call. This is especially useful for node.js build that includes all the known languages. Another example is a StackOverflow-style site where users specify languages as tags rather than in the markdown-formatted code snippets. This is documented in the [API reference][] (see methods highlightAuto and configure).

  • Language definition syntax streamlined with [variants][] and [beginKeywords][].

New languages and styles:

  • Oxygene by [Carlo Kok][]
  • Mathematica by [Daniel Kvasnička][]
  • Autohotkey by [Seongwon Lee][]
  • Atelier family of styles in 10 variants by [Bram de Haan][]
  • Paraíso styles by [Jan T. Sott][]

Miscellaneous improvements:

  • Highlighting => prompts in Clojure.
  • [Jeremy Hull][] fixed a lot of styles for consistency.
  • Finally, highlighting PHP and HTML [mixed in peculiar ways][php-html].
  • Objective C and C# now properly highlight titles in method definition.
  • Big overhaul of relevance counting for a number of languages. Please do report bugs about mis-detection of non-trivial code snippets!

Version 7.5

A catch-up release dealing with some of the accumulated contributions. This one is probably will be the last before the 8.0 which will be slightly backwards incompatible regarding some advanced use-cases.

One outstanding change in this version is the addition of 6 languages to the [hosted script][d]: Markdown, ObjectiveC, CoffeeScript, Apache, Nginx and Makefile. It now weighs about 6K more but we're going to keep it under 30K.

New languages:

  • OCaml by [Mehdi Dogguy][mehdid] and [Nicolas Braud-Santoni][nbraud]
  • [LiveCode Server][lcs] by [Ralf Bitter][revig]
  • Scilab by [Sylvestre Ledru][sylvestre]
  • basic support for Makefile by [Ivan Sagalaev][isagalaev]

Improvements:

  • Ruby's got support for characters like ?A, ?1, ?\012 etc. and %r{..} regexps.
  • Clojure now allows a function call in the beginning of s-expressions (($filter "myCount") (arr 1 2 3 4 5)).
  • Haskell's got new keywords and now recognizes more things like pragmas, preprocessors, modules, containers, FFIs etc. Thanks to [Zena Treep][treep] for the implementation and to [Jeremy Hull][sourrust] for guiding it.
  • Miscellaneous fixes in PHP, Brainfuck, SCSS, Asciidoc, CMake, Python and F#.

New core developers

The latest long period of almost complete inactivity in the project coincided with growing interest to it led to a decision that now seems completely obvious: we need more core developers.

So without further ado let me welcome to the core team two long-time contributors: [Jeremy Hull][] and [Oleg Efimov][].

Hope now we'll be able to work through stuff faster!

P.S. The historical commit is [here][1] for the record.

Version 7.4

This long overdue version is a snapshot of the current source tree with all the changes that happened during the past year. Sorry for taking so long!

Along with the changes in code highlight.js has finally got its new home at http://highlightjs.org/, moving from its cradle on Software Maniacs which it outgrew a long time ago. Be sure to report any bugs about the site to mailto:info@highlightjs.org.

On to what's new…

New languages:

  • Handlebars templates by [Robin Ward][]
  • Oracle Rules Language by [Jason Jacobson][]
  • F# by [Joans Follesø][]
  • AsciiDoc and Haml by [Dan Allen][]
  • Lasso by [Eric Knibbe][]
  • SCSS by [Kurt Emch][]
  • VB.NET by [Poren Chiang][]
  • Mizar by [Kelley van Evert][]

New style themes:

  • Monokai Sublime by [noformnocontent][]
  • Railscasts by [Damien White][]
  • Obsidian by [Alexander Marenin][]
  • Docco by [Simon Madine][]
  • Mono Blue by [Ivan Sagalaev][] (uses a single color hue for everything)
  • Foundation by [Dan Allen][]

Other notable changes:

  • Corrected many corner cases in CSS.
  • Dropped Python 2 version of the build tool.
  • Implemented building for the AMD format.
  • Updated Rust keywords (thanks to [Dmitry Medvinsky][]).
  • Literal regexes can now be used in language definitions.
  • CoffeeScript highlighting is now significantly more robust and rich due to input from [Cédric Néhémie][].

Version 7.3

  • Since this version highlight.js no longer works in IE version 8 and older. It's made it possible to reduce the library size and dramatically improve code readability and made it easier to maintain. Time to go forward!

  • New languages: AppleScript (by [Nathan Grigg][ng] and [Dr. Drang][dd]) and Brainfuck (by [Evgeny Stepanischev][bolk]).

  • Improvements to existing languages:

    • interpreter prompt in Python (>>> and ...)
    • @-properties and classes in CoffeeScript
    • E4X in JavaScript (by [Oleg Efimov][oe])
    • new keywords in Perl (by [Kirk Kimmel][kk])
    • big Ruby syntax update (by [Vasily Polovnyov][vast])
    • small fixes in Bash
  • Also Oleg Efimov did a great job of moving all the docs for language and style developers and contributors from the old wiki under the source code in the "docs" directory. Now these docs are nicely presented at http://highlightjs.readthedocs.org/.

Version 7.2

A regular bug-fix release without any significant new features. Enjoy!

Version 7.1

A Summer crop:

  • [Marc Fornos][mf] made the definition for Clojure along with the matching style Rainbow (which, of course, works for other languages too).
  • CoffeeScript support continues to improve getting support for regular expressions.
  • Yoshihide Jimbo ported to highlight.js [five Tomorrow styles][tm] from the [project by Chris Kempson][tm0].
  • Thanks to [Casey Duncun][cd] the library can now be built in the popular [AMD format][amd].
  • And last but not least, we've got a fair number of correctness and consistency fixes, including a pretty significant refactoring of Ruby.

Version 7.0

The reason for the new major version update is a global change of keyword syntax which resulted in the library getting smaller once again. For example, the hosted build is 2K less than at the previous version while supporting two new languages.

Notable changes:

  • The library now works not only in a browser but also with [node.js][]. It is installable with npm install highlight.js. [API][] docs are available on our wiki.

  • The new unique feature (apparently) among syntax highlighters is highlighting HTTP headers and an arbitrary language in the request body. The most useful languages here are XML and JSON both of which highlight.js does support. Here's [the detailed post][p] about the feature.

  • Two new style themes: a dark "south" [Pojoaque][] by Jason Tate and an emulation ofXCode IDE by [Angel Olloqui][ao].

  • Three new languages: D by [Aleksandar Ružičić][ar], R by [Joe Cheng][jc] and GLSL by [Sergey Tikhomirov][st].

  • Nginx syntax has become a million times smaller and more universal thanks to remaking it in a more generic manner that doesn't require listing all the directives in the known universe.

  • Function titles are now highlighted in PHP.

  • Haskell and VHDL were significantly reworked to be more rich and correct by their respective maintainers [Jeremy Hull][sr] and [Igor Kalnitsky][ik].

And last but not least, many bugs have been fixed around correctness and language detection.

Overall highlight.js currently supports 51 languages and 20 style themes.

Version 6.2

A lot of things happened in highlight.js since the last version! We've got nine new contributors, the discussion group came alive, and the main branch on GitHub now counts more than 350 followers. Here are most significant results coming from all this activity:

  • 5 (five!) new languages: Rust, ActionScript, CoffeeScript, MatLab and experimental support for markdown. Thanks go to [Andrey Vlasovskikh][av], [Alexander Myadzel][am], [Dmytrii Nagirniak][dn], [Oleg Efimov][oe], [Denis Bardadym][db] and [John Crepezzi][jc].

  • 2 new style themes: Monokai by [Luigi Maselli][lm] and stylistic imitation of another well-known highlighter Google Code Prettify by [Aahan Krish][ak].

  • A vast number of [correctness fixes and code refactorings][log], mostly made by [Oleg Efimov][oe] and [Evgeny Stepanischev][es].

Version 6.1 — Solarized

[Jeremy Hull][jh] has implemented my dream feature — a port of [Solarized][] style theme famous for being based on the intricate color theory to achieve correct contrast and color perception. It is now available for highlight.js in both variants — light and dark.

This version also adds a new original style Arta. Its author pumbur maintains a [heavily modified fork of highlight.js][pb] on GitHub.

Version 6.0

New major version of the highlighter has been built on a significantly refactored syntax. Due to this it's even smaller than the previous one while supporting more languages!

New languages are:

  • Haskell by [Jeremy Hull][sourrust]
  • Erlang in two varieties — module and REPL — made collectively by [Nikolay Zakharov][desh], [Dmitry Kovega][arhibot] and [Sergey Ignatov][ignatov]
  • Objective C by [Valerii Hiora][vhbit]
  • Vala by [Antono Vasiljev][antono]
  • Go by [Stephan Kountso][steplg]

Also this version is marginally faster and fixes a number of small long-standing bugs.

Developer overview of the new language syntax is available in a [blog post about recent beta release][beta].

P.S. New version is not yet available on a Yandex CDN, so for now you have to download [your own copy][d].

isagalaev
published 8.7.0 •

isagalaev
published 8.6.0 •

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