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

Add source code editor #2

Closed
justinmacorin opened this issue Nov 12, 2023 · 0 comments
Closed

Add source code editor #2

justinmacorin opened this issue Nov 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@justinmacorin
Copy link
Contributor

justinmacorin commented Nov 12, 2023

Implement a source code editor instead of using a HTML contenteditable DIV for the model editor.

Reasoning: Validating, writing, and reading JSON is challenging with no styling. A source code editor can help with this. In addition, it can be used for future source-code related features - like code execution, source code modification, etc.

Files:

  • frontend/pages/models.tsx (modify the contenteditable pre tag)
  • NEW CodeEditor.tsx file

Here is an example of a good code editor: https://microsoft.github.io/monaco-editor/

@justinmacorin justinmacorin added the enhancement New feature or request label Nov 12, 2023
@promptdesk promptdesk deleted a comment from HardikChoudhary24 Nov 19, 2023
@promptdesk promptdesk deleted a comment from chirayu-wal Nov 19, 2023
@promptdesk promptdesk deleted a comment from Nasirahamad88 Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant