Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44edc59

Browse files
committed
Update README + composer.json for v10
1 parent e127d5b commit 44edc59

2 files changed

Lines changed: 20 additions & 21 deletions

File tree

README.md

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@
66

77
*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.
88

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+
911
[TOC]: # "## Table of Contents"
1012

1113
## Table of Contents
1214
- [Installation + Setup](#installation--setup)
13-
- [Composer Version Constraints](#composer-version-constraints)
15+
- [Composer Version Constraints](#composer-version-constraints)
1416
- [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)
19+
- [Stylesheets](#stylesheets)
1820
- [Highlighter Utilities](#highlighter-utilities)
1921
- [Versioning](#versioning)
20-
- [Backward Compatibility Promise](#backward-compatibility-promise)
22+
- [Backward Compatibility Promise](#backward-compatibility-promise)
2123
- [Some History](#some-history)
2224
- [License](#license)
2325

@@ -90,16 +92,7 @@ echo "</code></pre>";
9092

9193
#### Default Languages
9294

93-
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.
10396

10497
### Stylesheets
10598

@@ -111,12 +104,13 @@ The core of the project is loyal port of **highlight.js** and is available under
111104

112105
Available functions:
113106

114-
- [`getAvailableStyleSheets(bool $filePaths = false): string[]`](HighlightUtilities/functions.php#L35-L48)
115-
- [`getStyleSheet(string $name): false|string`](HighlightUtilities/functions.php#L94-L107)
116-
- [`getStyleSheetFolder(): string`](HighlightUtilities/functions.php#L115-L123)
117-
- [`getStyleSheetPath(string $name): string`](HighlightUtilities/functions.php#L131-L143)
118-
- [`getThemeBackgroundColor(string $name): float[]`](HighlightUtilities/functions.php#L75-L88)
119-
- [`splitCodeIntoArray(string $html): false|string[]`](HighlightUtilities/functions.php#L156-L169)
107+
- [`getAvailableStyleSheets(bool $filePaths = false): string[]`](src/HighlightUtilities/Functions.php#L40-L53)
108+
- [`getStyleSheet(string $name): false|string`](src/HighlightUtilities/Functions.php#L101-L114)
109+
- [`getStyleSheetFolder(): string`](src/HighlightUtilities/Functions.php#L122-L130)
110+
- [`getStyleSheetPath(string $name): string`](src/HighlightUtilities/Functions.php#L150-L162)
111+
- [`getLanguageFolder(): string`](src/HighlightUtilities/Functions.php#L136-L144)
112+
- [`getThemeBackgroundColor(string $name): float[]`](src/HighlightUtilities/Functions.php#L80-L93)
113+
- [`splitCodeIntoArray(string $html): false|string[]`](src/HighlightUtilities/Functions.php#L175-L188)
120114

121115
## Versioning
122116

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,10 @@
5555
},
5656
"suggest": {
5757
"ext-dom": "Needed to make use of the features in the utilities namespace"
58+
},
59+
"extra": {
60+
"branch-alias": {
61+
"dev-master": "10.0-dev"
62+
}
5863
}
5964
}

0 commit comments

Comments
 (0)