gitea/modules
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 +07:00
..
actions Artifacts download api for artifact actions v4 (#33510) 2025-02-16 08:32:54 +07:00
activitypub Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +07:00
analyze Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +07:00
assetfs Fix unittest and repo create bug (#33061) 2024-12-31 18:45:05 +07:00
auth Fix pam auth test regression (#33169) 2025-01-09 21:09:11 +07:00
avatar
badge
base chore: fix some trivial problems and TODOs (#33473) 2025-02-02 18:16:56 +07:00
cache Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
charset refactor: remove redundant err declarations (#32381) 2024-10-30 19:36:24 +07:00
container Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +07:00
csv Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
dump Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +07:00
emoji Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +07:00
eventsource Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +07:00
generate
git Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +07:00
gitrepo Remove context from git struct (#33793) 2025-03-04 11:56:11 +07:00
globallock Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
graceful Refactor pprof labels and process desc (#32909) 2024-12-20 12:17:14 +07:00
gtprof Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
hcaptcha
highlight Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +07:00
hostmatcher
htmlutil Refactor HTMLFormat, update chroma render, fix js error (#33136) 2025-01-08 03:44:32 +07:00
httpcache
httplib Email option to embed images as base64 instead of link (#32061) 2025-03-05 16:29:29 +07:00
indexer Remove context from git struct (#33793) 2025-03-04 11:56:11 +07:00
issue/template Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +07:00
json
label
lfs Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
lfstransfer Fix SSH LFS memory usage (#33455) 2025-01-31 19:05:48 +07:00
log Improve log format (#33814) 2025-03-08 21:47:11 +07:00
markup Refactor global init code and add more comments (#33755) 2025-03-03 10:57:28 +07:00
mcaptcha
metrics
migration refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +07:00
nosql Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +07:00
optional
options
packages Refactor error system (#33771) 2025-03-03 05:36:10 +07:00
paginator
pprof
private Fix SSH LFS memory usage (#33455) 2025-01-31 19:05:48 +07:00
process Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
proxy
proxyprotocol
public
queue Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
recaptcha
references Add sub issue list support (#32940) 2024-12-24 01:54:19 +07:00
regexplru
repository Trivial fixes (#33304) 2025-01-17 08:55:02 +07:00
reqctx [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +07:00
secret Upgrade golangci-lint to v1.64.5 (#33654) 2025-02-21 00:05:40 +07:00
session
setting Email option to embed images as base64 instead of link (#32061) 2025-03-05 16:29:29 +07:00
sitemap
ssh Fine tune ssh related comments and code (#32846) 2024-12-15 06:07:50 +07:00
storage Upgrade golangci-lint to v1.64.5 (#33654) 2025-02-21 00:05:40 +07:00
structs Decouple diff stats query from actual diffing (#33810) 2025-03-08 17:36:08 +07:00
svg Add sub issue list support (#32940) 2024-12-24 01:54:19 +07:00
sync
system Refactor fixture loading for testing (#33024) 2024-12-30 04:06:57 +07:00
tailmsg Support performance trace (#32973) 2025-01-21 18:57:07 +07:00
templates Worktime tracking for the organization level (#19808) 2025-02-03 01:51:12 +07:00
test Refactor template & test related code (#32938) 2024-12-22 15:33:19 +07:00
testlogger Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
timeutil Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +07:00
translation Refactor error system (#33771) 2025-03-03 05:36:10 +07:00
turnstile
typesniffer Add avif image file support (#32508) 2024-11-15 00:55:50 +07:00
updatechecker
uri
user Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +07:00
util Refactor error system (#33771) 2025-03-03 05:36:10 +07:00
validation Refactor context flash msg and global variables (#33375) 2025-01-25 14:36:47 +07:00
web Improve log format (#33814) 2025-03-08 21:47:11 +07:00
webhook Refactor webhook events (#33337) 2025-01-23 18:53:06 +07:00
zstd