[PR #5006] [MERGED] feat: add colour highlight for codesnippet #5015

Closed
opened 2026-03-17 02:30:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5006
Author: @nivedin
Created: 4/17/2025
Status: Merged
Merged: 4/24/2025
Merged by: @jamesgeorge007

Base: nextHead: feat/code-highlight-show-code


📝 Commits (4)

  • 93d53f2 feat: add colour highlight for codesnippet
  • cc207d9 chore: simplify code
  • c1c283e chore: add missing yaml lang
  • a2e6e4a feat: extend language support

📊 Changes

3 files changed (+62 additions, -3 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/http/Codegen.vue (+4 -1)
📝 packages/hoppscotch-common/src/composables/codemirror.ts (+53 -2)
📝 packages/hoppscotch-common/src/helpers/new-codegen/index.ts (+5 -0)

📄 Description

Closes HFE-741 #4702

This pull request introduces enhancements to the code generation feature by adding colour highlight based on the language selected.

Before

image

After

image


🔄 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/hoppscotch/hoppscotch/pull/5006 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 4/17/2025 **Status:** ✅ Merged **Merged:** 4/24/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `feat/code-highlight-show-code` --- ### 📝 Commits (4) - [`93d53f2`](https://github.com/hoppscotch/hoppscotch/commit/93d53f2ddd2198c47e7cfa5aa32e10f981313904) feat: add colour highlight for codesnippet - [`cc207d9`](https://github.com/hoppscotch/hoppscotch/commit/cc207d9c155d05a738ab6e45bab9c319415e470f) chore: simplify code - [`c1c283e`](https://github.com/hoppscotch/hoppscotch/commit/c1c283ec72e9a459356cbd83bc45708cb048c2eb) chore: add missing yaml lang - [`a2e6e4a`](https://github.com/hoppscotch/hoppscotch/commit/a2e6e4afd6589272204a94076dba0dee0fa0039f) feat: extend language support ### 📊 Changes **3 files changed** (+62 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/http/Codegen.vue` (+4 -1) 📝 `packages/hoppscotch-common/src/composables/codemirror.ts` (+53 -2) 📝 `packages/hoppscotch-common/src/helpers/new-codegen/index.ts` (+5 -0) </details> ### 📄 Description Closes HFE-741 #4702 This pull request introduces enhancements to the code generation feature by adding colour highlight based on the language selected. ### Before ![image](https://github.com/user-attachments/assets/8dbe4210-74bd-4378-a2bc-149a09269169) ### After ![image](https://github.com/user-attachments/assets/795411d7-4ad1-44e6-918c-98ea089f048d) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:30:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5015
No description provided.