Difference between revisions for Syntax Highlighters
|
|
Next edit →
|
| Merge of Version1 & Version2 | |
|---|---|
| 9 | |
| 10 | This setup creates maintenance burden, inconsistent quality, and suboptimal performance (especially with client-side JS). |
| 11 | |
| 12 | ==== |
| 13 | **Phiki** (by Ryan Chandler) is a pure-PHP syntax highlighter inspired by Shiki. It uses TextMate grammar files for accurate tokenization and VS Code themes for styling. |
| 14 | |
| 15 | **Key strengths**: |
| … | … |
| 22 | |
| 23 | **Basic usage** (Composer install: ##composer require phiki/phiki:^2.0##): |
| 24 | |
| 25 | %%( |
| 26 | use Phiki\Phiki; |
| 27 | use Phiki\Grammar\Grammar; |
| 28 | use Phiki\Theme\Theme; |