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
associate other file extensions #1
Comments
Adding associations is simple, but I'm not sure whether the code with template syntaxes (such as |
|
Sounds good. |
thank you so much! |
What a cool new formatter! I've been trying it out with dprint and it works great, especially the ability to format embedded CSS and JS tags is brilliant.
I was hoping to use this to format my Jinja2 HTML templates (also known as
htmldjango
filetype in Neovim). Here's an example:index.jinja2
When I run
dprint fmt "**/*.jinja2" --diff | delta
dprint saysNo files found to format with the specified plugins
. That makes sense, sincemarkup_fmt
expects files with the.html
extension. As expected, it works with this trickcat index.jinja2 | dprint fmt --stdin html
.I was hoping to add associations for custom file extensions. I tried it with the following minimal config
dprint.jsonc
but I am getting the error
The text was updated successfully, but these errors were encountered: