gitea/services/gitdiff
Dustin Firebaugh 3f1f808b9e
Full-file syntax highlighting for diff pages ()
Fix , fix 

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