-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
No syntax highlighting on single-line XML #41593
Comments
@HTD Can you paste that line to this issue? |
@aeschli same issue here. a .js file with an array that is 11566 characters on one line (can't share the data, unfortunately private). I can share that syntax highlighting stops at column 1000 which seems significant. |
Oh, now remember. We have a limit on the line length (20'000 characters). Lines that are longer will not be colourized. That's necessary for performance reasons. |
@aeschli just to confirm, I have a 11,566 character file and if I delete everything after character 1000, highlighting starts working again. Should my file not be syntax highlighted at < 20K? Looks like the limit is actually 1000? 🧐 |
Please paste your example to a gist or in this issue, maybe it's something else. |
@aeschli below is 1022 characters. Deleting to 1000 and syntax shows up again: 1022 data:
Could be issue with Babel Javascript syntax highlighter? |
Extensions (7)
Steps to Reproduce:
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: