All Versions
Latest Version
Avg Release Cycle
32 days
Latest Release

Changelog History
Page 11

  • v4.3 Changes

    This version comes with two contributions from Jason Diamond:

    • language definition for C# (yes! it was a long-missed thing!)
    • ๐Ÿ’… Visual Studio-like highlighting style

    ๐Ÿ“œ Plus there are a couple of minor bug fixes for parsing HTML and XML attributes.

  • v4.2 Changes

    The biggest news is highlighting for Lisp, courtesy of Vasily Polovnyov. It's somewhat experimental meaning that for highlighting "keywords" it doesn't use any pre-defined set of a Lisp dialect. Instead it tries to highlight first word in parentheses wherever it makes sense. I'd like to ask people programming in Lisp to confirm if it's a good idea and send feedback to the forum.

    Other changes:

    • 0๏ธโƒฃ Smalltalk was excluded from DEFAULT_LANGUAGES to save traffic
    • ๐Ÿ’… Vladimir Epifanov has implemented javascript style switcher for test.html
    • ๐Ÿ’Ž comments now allowed inside Ruby function definition
    • MEL language from Shuen-Huei Guan
    • whitespace now allowed between <pre> and <code>
    • ๐Ÿ‘ better auto-detection of C++ and PHP
    • HTML allows embedded VBScript (<% .. %>)
  • v4.1 Changes


    • Bash from Vah
    • DOS bat-files from Alexander Makarov (Sam)
    • Diff files from Vasily Polovnyov
    • Ini files from myself though initial idea was from Sam

    ๐Ÿ’… Styles:

    • Zenburn from Vladimir Epifanov, this is an imitation of a well-known theme for Vim.
    • Ascetic from myself, as a realization of ideals of non-flashy highlighting: just one color in only three gradations :-)

    ๐Ÿ›  In other news. One small bug was fixed, built-in keywords were added for Python and C++ which improved auto-detection for the latter (it was shame that [my wife's blog][alenacpp] had issues with it from time to time). And lastly thanks go to Sam for getting rid of my stylistic comments in code that were getting in the way of JSMin.

    ๐Ÿ”Š [alenacpp]:

  • v4.0 Changes

    ๐Ÿ†• New major version is a result of vast refactoring and of many contributions.

    Visible new features:

    • Highlighting of embedded languages. Currently is implemented highlighting of Javascript and CSS inside HTML.
    • ๐Ÿ’… Bundled 5 ready-made style themes!

    Invisible new features:

    • Highlight.js no longer pollutes global namespace. Only one object and one function for backward compatibility.
    • ๐ŸŽ Performance is further increased by about 15%.

    Changing of a major version number caused by a new format of language definition โšก๏ธ files. If you use some third-party language files they should be updated.

  • v3.5 Changes

    A very nice version in my opinion fixing a number of small bugs and slightly increased speed in a couple of corner cases. Thanks to everybody who reports ๐Ÿ› bugs in he forum and by email!

    There is also a new language โ€” XML. A custom XML formerly was detected as HTML and didn't highlight custom tags. In this version I tried to make custom XML to be detected and highlighted by its own rules. Which by the way include such things as CDATA sections and processing instructions (<? ... ?>).

  • v3.3 Changes

    [Vladimir Gubarkov][xonix] has provided an interesting and useful addition. File export.html contains a little program that shows and allows to copy and paste an HTML code generated by the highlighter for any code snippet. This can be useful in situations when one can't use the script itself on a site.

    ๐Ÿ”Š [xonix]:

  • v3.2 Changes

    • Vladimir Gubarkov has described SmallTalk
    • Yuri Ivanov has described 1C
    • ๐Ÿ“ฆ Peter Leonov has packaged the highlighter as a Firefox extension
    • Vladimir Ermakov has compiled a mod for phpBB

    Many thanks to you all!

  • v3.1 Changes

    Three new languages are available: Django templates, SQL and Axapta. The latter two are sent by Dmitri Roudakov. However I've almost entirely rewrote an SQL definition but I'd never started it be it from the ground up :-)

    The engine itself has got a long awaited feature of grouping keywords ("keyword", "built-in function", "literal"). No more hacks!

  • v3.0 Changes

    It is major mainly because now highlight.js has grown large and has become modular. Now when you pass it a list of languages to highlight it will ๐Ÿ’ป dynamically load into a browser only those languages.


    • Konstantin Evdokimenko of RibKit project has created a highlighting for RenderMan Shading Language and RenderMan Interface Bytestream. Yay for more languages!
    • ๐Ÿ‘ Heuristics for C++ and HTML got better.
    • I've implemented (at last) a correct handling of backslash escapes in C-like languages.

    There is also a small backwards incompatible change in the new version. The function initHighlighting that was used to initialize highlighting instead of initHighlightingOnLoad a long time ago no longer works. If you by chance still ๐Ÿ‘‰ use it โ€” replace it with the new one.

  • v2.9 Changes

    ๐Ÿ“œ Highlight.js is a parser, not just a couple of regular expressions. That said ๐Ÿ‘ I'm glad to announce that in the new version 2.9 has support for:

    • ๐Ÿ’Ž in-string substitutions for Ruby -- #{...}
    • strings from from numeric symbol codes (like #XX) for Delphi