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 +08:00
..
actions Artifacts download api for artifact actions v4 (#33510) 2025-02-16 08:32:54 +08:00
activitypub
analyze Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
assetfs
auth Fix pam auth test regression (#33169) 2025-01-09 21:09:11 +08:00
avatar
badge
base chore: fix some trivial problems and TODOs (#33473) 2025-02-02 18:16:56 +00:00
cache Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
charset
container
csv Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
dump
emoji Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
eventsource Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
generate
git Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
gitrepo Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
globallock Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
graceful
gtprof Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
hcaptcha
highlight Full-file syntax highlighting for diff pages (#33766) 2025-03-09 12:51:58 +08:00
hostmatcher
htmlutil Refactor HTMLFormat, update chroma render, fix js error (#33136) 2025-01-08 03:44:32 +00:00
httpcache
httplib Email option to embed images as base64 instead of link (#32061) 2025-03-05 16:29:29 +00:00
indexer Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
issue/template Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
json
label
lfs Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
lfstransfer Fix SSH LFS memory usage (#33455) 2025-01-31 19:05:48 +08:00
log Improve log format (#33814) 2025-03-08 21:47:11 +08:00
markup Refactor global init code and add more comments (#33755) 2025-03-03 10:57:28 +08:00
mcaptcha
metrics
migration refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
nosql Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
optional
options
packages Refactor error system (#33771) 2025-03-03 05:36:10 +00:00
paginator
pprof
private Fix SSH LFS memory usage (#33455) 2025-01-31 19:05:48 +08:00
process Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
proxy
proxyprotocol
public
queue Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
recaptcha
references
regexplru
repository Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
reqctx
secret Upgrade golangci-lint to v1.64.5 (#33654) 2025-02-21 00:05:40 +08:00
session
setting Email option to embed images as base64 instead of link (#32061) 2025-03-05 16:29:29 +00:00
sitemap
ssh
storage Upgrade golangci-lint to v1.64.5 (#33654) 2025-02-21 00:05:40 +08:00
structs Decouple diff stats query from actual diffing (#33810) 2025-03-08 17:36:08 +08:00
svg
sync
system
tailmsg Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
templates Worktime tracking for the organization level (#19808) 2025-02-03 01:51:12 +08:00
test
testlogger Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
timeutil
translation Refactor error system (#33771) 2025-03-03 05:36:10 +00:00
turnstile
typesniffer
updatechecker
uri
user Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
util Refactor error system (#33771) 2025-03-03 05:36:10 +00:00
validation Refactor context flash msg and global variables (#33375) 2025-01-25 14:36:47 +00:00
web Improve log format (#33814) 2025-03-08 21:47:11 +08:00
webhook Refactor webhook events (#33337) 2025-01-23 18:53:06 +00:00
zstd