bearblog icon indicating copy to clipboard operation
bearblog copied to clipboard

Inline PHP Highlighting

Open vinkla opened this issue 2 years ago • 3 comments

Feature request; inline PHP syntax highlighting.

If you want to highlight PHP code you need to add <?php before the actual code.

Without <?php: CleanShot 2022-09-13 at 10 23 45@2x

With <?php: CleanShot 2022-09-13 at 10 23 27@2x

vinkla avatar Sep 13 '22 08:09 vinkla

I just ran a test here You'll need to specify php at the beginning of the code block for it to be recognised as php (if the <?php isn't present).

```php
Flight::upsert([
...

HermanMartinus avatar Sep 14 '22 06:09 HermanMartinus

Hmm, that is what I'm doing here and it doesn't seem to work.

```php
Flight::upsert([

vinkla avatar Sep 14 '22 07:09 vinkla

Ah, I see what you mean. I should have tested with your exact example. This looks like an issue with pygments which is used for syntax highlighting. If you select PHP on their demo page you get the same issue. I'll log an issue with them.

HermanMartinus avatar Sep 14 '22 10:09 HermanMartinus