Monaco Editor is the code editor that powers VS Code. Oorian's wrapper lets you embed this powerful editor in your applications.
Basic Setup
MnEditor editor = new MnEditor();
editor.setLanguage("java");
editor.setTheme(MonacoTheme.VS_DARK);
editor.setHeight("500px");
editor.setValue("public class Hello {\n // Your code here\n}");
body.addElement(editor);
Language Support
Monaco supports 50+ languages with syntax highlighting, including Java, JavaScript, Python, SQL, and many more.
Getting Content
String code = editor.getValue();
// Compile or execute the code
Conclusion
Monaco Editor brings professional code editing to Oorian, perfect for IDEs, code playgrounds, or any application that needs code input.