Skip to content
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

[Feature Request]: Syntax Highlighting in Code File Thumbnails #585

Open
3 tasks done
Cool-Game-Dev opened this issue Nov 15, 2024 · 1 comment
Open
3 tasks done
Labels
Priority: Low Doesn't require immediate attention Type: Enhancement New feature or request Type: UI/UX User interface and/or user experience
Milestone

Comments

@Cool-Game-Dev
Copy link
Contributor

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • 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

@Cool-Game-Dev Cool-Game-Dev added the Type: Enhancement New feature or request label Nov 15, 2024
@CyanVoxel CyanVoxel added Type: UI/UX User interface and/or user experience Priority: Low Doesn't require immediate attention labels Nov 15, 2024
@CyanVoxel CyanVoxel moved this to 🛠 Ready for Development in TagStudio Development Nov 15, 2024
@CyanVoxel CyanVoxel added this to the Alpha v9.5 (Post-SQL) milestone Nov 15, 2024
@python357-1
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low Doesn't require immediate attention Type: Enhancement New feature or request Type: UI/UX User interface and/or user experience
Projects
Status: 🛠 Ready for Development
Development

No branches or pull requests

3 participants