[GH-ISSUE #33] Code highlight on response body #14

Closed
opened 2026-03-16 12:46:12 +03:00 by kerem · 7 comments
Owner

Originally created by @liyasthomas on GitHub (Aug 23, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/33

Originally assigned to: @AndrewBastin, @liyasthomas on GitHub.

Is your feature request related to a problem? Please describe.
Response body is displayed in plain textarea.

Describe the solution you'd like
Need code highlighting feature.

Describe alternatives you've considered
https://highlightjs.org

Additional context
Add code highlighting to not only the response body but also to parameter lists, POST request body etc.

Originally created by @liyasthomas on GitHub (Aug 23, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/33 Originally assigned to: @AndrewBastin, @liyasthomas on GitHub. **Is your feature request related to a problem? Please describe.** Response body is displayed in plain textarea. **Describe the solution you'd like** Need code highlighting feature. **Describe alternatives you've considered** https://highlightjs.org **Additional context** Add code highlighting to not only the response body but also to parameter lists, POST request body etc.
Author
Owner

@liyasthomas commented on GitHub (Aug 23, 2019):

@AndrewBastin can you take a look at this feature request and possibly make a PR?

<!-- gh-comment-id:524274343 --> @liyasthomas commented on GitHub (Aug 23, 2019): @AndrewBastin can you take a look at this feature request and possibly make a PR?
Author
Owner

@AndrewBastin commented on GitHub (Aug 23, 2019):

Well, I am kinda working on an implementation for this in Prism....
It is a bit hacky, but I am working on one....

If issue #31 is resolved, we can use vue-highlight to do the highlighting hopefully in a less hacky way.

PR coming hopefully tomorrow...

Meanwhile, @liyasthomas you can assign the issue to me

<!-- gh-comment-id:524391157 --> @AndrewBastin commented on GitHub (Aug 23, 2019): Well, I am kinda working on an implementation for this in [Prism](https://prismjs.com/).... It is a bit hacky, but I am working on one.... If issue #31 is resolved, we can use [vue-highlight](https://www.npmjs.com/package/vue-highlightjs) to do the highlighting hopefully in a less hacky way. PR coming hopefully tomorrow... Meanwhile, @liyasthomas you can assign the issue to me
Author
Owner

@AndrewBastin commented on GitHub (Aug 24, 2019):

Well, I have kinda almost finished implementing it, just some few small stuff with like CSS issues are left there to fix, but #44 will require a full rewrite of my current implementation so I am not submitting a PR....

But anyways I have pushed the change in my fork for peeps willing to have a peek and are willing to contribute to....

I am just gonna stop working on this right now and move to other stuff...

<!-- gh-comment-id:524547886 --> @AndrewBastin commented on GitHub (Aug 24, 2019): Well, I have kinda almost finished implementing it, just some few small stuff with like CSS issues are left there to fix, but #44 will require a full rewrite of my current implementation so I am not submitting a PR.... But anyways I have pushed the [change in my fork](https://github.com/AndrewBastin/postwoman/commit/73b5c6a54eda51bdf63bee85d3bb2416ed2f6a33) for peeps willing to have a peek and are willing to contribute to.... I am just gonna stop working on this right now and move to other stuff...
Author
Owner

@AndrewBastin commented on GitHub (Aug 28, 2019):

Sorry for the delays in finishing this, I was kinda busy with travels and stuff... I have submitted a PR #78 resolving the issue with Prism. Please look into it.

<!-- gh-comment-id:525680064 --> @AndrewBastin commented on GitHub (Aug 28, 2019): Sorry for the delays in finishing this, I was kinda busy with travels and stuff... I have submitted a PR #78 resolving the issue with [Prism](https://prismjs.com/). Please look into it.
Author
Owner

@liyasthomas commented on GitHub (Sep 6, 2019):

@AndrewBastin any updates on the issue? I'm hoping to include this feature in the next version release

<!-- gh-comment-id:528665037 --> @liyasthomas commented on GitHub (Sep 6, 2019): @AndrewBastin any updates on the issue? I'm hoping to include this feature in the next version release ✨
Author
Owner

@JacobAnavisca commented on GitHub (Sep 10, 2019):

Hey guys I just created a PR that uses highlight js, hope that's cool. Probably needs some updates to the CSS I added https://github.com/liyasthomas/postwoman/pull/142

<!-- gh-comment-id:529765503 --> @JacobAnavisca commented on GitHub (Sep 10, 2019): Hey guys I just created a PR that uses highlight js, hope that's cool. Probably needs some updates to the CSS I added https://github.com/liyasthomas/postwoman/pull/142
Author
Owner

@liyasthomas commented on GitHub (Sep 12, 2019):

#142 solves this issue

<!-- gh-comment-id:530782564 --> @liyasthomas commented on GitHub (Sep 12, 2019): #142 solves this issue
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#14
No description provided.