www.php-fig.org icon indicating copy to clipboard operation
www.php-fig.org copied to clipboard

PER-CS Code Highlighting Errors

Open ravage84 opened this issue 2 years ago • 1 comments

Going through the specification, I've noticed some of the (PHP) code highlighting to be somewhat off.

3. Declare Statements, Namespace, and Import Statements:

grafik

4.2 Using traits

grafik

10. Heredoc and Nowdoc:

grafik

grafik

ravage84 avatar Jun 01 '23 14:06 ravage84

This is done in https://github.com/php-fig/www.php-fig.org/ using spatie/commonmark-highlighter: https://github.com/php-fig/www.php-fig.org/blob/d4e8ce81affa552f1b62da5fe3e35a802701710d/composer.json#L9

I'm moving this issue in that repo.

It's fairly new syntax, I don't know if that package supports that already (and we just have to upgrade it) or not...

Jean85 avatar Jun 01 '23 15:06 Jean85