Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline PHP Highlighting #181

Open
vinkla opened this issue Sep 13, 2022 · 3 comments
Open

Inline PHP Highlighting #181

vinkla opened this issue Sep 13, 2022 · 3 comments

Comments

@vinkla
Copy link

vinkla commented Sep 13, 2022

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

@HermanMartinus
Copy link
Owner

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([
...

@vinkla
Copy link
Author

vinkla commented Sep 14, 2022

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

```php
Flight::upsert([

@HermanMartinus
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants