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

Perform "context-free" syntax highlighting for large files #226

Open
danvk opened this issue Aug 28, 2024 · 0 comments
Open

Perform "context-free" syntax highlighting for large files #226

danvk opened this issue Aug 28, 2024 · 0 comments

Comments

@danvk
Copy link
Owner

danvk commented Aug 28, 2024

If you try to diff two 20 MB JSON files with just a few changes, git diff will happily do it. But the webdiff UI might choke because it does syntax highlighting on both full 20MB files before displaying the diff hunks. It would be better if it didn't try to do this, and instead ignored the bits outside the diff hunk for syntax highlighting because JSON syntax highlighting isn't particularly sensitive to context.

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

No branches or pull requests

1 participant