[PR #20111] [CLOSED] Closes #20013: Syntax highlighting on Data Files #15830

Closed
opened 2025-12-30 00:24:17 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20111
Author: @tobiasge
Created: 8/16/2025
Status: Closed

Base: mainHead: 20013-pygments-highlighter


📝 Commits (2)

📊 Changes

11 files changed (+687 additions, -2 deletions)

View changed files

📝 base_requirements.txt (+4 -0)
netbox/core/templatetags/__init__.py (+0 -0)
netbox/core/templatetags/highlight_code.py (+31 -0)
netbox/core/tests/test_templatetags.py (+57 -0)
📝 netbox/project-static/dist/netbox.css (+1 -1)
📝 netbox/project-static/styles/netbox.scss (+4 -0)
netbox/project-static/styles/pygments/README.md (+33 -0)
netbox/project-static/styles/pygments/_dark.scss (+277 -0)
netbox/project-static/styles/pygments/_light.scss (+277 -0)
📝 netbox/templates/core/datafile.html (+2 -1)
📝 requirements.txt (+1 -0)

📄 Description

Fixes: https://github.com/netbox-community/netbox/issues/20013

Add syntax highlighting on the details page for Data Files.


🔄 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/netbox-community/netbox/pull/20111 **Author:** [@tobiasge](https://github.com/tobiasge) **Created:** 8/16/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `20013-pygments-highlighter` --- ### 📝 Commits (2) - [`18f669b`](https://github.com/netbox-community/netbox/commit/18f669ba8e2865fa90a2f9da8e6357706159578c) Closes #20013: Syntax highlighting on Data Files - [`769edb6`](https://github.com/netbox-community/netbox/commit/769edb6dcb18f31b22d63247b3f90d8f43d3b740) Review comments ### 📊 Changes **11 files changed** (+687 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `base_requirements.txt` (+4 -0) ➕ `netbox/core/templatetags/__init__.py` (+0 -0) ➕ `netbox/core/templatetags/highlight_code.py` (+31 -0) ➕ `netbox/core/tests/test_templatetags.py` (+57 -0) 📝 `netbox/project-static/dist/netbox.css` (+1 -1) 📝 `netbox/project-static/styles/netbox.scss` (+4 -0) ➕ `netbox/project-static/styles/pygments/README.md` (+33 -0) ➕ `netbox/project-static/styles/pygments/_dark.scss` (+277 -0) ➕ `netbox/project-static/styles/pygments/_light.scss` (+277 -0) 📝 `netbox/templates/core/datafile.html` (+2 -1) 📝 `requirements.txt` (+1 -0) </details> ### 📄 Description Fixes: https://github.com/netbox-community/netbox/issues/20013 Add syntax highlighting on the details page for Data Files. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:24:17 +01:00
adam closed this issue 2025-12-30 00:24:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15830