mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1507] Apply syntax highlighting on generated code #480
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#480
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@AndrewBastin commented on GitHub (Feb 23, 2021):
Yeah. This seems like a no-brainer. I will get into it!
@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.
@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.
@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.
@liyasthomas commented on GitHub (May 2, 2021):
Hi @iamtabrezkhan feel free to give it a try. Contributions are welcome 🙌.