- About Mini Code Editor
- Supported languages
- Setup
- Code fast with snippets
- Theming
- Support this project
- License
My goal is to create a code editor that is easy to import, easy to configure and has a license that is copyleft (WHY IS EVERYTHING MIT????).
Works on (Tested on): Firefox, Chrome, Badwolf and Pale Moon.
- C
- CSS
- HTML (consequently XML)
- Javascript
- Python
- Shell
- SQLite
More coming soon...
<div id='editor'></div>
<!-- Import the editor -->
<script src='src/editor.js'></script>
<!-- Import the language -->
<script src='languages/html.js'></script>
<script>
const EDITOR = new MiniCodeEditor('#editor')
EDITOR.setRules(HTML_RULES)
// Some configuration (optional)
EDITOR.setWordWrap(false)
EDITOR.setReadOnly(false)
EDITOR.setFontSize(24)
// Set editor text
EDITOR.setValue('Hello world')
// Get editor text
console.log(EDITOR.getValue())
</script>
Write the keyword and then press Ctrl + Space to instantly generate the code block.
Press F1 inside the code editor to view a list of current snippets
Mini Code Editor color theme is edited using CSS:
Here is an example of a dark theme
body[theme="dracula"] {
--mce-color-blue: #8be9fd;
--mce-color-red: #ff5555;
--mce-color-green: #50fa7b;
--mce-color-orange: #ffb86c;
--mce-color-purple: #bd93f9;
--mce-color-brown: #f1fa8c;
--mce-color-black: #282a36;
--mce-color-white: #f8f8f2;
--mce-color-bg: #282a36;
--mce-color-fg: #f8f8f2;
--mce-color-caret: #f8f8f2;
--mce-color-select: rgba(153, 153, 255, 0.5);
--mce-editor-font: 'Jetbrains Mono', monospace;
--mce-editor-line-height: 1.32;
--mce-editor-border: 2px groove #f8f8f2;
--mce-editor-border-focus: #f8f8f2 0px 1px 4px, #f8f8f2 0px 0px 0px 3px;
}
In this world there are a lot of programming languages, and I can't configure Mini Code Editor for each of them.
If you are interested in contributing to the project, read CONTRIBUTING.md to see how to create or edit programming languages in Mini Code Editor.
Alternatively, you can donate
Mini Code Editor
Copyleft (Ↄ) 2024 Adrian Bogdan. All wrongs reserved.
License: GPL v3.0