mergesort([],[]). % special case
mergesort([A],[A]).
mergesort([A,B|R],S) :-
   split([A,B|R],L1,L2),
   mergesort(L1,S1),
   mergesort(L2,S2),
   merge(S1,S2,S).

split([],[],[]).
split([A],[A],[]).
split([A,B|R],[A|Ra],[B|Rb]) :-  split(R,Ra,Rb).

language: ...

style: atom-one-dark

Get version 9.15.8

Usage

Contribute

@highlightjs

News

  1. Version 9.15.8

    New languages: none. New styles: none. Improvements: - fix(bash): revert escaped double quotes - broke Firefox/Safari.

  2. Version 9.15.7 New languages: none. New styles: none. Improvements: - fix(powershell): Add cmdlets (#2022) - fix(Bash): escaped double quotes (#2041) - fix(c++): add aliases 'hh', 'hxx', 'cxx' (#2017) - fix(ini/toml): Support comments on the same line. (#2039) - fix(JSX): not rendering well in a function without parentheses. (#2024) - fix(LiveCode): language definition update (#2021) - fix(markdown): indented lists (#2004) - fix(styles/school-book): don't style all the pre, use .hljs instead (#2034) - fix(JSX): Modify JSX tag detection to use XML language regex in place of simplistic \w+

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

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

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

  6. 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)
  7. 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)

  8. Version 9.14.1

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

  9. 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.
  10. Version 9.13.0

    New languages:

    New styles:

    Improvements: