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
Consider Adding support for RSX
#198
Comments
I am also working with dioxus. Adding the following to setting.json fixed it for my situation.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I've been using Dioxus a lot recently, and I was wondering if there was a possibility that this could support "RSX" style formatting. Syntactically, it's extremely similar to
JSX
, so I don't think adding the ability to support it would be that much of an ask.RSX Example:
Describe the solution you'd like
From what I can tell, it's likely that Headwind just doesn't know to run when a
.rs
file is open.In the tailwindCSS extension for vscode, this is solved by changing the setting
tailwindCSS.includeLanguages
Perhaps Headwind could implement something similar? Then this would apply to future JSX-like language formats.
Describe alternatives you've considered
I can't really think of anything other than trying to write everything in JSX or similar and then having my program do some hacky read from a file stuff.
Additional context
For what it's worth, I have tried adding regex to the
headwind.classRegex
setting like so, but that seems to do nothing.I've also attempted an edited JSX regex from #85
The text was updated successfully, but these errors were encountered: