scrivo/highlight.php
Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js
v9.12.0
52M downloads/mo
#385 most downloaded on Packagist
scrivo/highlight.php
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 13 months
Rarely documented
notes for 4 of 47 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
47 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
46 releases · Apr 2014 to Dec 2022Releases
latest 47-
v9.12.015 Nov 2017Release notes
Open source →New language:
- MikroTik RouterOS Scripting language by Ivan Dementev.
New style:
- VisualStudio 2015 Dark by Nicolas LLOBERA
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.
-
v9.0.001 Jan 2016Release notes
Open source →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 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 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.
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 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.
-
v8.9.131 Dec 2015Release notes
Open source →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
-
v8.8.024 Nov 2015Release notes
Open source →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
asyncandawaitto 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
-
v9.18.1.903 Dec 2021Nothing published for this version
-
v9.18.1.824 Oct 2021Nothing published for this version
-
v9.18.1.709 Jul 2021Nothing published for this version
-
v9.18.1.622 Dec 2020Nothing published for this version
-
v9.18.1.522 Nov 2020Nothing published for this version
-
v9.18.1.401 Nov 2020Nothing published for this version
-
v9.18.1.316 Oct 2020Nothing published for this version
-
v9.18.1.227 Aug 2020Nothing published for this version
-
v9.18.1.1017 Dec 2022Nothing published for this version
-
v9.18.1.102 Mar 2020Nothing published for this version
-
v9.18.1.003 Feb 2020Nothing published for this version
-
v9.18.0.029 Jan 2020Nothing published for this version
-
v9.17.1.127 Jan 2020Nothing published for this version
-
v9.17.1.013 Dec 2019Nothing published for this version
-
v9.16.2.013 Dec 2019Nothing published for this version
-
v9.15.9.009 Aug 2019Nothing published for this version
-
v9.15.8.120 Jul 2019Nothing published for this version
-
v9.15.8.031 May 2019Nothing published for this version
-
v9.15.6.131 Mar 2019Nothing published for this version
-
v9.15.6.006 Mar 2019Nothing published for this version
-
v9.15.10.027 Aug 2019Nothing published for this version
-
v9.15.1.006 Mar 2019Nothing published for this version
-
v9.15.0.006 Mar 2019Nothing published for this version
-
v9.14.2.008 Feb 2019Nothing published for this version
-
v9.14.1.008 Feb 2019Nothing published for this version
-
v9.14.0.0no dateNothing published for this version
-
v9.13.1.115 Jan 2019Nothing published for this version
-
v9.13.1.023 Nov 2018Nothing published for this version
-
v9.13.0.022 Nov 2018Nothing published for this version
-
v9.12.0.524 Aug 2018Nothing published for this version
-
v9.12.0.405 Aug 2018Nothing published for this version
-
v9.12.0.318 Jun 2018Nothing published for this version
-
v9.12.0.219 Feb 2018Nothing published for this version
-
v9.12.0.124 Dec 2017Nothing published for this version
-
v8.722 Nov 2015Nothing published for this version
-
v8.621 Nov 2015Nothing published for this version
-
v8.502 Aug 2015Nothing published for this version
-
v8.426 Jul 2015Nothing published for this version
-
v8.323 Dec 2014Nothing published for this version
-
v8.230 Aug 2014Nothing published for this version
-
v8.111 Jul 2014Nothing published for this version
-
v8.003 May 2014Nothing published for this version
-
v7.529 Apr 2014Nothing published for this version