[PR #3685] [CLOSED] Switch syntax highlighting to PrismJS #17042

Closed
opened 2025-11-02 12:24:55 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3685
Author: @lafriks
Created: 3/18/2018
Status: Closed

Base: masterHead: feat/syntax_highlight_prism


📝 Commits (4)

📊 Changes

24 files changed (+471 additions, -298 deletions)

View changed files

📝 docs/content/page/index.en-us.md (+1 -1)
📝 docs/content/page/index.fr-fr.md (+1 -1)
📝 docs/content/page/index.zh-cn.md (+1 -1)
📝 docs/content/page/index.zh-tw.md (+1 -1)
📝 modules/highlight/highlight.go (+57 -39)
📝 modules/markup/sanitizer.go (+1 -1)
📝 public/css/index.css (+1 -1)
📝 public/js/index.js (+5 -5)
public/js/prism-keeplines.js (+77 -0)
📝 public/less/_base.less (+0 -6)
📝 public/less/_repository.less (+8 -2)
📝 public/vendor/librejs.html (+5 -5)
public/vendor/plugins/highlight/LICENSE (+0 -25)
public/vendor/plugins/highlight/default.css (+0 -99)
public/vendor/plugins/highlight/github.css (+0 -99)
public/vendor/plugins/highlight/highlight.pack.js (+0 -3)
public/vendor/plugins/prism/LICENSE (+21 -0)
public/vendor/plugins/prism/prism.css (+140 -0)
public/vendor/plugins/prism/prism.js (+144 -0)
📝 templates/base/footer.tmpl (+2 -1)

...and 4 more files

📄 Description

Looks to be working fine except for diff views that still needs to be fixed. Would need some help on testing more source code to see if it does not break.

Fixes #3682


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3685 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 3/18/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/syntax_highlight_prism` --- ### 📝 Commits (4) - [`82f5602`](https://github.com/go-gitea/gitea/commit/82f56025f279580e318cbed74d5ac2d1eca40db4) Switch syntax hightlighting to PrismJS - [`ec85adf`](https://github.com/go-gitea/gitea/commit/ec85adf49b4bba583fdec641c8e36be19b5940b9) Update docs - [`a16442b`](https://github.com/go-gitea/gitea/commit/a16442bbd8ee3820271b93db38256005fd7b4fad) Small fixes - [`a604870`](https://github.com/go-gitea/gitea/commit/a6048701e48bdda22bc9884750ca4d001df23992) Fix diff view ### 📊 Changes **24 files changed** (+471 additions, -298 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/page/index.en-us.md` (+1 -1) 📝 `docs/content/page/index.fr-fr.md` (+1 -1) 📝 `docs/content/page/index.zh-cn.md` (+1 -1) 📝 `docs/content/page/index.zh-tw.md` (+1 -1) 📝 `modules/highlight/highlight.go` (+57 -39) 📝 `modules/markup/sanitizer.go` (+1 -1) 📝 `public/css/index.css` (+1 -1) 📝 `public/js/index.js` (+5 -5) ➕ `public/js/prism-keeplines.js` (+77 -0) 📝 `public/less/_base.less` (+0 -6) 📝 `public/less/_repository.less` (+8 -2) 📝 `public/vendor/librejs.html` (+5 -5) ➖ `public/vendor/plugins/highlight/LICENSE` (+0 -25) ➖ `public/vendor/plugins/highlight/default.css` (+0 -99) ➖ `public/vendor/plugins/highlight/github.css` (+0 -99) ➖ `public/vendor/plugins/highlight/highlight.pack.js` (+0 -3) ➕ `public/vendor/plugins/prism/LICENSE` (+21 -0) ➕ `public/vendor/plugins/prism/prism.css` (+140 -0) ➕ `public/vendor/plugins/prism/prism.js` (+144 -0) 📝 `templates/base/footer.tmpl` (+2 -1) _...and 4 more files_ </details> ### 📄 Description Looks to be working fine except for diff views that still needs to be fixed. Would need some help on testing more source code to see if it does not break. Fixes #3682 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:24:56 -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#17042