gitea/services/gitdiff
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
..
csv.go Use Go 1.21 and update dependencies (#26878) 2023-09-03 10:34:57 +00:00
csv_test.go Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
git_diff_tree.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
git_diff_tree_test.go Add go wrapper around git diff-tree --raw -r -M (#33369) 2025-02-07 00:58:28 +00:00
gitdiff.go Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
gitdiff_test.go Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
highlightdiff.go Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
highlightdiff_test.go Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
submodule.go add submodule diff links (#33097) 2025-01-08 01:38:30 +00:00
submodule_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00