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

Support for Browser-Based Prettier #96

Open
1 of 5 tasks
petemolinero opened this issue Aug 5, 2024 · 1 comment
Open
1 of 5 tasks

Support for Browser-Based Prettier #96

petemolinero opened this issue Aug 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@petemolinero
Copy link

petemolinero commented Aug 5, 2024

Which Antlers Toolbox products are you requesting a feature for?

  • Antlers Toolbox for VS Code
  • Antlers Toolbox for VS Code Formatter
  • Formatter CLI
  • Antlers Prettier Plugin
  • Antlers Syntax Highlighting (external systems - not VS Code)

Is your feature request related to a problem? Please describe.
Nope!

Describe the solution you'd like
I can currently use the browser-based version of prettier to format antlers code inside Statamic's Codemirror editor. The antlers plugin, however, does not seem to work with it. I'm guessing that's because it relies on node itself somehow. If it's doable, it would be great if it did (but understandable if not :).

Describe alternatives you've considered
I've tried the angular parser plugin, which kind of works, but it has some drawbacks. (1) it doesn't work great with prettier-ignore, (2) it completely breaks if I escape antlers tags (for use with runtime vue), like @{{, and (3) it doesn't do any indentation for antlers tags or control structures.

Additional context
None

@JohnathonKoster JohnathonKoster added the enhancement New feature or request label Aug 5, 2024
@JohnathonKoster
Copy link
Contributor

Thanks for the suggestion. I think it should be possible, would be a heavy lift. I'll think on it!

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

No branches or pull requests

2 participants