gitea/routers/web
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
..
admin Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
auth Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
devtest Always show the "rerun" button for action jobs (#33692) 2025-02-24 08:40:46 +00:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
feed Add pubdate for repository rss and add some tests (#33411) 2025-01-27 23:58:46 +08:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
org Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
repo Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
shared Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
user Improve theme display (#30671) 2025-03-08 21:38:11 +00:00
base.go Prepare for support performance trace (#33286) 2025-01-15 20:05:18 +00:00
githttp.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
goget.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
home.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Always show the "rerun" button for action jobs (#33692) 2025-02-24 08:40:46 +00:00
webfinger.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00