gitea/routers/api/v1
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
..
activitypub Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
admin Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
misc Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
notify Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
org Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
packages Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
repo Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
settings Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
shared Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
swagger Artifacts download api for artifact actions v4 (#33510) 2025-02-16 08:32:54 +08:00
user Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
utils Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
api.go Improve swagger generation (#33664) 2025-02-21 00:04:30 -08:00