Giter Club home page Giter Club logo

Comments (7)

Sec-ant avatar Sec-ant commented on May 31, 2024

This is a Prettier v3 plugin written as an es module. It seems you're using Prettier v2. Could you please recheck your project and if there're still errors, please provide the reproduction steps.

from prettier-plugin-embed.

quantuminformation avatar quantuminformation commented on May 31, 2024

thx, it works a but but didn't help much:

image

image

from prettier-plugin-embed.

quantuminformation avatar quantuminformation commented on May 31, 2024

you can try here: https://github.com/quantuminformation/vanillajs-patterns

from prettier-plugin-embed.

Sec-ant avatar Sec-ant commented on May 31, 2024

I'm not sure where I should look at. This plugin won't magically format your strings, it requires "identifiers" to tell it which template strings are needed to be formatted and as which language it should be formatted.

Would you please check the README, especially the section "An Overview of the Philosophy" to get a basic idea of how this plugin works and then label your template strings with the identifiers that can be understood by this plugin?

from prettier-plugin-embed.

Sec-ant avatar Sec-ant commented on May 31, 2024

This plugin doesn't support line comments like //language=CSS as indicators because their placement is limited to lines, not AST nodes.

If you need formatting support, please use block comments like /* css */ followed by the string template you want to format.

from prettier-plugin-embed.

Sec-ant avatar Sec-ant commented on May 31, 2024

@quantuminformation Do you have other questions or can we close this issue?

from prettier-plugin-embed.

quantuminformation avatar quantuminformation commented on May 31, 2024

im good thx

from prettier-plugin-embed.

Related Issues (19)

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.