-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Xml syntax highlight #3479
Comments
You could try to just enable the html highlighting for xml files (in Alternatively, there is also https://github.com/unhammer/tree-sitter-xml, but I don't know how good that implementation is. |
@ChrHorn yes I was about to try that. Adding xml to the html file types works. It is good enough for me but it might be an issue for those who have the html language server enabled. Anyway I am closing this. Thanks for the help! edit: adding my configuration for future readers
|
You can alternatively create a new language entry for XML that uses the syntax highlighting for HTML: [[language]]
name = "xml"
scope = "scope.xml"
injection-regex = "xml"
file-types = ["xml"]
roots = []
indent = { tab-width = 2, unit = " " }
grammar = "html" You'll have to create a folder at ; inherits html |
just |
I was surprised to see that there was no support for xml yet. I am willing to give a shot to adding syntax highlighting. Is it something doable for a rust newbie?
The text was updated successfully, but these errors were encountered: