gitea/routers
Dustin Firebaugh 3f1f808b9e
Full-file syntax highlighting for diff pages (#33766)
Fix #33358, fix #21970

This adds a step in the `GitDiffForRender` that does syntax highlighting for the
entire file and then only references lines from that syntax highlighted
code. This allows things like multi-line comments to be syntax
highlighted correctly.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-09 12:51:58 +08:00
..
api Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
common Add global lock for migrations to make upgrade more safe with multiple replications (#33706) 2025-03-07 21:08:53 +00:00
install Add global lock for migrations to make upgrade more safe with multiple replications (#33706) 2025-03-07 21:08:53 +00:00
private Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
utils Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
web Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
init.go Prepare for support performance trace (#33286) 2025-01-15 20:05:18 +00:00