Gitea: JavaScript syntax highlighting breaks

Created on 16 Mar 2018  路  5Comments  路  Source: go-gitea/gitea

The title should be concise enough. Tested against 1324d62.

screen shot 2018-03-16 at 22 48 41

The comment highlighting continues until EOF.

kinbug revieweconfirmed

Most helpful comment

@lafriks Maybe we should use something like https://github.com/alecthomas/chroma

This one is also used in Huge AFAIK

All 5 comments

As our used library for syntax highlighting is not maintained anymore we should probably switch to https://github.com/PrismJS/prism for example

@lafriks As another note regarding prism has the autoloader plugin would greatly reduce the amount of JS being moved around as it would be loading one language at a time instead of all of them the way highlightjs currently does.

@tankerkiller125 that would be doable but problem is that for larger diff/code pages prism performance is quite bad :(

@lafriks Maybe we should use something like https://github.com/alecthomas/chroma

This one is also used in Huge AFAIK

Hey, any news about this issue?
I'm currently facing the same problem in C++ when using Doxygen style comments:

Over a structure:
2019-06-21_10-08-26

Over a function member:
2019-06-21_10-08-59

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BRMateus2 picture BRMateus2  路  3Comments

thehowl picture thehowl  路  3Comments

lunny picture lunny  路  3Comments

jakimfett picture jakimfett  路  3Comments

ghost picture ghost  路  3Comments