mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #1625] [MERGED] FEAT: add syntax highlighting in Code Generator Modal #3436
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#3436
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/1625
Author: @iamtabrezkhan
Created: 5/3/2021
Status: ✅ Merged
Merged: 5/5/2021
Merged by: @AndrewBastin
Base:
main← Head:issue-1507📝 Commits (5)
3f743b4FEAT: add syntax highlighting in Code Generator Modal6c49e5cfix: race condition where no language is selectedefeec13set default export language as cURL63998f4minor UI stylingaa65cadMerge branch 'main' into issue-1507📊 Changes
24 files changed (+43 additions, -12 deletions)
View changed files
📝
components/http/CodegenModal.vue(+19 -11)📝
helpers/codegen/codegen.js(+2 -0)📝
helpers/codegen/generators/c-libcurl.js(+1 -0)📝
helpers/codegen/generators/cs-restsharp.js(+1 -0)📝
helpers/codegen/generators/curl.js(+1 -0)📝
helpers/codegen/generators/go-native.js(+1 -0)📝
helpers/codegen/generators/java-okhttp.js(+1 -0)📝
helpers/codegen/generators/java-unirest.js(+1 -0)📝
helpers/codegen/generators/javascript-fetch.js(+1 -0)📝
helpers/codegen/generators/javascript-jquery.js(+1 -0)📝
helpers/codegen/generators/javascript-xhr.js(+1 -0)📝
helpers/codegen/generators/nodejs-axios.js(+1 -0)📝
helpers/codegen/generators/nodejs-native.js(+1 -0)📝
helpers/codegen/generators/nodejs-request.js(+1 -0)📝
helpers/codegen/generators/nodejs-unirest.js(+1 -0)📝
helpers/codegen/generators/php-curl.js(+1 -0)📝
helpers/codegen/generators/powershell-restmethod.js(+1 -0)📝
helpers/codegen/generators/python-http-client.js(+1 -0)📝
helpers/codegen/generators/python-requests.js(+1 -0)📝
helpers/codegen/generators/ruby-net-http.js(+1 -0)...and 4 more files
📄 Description
Hi @liyasthomas, as discussed in #1507 issue I have added syntax highlighting in generated code modal.
I have used SmartAceEditor as you suggested.
Added a
languageproperty in codegen files based on what ace editor supports.PS: I am new to vuejs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.