[GH-ISSUE #1507] Apply syntax highlighting on generated code #480

Closed
opened 2026-03-16 15:35:51 +03:00 by kerem · 5 comments
Owner

Originally created by @GauthierPLM on GitHub (Feb 23, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1507

Originally assigned to: @iamtabrezkhan on GitHub.

Is your feature request related to a problem? Please describe.
When generating code (for example a cURL command) from a request, the code does not uses syntax highlighting.
Having code well highlighted helps to understand what has been generated before copy-pasting it or using it as an example.

Describe the solution you'd like
I'd like the generated code to have syntax highlighting.

Describe alternatives you've considered
Copy pasting the generated code into an external text editor.

Additional context

Capture d’écran 2021-02-23 à 14 29 17

Originally created by @GauthierPLM on GitHub (Feb 23, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1507 Originally assigned to: @iamtabrezkhan on GitHub. **Is your feature request related to a problem? Please describe.** When generating code (for example a cURL command) from a request, the code does not uses syntax highlighting. Having code well highlighted helps to understand what has been generated before copy-pasting it or using it as an example. **Describe the solution you'd like** I'd like the generated code to have syntax highlighting. **Describe alternatives you've considered** Copy pasting the generated code into an external text editor. **Additional context** ![Capture d’écran 2021-02-23 à 14 29 17](https://user-images.githubusercontent.com/2579741/108850309-84256000-75e3-11eb-8182-c51cfa85d5a0.png)
kerem 2026-03-16 15:35:51 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@AndrewBastin commented on GitHub (Feb 23, 2021):

Yeah. This seems like a no-brainer. I will get into it!

<!-- gh-comment-id:784238682 --> @AndrewBastin commented on GitHub (Feb 23, 2021): Yeah. This seems like a no-brainer. I will get into it!
Author
Owner

@akhilarjun commented on GitHub (Mar 26, 2021):

Hey, Is anyone looking into this issue? As, is it being worked upon?
Or else I can take a dab at it and push a PR for you guys.

<!-- gh-comment-id:807956782 --> @akhilarjun commented on GitHub (Mar 26, 2021): Hey, Is anyone looking into this issue? As, is it being worked upon? Or else I can take a dab at it and push a PR for you guys.
Author
Owner

@liyasthomas commented on GitHub (Mar 26, 2021):

That's cool. Thanks for showing interest in contributing to Hoppscotch. We use Ace editor under the hood for syntax highlighting all editor components. You can find a working example of ace component here: https://github.com/hoppscotch/hoppscotch/blob/main/components/lenses/renderers/JSONLensRenderer.vue#L43-L57

Feel free to contact us for any help.

Ace editor: https://github.com/ajaxorg/ace

Assigning this issue to you.

<!-- gh-comment-id:807964893 --> @liyasthomas commented on GitHub (Mar 26, 2021): That's cool. Thanks for showing interest in contributing to Hoppscotch. We use Ace editor under the hood for syntax highlighting all editor components. You can find a working example of ace component here: https://github.com/hoppscotch/hoppscotch/blob/main/components/lenses/renderers/JSONLensRenderer.vue#L43-L57 Feel free to [contact us](https://github.com/hoppscotch/hoppscotch#contact) for any help. Ace editor: https://github.com/ajaxorg/ace Assigning this issue to you.
Author
Owner

@iamtabrezkhan commented on GitHub (May 2, 2021):

Hi guys, any update on this? Has this been addressed? I would like to help and contribute to this.

<!-- gh-comment-id:830864154 --> @iamtabrezkhan commented on GitHub (May 2, 2021): Hi guys, any update on this? Has this been addressed? I would like to help and contribute to this.
Author
Owner

@liyasthomas commented on GitHub (May 2, 2021):

Hi @iamtabrezkhan feel free to give it a try. Contributions are welcome 🙌.

<!-- gh-comment-id:830924208 --> @liyasthomas commented on GitHub (May 2, 2021): Hi @iamtabrezkhan feel free to give it a try. Contributions are welcome 🙌.
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#480
No description provided.