gitea/routers/web/repo
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
..
actions Refactor error system () 2025-03-03 05:36:10 +00:00
setting Refactor: move part of updating protected branch logic to service layer () 2025-03-05 19:15:40 +00:00
activity.go Refactor template & test related code () 2024-12-22 15:33:19 +00:00
attachment.go Refactor error system () 2025-02-16 22:13:17 -08:00
blame.go Full-file syntax highlighting for diff pages () 2025-03-09 12:51:58 +08:00
branch.go Refactor error system () 2025-02-16 22:13:17 -08:00
cherry_pick.go Refactor error system () 2025-02-16 22:13:17 -08:00
code_frequency.go Fix incorrect ref commit ID usage () 2025-01-20 07:43:49 +00:00
commit.go Full-file syntax highlighting for diff pages () 2025-03-09 12:51:58 +08:00
compare.go Full-file syntax highlighting for diff pages () 2025-03-09 12:51:58 +08:00
contributors.go Fix incorrect ref commit ID usage () 2025-01-20 07:43:49 +00:00
download.go Refactor error system () 2025-02-16 22:13:17 -08:00
editor.go Decouple diff stats query from actual diffing () 2025-03-08 17:36:08 +08:00
editor_test.go Clarify path param naming () 2024-12-24 13:47:45 +00:00
find.go Refactor template & test related code () 2024-12-22 15:33:19 +00:00
fork.go Refactor error system () 2025-02-16 22:13:17 -08:00
githttp.go Remove context from git struct () 2025-03-04 11:56:11 -08:00
githttp_test.go Fix http protocol auth () 2023-11-02 22:14:33 +08:00
helper.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_comment.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_content_history.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_dependency.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_label.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_label_test.go Remove duplicate "ResponseWriter.Status" method () 2025-01-22 06:37:52 +00:00
issue_list.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_lock.go Move context from modules to services () 2024-02-27 08:12:22 +01:00
issue_new.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_page_meta.go Fix PR's target branch dropdown () 2025-02-14 05:21:31 +00:00
issue_pin.go Move issue pin to an standalone table for querying performance () 2025-02-17 11:28:37 -08:00
issue_poster.go Support public code/issue access for private repositories () 2025-01-14 01:53:34 +00:00
issue_stopwatch.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_suggestions.go Rework suggestion backend () 2025-02-10 16:24:05 +00:00
issue_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
issue_timetrack.go Refactor error system () 2025-02-16 22:13:17 -08:00
issue_view.go Move issue pin to an standalone table for querying performance () 2025-02-17 11:28:37 -08:00
issue_watch.go Refactor error system () 2025-02-16 22:13:17 -08:00
main_test.go make writing main test easier () 2023-09-28 01:38:53 +00:00
middlewares.go Refactor context repository () 2025-01-12 03:39:46 +00:00
migrate.go Refactor error system () 2025-02-16 22:13:17 -08:00
milestone.go Refactor error system () 2025-02-16 22:13:17 -08:00
packages.go Refactor context repository () 2025-01-12 03:39:46 +00:00
patch.go Support choose email when creating a commit via web UI (more) () 2025-01-31 02:36:18 +00:00
projects.go Refactor error system () 2025-02-16 22:13:17 -08:00
projects_test.go Clarify path param naming () 2024-12-24 13:47:45 +00:00
pull.go Full-file syntax highlighting for diff pages () 2025-03-09 12:51:58 +08:00
pull_review.go Refactor error system () 2025-02-16 22:13:17 -08:00
pull_review_test.go Refactor older tests to use testify () 2025-01-09 09:21:47 +08:00
recent_commits.go Fix incorrect ref commit ID usage () 2025-01-20 07:43:49 +00:00
release.go Refactor error system () 2025-02-16 22:13:17 -08:00
release_test.go Validate that the tag doesn't exist when creating a tag via the web () 2025-01-14 09:27:35 +08:00
render.go Refactor error system () 2025-02-16 22:13:17 -08:00
repo.go Refactor error system () 2025-02-16 22:13:17 -08:00
search.go enable literal string for code search () 2025-02-16 11:28:06 +01:00
star.go Refactor web route handler () 2025-02-05 02:14:03 +08:00
topic.go Move context from modules to services () 2024-02-27 08:12:22 +01:00
transfer.go Refactor web route handler () 2025-02-05 02:14:03 +08:00
treelist.go Use `git diff-tree` for `DiffFileTree` on diff pages () 2025-02-28 00:58:25 +00:00
view.go Refactor error system () 2025-02-16 22:13:17 -08:00
view_file.go Simplify context ref name () 2025-01-15 11:15:47 +08:00
view_home.go Fix "redirect link" handling () 2025-01-31 04:12:14 +08:00
view_readme.go Refactor context repository () 2025-01-12 03:39:46 +00:00
view_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
watch.go Refactor web route handler () 2025-02-05 02:14:03 +08:00
webgit.go Support choose email when creating a commit via web UI (more) () 2025-01-31 02:36:18 +00:00
wiki.go Refactor error system () 2025-02-16 22:13:17 -08:00
wiki_test.go Remove duplicate "ResponseWriter.Status" method () 2025-01-22 06:37:52 +00:00