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

Twig, PHP syntax highlighting? #42

Closed
thamas opened this issue Jun 8, 2020 · 3 comments
Closed

Twig, PHP syntax highlighting? #42

thamas opened this issue Jun 8, 2020 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@thamas
Copy link

thamas commented Jun 8, 2020

Thanks for this great tool!

I use Shiki in Gridsome via https://gridsome.org/plugins/gridsome-plugin-remark-shiki

I wonder how it is possible to add syntax highlighting for Twig and PHP code snippets which seems to be missing currently.

@octref
Copy link
Collaborator

octref commented Jul 31, 2020

We already bundle PHP, but not twig. I'll think a bit about adding twig language. You can also wait for #49 to land.

@D-Marc1
Copy link

D-Marc1 commented Aug 2, 2020

@octref PHP specifically isn't working for me either, but every other language I use is working.

@octref octref added duplicate This issue or pull request already exists and removed feature-request labels Aug 21, 2020
@octref
Copy link
Collaborator

octref commented Aug 21, 2020

See #21 (comment). You need to have opening and closing <?php tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants