Difference between revisions for Syntax Highlighters





Next edit →

Version1 Version2
9 9
10 This setup creates maintenance burden, inconsistent quality, and suboptimal performance (especially with client-side JS). 10 This setup creates maintenance burden, inconsistent quality, and suboptimal performance (especially with client-side JS).
11 11
12 ==== Recommended Primary Replacement: Phiki ==== 12 ====Recommended Primary Replacement: Phiki====
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. 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 14
15 **Key strengths**: 15 **Key strengths**:
22 22
23 **Basic usage** (Composer install: ##composer require phiki/phiki:^2.0##): 23 **Basic usage** (Composer install: ##composer require phiki/phiki:^2.0##):
24 24
25 %%(php) 25 %%(hl php)
26 use Phiki\Phiki; 26 use Phiki\Phiki;
27 use Phiki\Grammar\Grammar; 27 use Phiki\Grammar\Grammar;
28 use Phiki\Theme\Theme; 28 use Phiki\Theme\Theme;