You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
6 days ago
..
csv.go Use Go 1.21 and update dependencies (#26878) 2 years ago
csv_test.go Refactor older tests to use testify (#33140) 2 months ago
git_diff_tree.go Remove context from git struct (#33793) 1 week ago
git_diff_tree_test.go Add go wrapper around git diff-tree --raw -r -M (#33369) 1 month ago
gitdiff.go Full-file syntax highlighting for diff pages (#33766) 6 days ago
gitdiff_test.go Full-file syntax highlighting for diff pages (#33766) 6 days ago
highlightdiff.go Full-file syntax highlighting for diff pages (#33766) 6 days ago
highlightdiff_test.go Full-file syntax highlighting for diff pages (#33766) 6 days ago
main_test.go make writing main test easier (#27270) 1 year ago
submodule.go add submodule diff links (#33097) 2 months ago
submodule_test.go Use test context in tests and new loop system in benchmarks (#33648) 3 weeks ago