class MyClass {
  public static myValue: string;
  constructor(init: string) {
    this.myValue = init;
  }
}
import fs = require("fs");
module MyModule {
  export interface MyInterface extends Other {
    myProperty: any;
  }
}
declare magicNumber number;
myArray.forEach(() => { }); // fat arrow syntax

language: ...

style: vs

Get version 9.15.6

Usage

Contribute

@highlightjs

News

  1. Version 9.15.6 New languages: none. New styles: none. Improvements: - Move dependencies to be devDependencies. - Fixed security issues in dev dependencies.

  2. Version 9.15.5 New languages: none. New styles: none. Improvements: 🔥 Hot fix: updated build tool.

  3. Version 9.15.2 New languages: none. New styles: none. Improvements: 🔥 Hot fix that was preventing highlight.js from installing.

  4. Version 9.15.1

    New languages: none.

    New styles: none.

    Improvements:

    • Pony: Fixed keywords without spaces at line ends, highlighting of iso in class definitions, and function heads without bodies in traits and interfaces. Removed FUNCTION and CLASS modes until they are found to be needed and to provide some of the fixes.
    • Support external language files in minified version of highlight.js (#1888)
  5. Version 9.14.2

    New languages: none. New styles: none. Improvements: - Gauss fixed to stop global namespace pollution Scott Hyndman. - fix(Tcl): removed apostrophe string delimiters (don't exist)

  6. Version 9.14.1

    New languages: none. New styles: none. Improvements: - Pony: language improvements (#1958)

  7. Version 9.13.1

    Improvements:

    • C# function declarations no longer include trailing whitespace, by JeremyTCD
    • Added new and missing keywords to AngelScript, by Melissa Geels
    • TypeScript decorator factories highlighting fix, by Antoine Boisier-Michaud
    • Added support for multiline strings to Swift, by Alejandro Isaza
    • Fixed issue that was causing some minifiers to fail.
    • Fixed autoDetection to accept language aliases.
  8. Version 9.13.0

    New languages:

    New styles:

    Improvements:

  9. Version 9.12.0

    New language:

    New style:

    Improvements:

    • Crystal updated with new keywords and syntaxes by Tsuyusato Kitsune.
    • Julia updated to the modern definitions by Alex Arslan.
    • julia-repl added by Morten Piibeleht.
    • Stanislav Belov wrote a new definition for 1C, replacing the one that has not been updated for more than 8 years. The new version supports syntax for versions 7.7 and 8.
    • Nicolas LLOBERA improved C# definition fixing edge cases with function titles detection and added highlighting of [Attributes].
    • nnnik provided a few correctness fixes for Autohotkey.
    • Martin Clausen made annotation collections in Clojure to look consistently with other kinds.
    • Alejandro Alonso updated Swift keywords.
  10. Version 9.11.0

    New languages:

    Improvements: