You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-21Lines changed: 15 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,20 @@
6
6
7
7
*highlight.php* is a server-side syntax highlighter written in PHP that currently supports 185 languages. It's a port of [highlight.js](http://www.highlightjs.org) by Ivan Sagalaev that makes full use of the language and style definitions of the original JavaScript project.
8
8
9
+
> This is the README for highlight.php v10, which is currently under development. The latest stable release is the [9.18.x series](https://github.com/scrivo/highlight.php/tree/9.18).
10
+
9
11
[TOC]: #"## Table of Contents"
10
12
11
13
## Table of Contents
12
14
-[Installation + Setup](#installation--setup)
13
-
-[Composer Version Constraints](#composer-version-constraints)
15
+
-[Composer Version Constraints](#composer-version-constraints)
14
16
-[Usage](#usage)
15
-
-[Explicit Mode](#explicit-mode)
16
-
-[Automatic Language Detection Mode](#automatic-language-detection-mode)
17
-
-[Stylesheets](#stylesheets)
17
+
-[Explicit Mode](#explicit-mode)
18
+
-[Automatic Language Detection Mode](#automatic-language-detection-mode)
In version 9.x of this project, the following languages are the default auto-detected languages:
94
-
95
-
- XML
96
-
- JSON
97
-
- JavaScript
98
-
- CSS
99
-
- PHP
100
-
- HTTP
101
-
102
-
These default languages are considered "legacy behavior" and will be removed in version 10.x of this library to match highlight.js behavior; the new default behavior in 10.x will be to use *every* language.
95
+
If no autodetect languages are set in the highlighter, then every language will be used and cause significant performance issues.
103
96
104
97
### Stylesheets
105
98
@@ -111,12 +104,13 @@ The core of the project is loyal port of **highlight.js** and is available under
0 commit comments