-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Switch syntax highlighting to PrismJS #3685
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3685 +/- ##
==========================================
- Coverage 35.8% 35.79% -0.02%
==========================================
Files 287 287
Lines 41489 41489
==========================================
- Hits 14857 14852 -5
- Misses 24445 24449 +4
- Partials 2187 2188 +1
Continue to review full report at Codecov.
|
".mlx": "matlab", | ||
".pas": "pascal", | ||
".patch": "diff", | ||
".py": "python", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no .go
support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is, just in other dict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add D
8aa56a8
to
a604870
Compare
I have fixed diff view but currently changed line part highlight is still lost |
In my testing for large files performance is awful so we should probably look at server side rendering |
It's looks like #1337 will also be fixed with this PR |
Any progress on this, or is the performance bad enough to instead consider Chroma as suggested in #3682 (comment)? I would like to improve support for Perl 6 syntax highlighting in Gitea, so I would like to know if I should look into adding it to PrismJS or Chroma. |
That has to be tested |
Closing due to performance reasons, and also because we will be switching to server side rendering (likely using chroma) |
Reference: #7729. |
Looks to be working fine except for diff views that still needs to be fixed. Would need some help on testing more source code to see if it does not break.
Fixes #3682