# Neiki's Code Editor A **lightweight** embeddable code editor built as a Web Component. ## Features - *Syntax highlighting* for multiple languages - Line numbers with active line indicator - Dark and light themes - Search functionality (`Ctrl+F`) - Auto-closing brackets - Tab indentation ## Quick Start ```html ``` Then use it in your HTML: ```html console.log("Hello world"); ``` ## API | Method | Description | |--------|-------------| | `getValue()` | Returns current code | | `setValue(v)` | Sets the code | | `focus()` | Focuses the editor | | `format()` | Formats JSON content | > Built with love, zero dependencies. [View on GitHub](https://github.com/example/neiki-code-editor)
6. Readonly Mode
The editor is not editable — useful for code snippets and documentation.
// This editor is readonly — you can't edit this code const greeting = "Hello from Neiki's Code Editor!"; console.log(greeting);