Skip to content

Add support to HTML#23

Merged
mattmassicotte merged 4 commits intoChimeHQ:mainfrom
unnamedd:Languages/HTML-Support
Nov 22, 2024
Merged

Add support to HTML#23
mattmassicotte merged 4 commits intoChimeHQ:mainfrom
unnamedd:Languages/HTML-Support

Conversation

@unnamedd
Copy link
Copy Markdown
Contributor

@unnamedd unnamedd commented Nov 21, 2024

Description

Add support to HTML

To Do

  • Find and fix the rendering problem that occurs when an HTML file is opened

Screenshots of the problem

image

This PR checks one item in the todo list of the issue #20.

@unnamedd unnamedd changed the title Languages/html support Add support to HTML Nov 21, 2024
@unnamedd unnamedd marked this pull request as draft November 21, 2024 20:23
@mattmassicotte
Copy link
Copy Markdown
Contributor

Ok I had a suspicion and it turns out to be correct. NSTextStorage supports a bunch of loading options, and one controls how it interprets known document types. The fix ended up being really easy!

I also removed the addition to the imported UTIs. This is only necessary for UTIs that are not built in. Have to update the documentation.

@unnamedd
Copy link
Copy Markdown
Contributor Author

Awesome! Thanks for the research and for removing the extra addition on Info.plist.

@unnamedd unnamedd marked this pull request as ready for review November 22, 2024 14:24
@unnamedd
Copy link
Copy Markdown
Contributor Author

@mattmassicotte because of your fix, everything seems ok to be moved on.
Now the PR is ready for you review/merge.

image

@mattmassicotte
Copy link
Copy Markdown
Contributor

Yeah we can revisit the highlighting quality later. That's almost certainly due to poor tree-sitter query definitions.

@mattmassicotte mattmassicotte merged commit 2606ec3 into ChimeHQ:main Nov 22, 2024
@unnamedd unnamedd deleted the Languages/HTML-Support branch November 22, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants