Comments (7)
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.
thx, it works a but but didn't help much:
from prettier-plugin-embed.
you can try here: https://github.com/quantuminformation/vanillajs-patterns
from prettier-plugin-embed.
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.
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.
@quantuminformation Do you have other questions or can we close this issue?
from prettier-plugin-embed.
im good thx
from prettier-plugin-embed.
Related Issues (19)
- How to specify options for prettier-plugin-sql? HOT 11
- Support JS(X) & TS(X) blocks HOT 3
- Config + Code Examples in Readme HOT 1
- Cannot find package '@xml-tools/parser' HOT 8
- Ability to map `sql` to `postgresql` HOT 10
- sql-formatter crash on `$$` SQL delimiter HOT 3
- sql-formatter crash on SQL casts, tilde, square brackets, `$$` delimiter HOT 10
- Tests
- Enhancement: SQL in SQL prettification HOT 5
- Unstable formatting on multi-line dollar-quoted strings with `sql-formatter` `dialect` option HOT 16
- Export separate type declarations for each supported language HOT 15
- [docs] It's not clear what languages or identifiers are supported on first look on README HOT 4
- [meta] use tools like `changesets` for better maintainance HOT 12
- Updating v0.3.2 -> 0.4.1 breaks SQL formatting HOT 7
- Add an online playground
- literal tags with type annotations, sql<Revenue>`...` HOT 2
- Support for object properties as identifiers HOT 12
- Deprecate the name `identifier` in favor of `tag` and `comment`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-plugin-embed.