TagStudio
TagStudio copied to clipboard
[Feature Request]: Syntax Highlighting in Code File Thumbnails
Checklist
- [X] I am using an up-to-date version.
- [X] I have read the documentation.
- [X] I have searched existing issues.
Description
Add syntax highlighting to thumbnails/previews of code files.
Solution
Create a code media type and apply syntax highlighting to thumbnails and previews. Examples of code file types could include code files themselves as well as metadata and data files, such as .csproj or .json.
Alternatives
No response
QSyntaxHighlighter does exist, but it seems to be meant more for being used by other Qt widgets, and we would need to specify (or find) syntax highlighting rules for every language we wanted to support. I would say it would make more sense to use a python library for treesitter, like https://github.com/tree-sitter/py-tree-sitter