mkasberg / script-seed

🌱 Seed scripts for popular (& unpopular) scripting languages.
https://mkasberg.github.io/script-seed/
MIT License
11 stars 23 forks source link

Hacky fix for PHP syntax highlighting #92

Closed mkasberg closed 2 years ago

mkasberg commented 2 years ago

Prism.js has a bug that is preventing it from correctly highlighting our sample PHP code. The bug happens when the code includes a <?php tag and heredoc (<<<END) with a single quote (') in it.

The website looks way better with working syntax highlighting, so let's work around this bug by removing the ' from the heredoc in our PHP sample.

The bug has been reported to prism.js: https://github.com/PrismJS/prism/issues/3571