Code Monkey home page Code Monkey logo

Comments (8)

atymic avatar atymic commented on July 22, 2024

So i've tested in VScode and it works correctly. I found these issues related to it:

microsoft/vscode#14166
microsoft/vscode#16502

So i'm not sure why it doesn't work here. I think maybe because the actual grammar file is not the same as the one used by vscode?

from shiki.

octref avatar octref commented on July 22, 2024

I think the behavior is consistent with VS Code:

image

image

from shiki.

D-Marc1 avatar D-Marc1 commented on July 22, 2024

@octref It works if you do it in markdown on VSCode though.

Screen Shot 2020-08-21 at 12 04 04 PM

from shiki.

octref avatar octref commented on July 22, 2024

I can only allow 1 PHP grammar. If I change it, people who has written <?php in their PHP code would complain to me why it's not syntax highlighted correctly.

from shiki.

D-Marc1 avatar D-Marc1 commented on July 22, 2024

Unless I'm missing something, wouldn't it be more versatile to use the markdown version of PHP as the 1 PHP grammar? Appending <?php still works for me, so it should still be supported for people who are using it.

Screen Shot 2020-08-22 at 7 28 15 AM

from shiki.

octref avatar octref commented on July 22, 2024

Seems working in 0.2.0:

image

from shiki.

D-Marc1 avatar D-Marc1 commented on July 22, 2024

You're the man, @octref! Big thanks for all of your hard work in OSS!

from shiki.

atymic avatar atymic commented on July 22, 2024

Awesome job, thanks @octref 👍

from shiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.