GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — [Feat]: Add code editor as a standalone component by Nangelov7 · Pull Request #1842 · lowcoder-org/lowcoder Conversation
Contributor
Proposed changesThis PR introduces the initial version of a standalone code editor component that can be integrated into low-code applications. The code editor supports theme switching, syntax highlighting, multi-language support, a minimap for code navigation, sticky scroll for header visibility, code folding for better readability, and a read-only mode for viewing code without editing. Issue: #1448 Types of changesWhat types of changes does your code introduce to Lowcoder?
ChecklistYou can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
👷 Deploy request for lowcoder-test pending review.Visit the deploys page to approve it
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
That is a fantastic idea and a wonderful Initiative! As Lowcoder internally makes use of an Code-Editor already, could we ask to check if you can realize the component based on it? When we introduce a new Code-Editor, we increase the size of Lowcoder Bundle Files quite a bit - and may have then "2 Code Editors" parallel in Lowcoder. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @Nangelov7, thanks for this, we really like the idea! I've reviewed the code and tested it. Unfortunately, Monaco isn't a good fit for us: Lowcoder relies heavily on CodeMirror, and as Falk mentioned, adding Monaco would significantly increase the bundle size. While testing I also found an issue: when switching the height property between Auto and Fixed, the code loses its syntax highlighting and shows up as a plain string (tested with JavaScript). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.