Embed code from repo in text #9559

Open
opened 2025-11-02 08:42:57 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @JakobDev on GitHub (Sep 13, 2022).

Feature Description

It is possible to embed code from a repo into text (issue, comemnt, PR etc.) on GitHub. You just need to paste a link to code.

e.g.
https://github.com/go-gitea/gitea/blob/eaa561145ac276b9ba8b19e1abd86e97f1a05225/main.go#L53-L63
formats to
eaa561145a/main.go (L53-L63)

This is a really nice feature that Gitea should support too.

Screenshots

No response

Originally created by @JakobDev on GitHub (Sep 13, 2022). ### Feature Description It is possible to embed code from a repo into text (issue, comemnt, PR etc.) on GitHub. You just need to paste a link to code. e.g. `https://github.com/go-gitea/gitea/blob/eaa561145ac276b9ba8b19e1abd86e97f1a05225/main.go#L53-L63` formats to https://github.com/go-gitea/gitea/blob/eaa561145ac276b9ba8b19e1abd86e97f1a05225/main.go#L53-L63 This is a really nice feature that Gitea should support too. ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:42:57 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9559