code-input
code-input is a lightweight, modular JavaScript library that transforms a standard textarea into an editable code editor with syntax highlighting support. Unlike monolithic alternatives, it is designed to work with any syntax highlighting algorithm or library, including popular options like Prism.js and highlight.js. The library emphasizes flexibility, progressive enhancement, and web standards compliance by maintaining full HTML form compatibility and the standard textarea JavaScript API. Its plugin-based architecture allows developers to extend functionality modularly without bloating the core package. Use cases include embedding code editors in documentation, creating live demo environments, building lightweight IDEs, or any scenario requiring user-editable highlighted text. The project supports multiple themes, languages, and use cases while remaining accessible and performant. It is available via npm and Yarn, with interactive demos and comprehensive documentation to help developers get started quickly.