Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Highlighting in Editor #90

Open
FabrizioBrancati opened this issue Apr 30, 2021 · 2 comments · May be fixed by #104
Open

Code Highlighting in Editor #90

FabrizioBrancati opened this issue Apr 30, 2021 · 2 comments · May be fixed by #104
Assignees
Labels
feature Feature pull request
Milestone

Comments

@FabrizioBrancati
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We would like to have a code highlighter in the Editor.

Describe the solution you'd like
We should use AppKit to add this feature. Currently, it would be good to just support the JSON format.
We can also add a Format button near the Import button, to automatically format the code. Also, we can set the editor border to red, if the format is wrong, but this will not change the ability to actually save the request (in case the user wants to send a malformed json).

Describe alternatives you've considered
None.

Additional context
None.

@FabrizioBrancati FabrizioBrancati added the feature Feature pull request label Apr 30, 2021
@FabrizioBrancati FabrizioBrancati added this to the Mocka 0.2.0 milestone Apr 30, 2021
@gaetanomatonti
Copy link

We could use Sourceful.
It currently does not support JSON lexing, but we could contribute opening a PR.
UITextView and NSTextView subclassed are provided for custom syntax highlighting – a SwiftUI UIViewRepresentable is also provided.

@FabrizioBrancati
Copy link
Contributor Author

@gaetanomatonti I agree, we can open some PRs to add more languages support 😉

@gaetanomatonti gaetanomatonti linked a pull request Aug 5, 2021 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature pull request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants