Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

mucute-qwq/MuCodeEditor

Repository files navigation

MuCodeEditor

A smooth large text editor

Introduction

MuCodeEditor is a implementation of code editor, which allows you to modify codes with auto-completion

License

MuCodeEditor uses Apache License 2.0

Features

  1. Basic text editing, text-selection and draw according to the visible line (Support at least 150w line code editing)

  2. Line number displaying

  3. Code highlighting: The default DefaultLexCoroutine implements LexInterface and uses coroutines to implement Lexer asynchronous analysis

  4. Non-mainthreading: i.e. perform a span operation in IO Coroutine

  5. Open File and Save File

  6. Use Parser for deeper syntax parsing and auto-completion

  7. Undo & Redo actions are implemented via the EditorActionController

  8. Use ToolOptionsPanel to quickly select all, copy, paste, and cut

  9. Symbol insertion is implemented quickly via the SymbolTablePanel

  10. You can choose three colors (HSV, Hex, and ARGB) through the ColorPickerDialog

Style

You can customize the style, and for unified operations we use the Controller

Language Support

ECMAScript (highlighting and auto-completion)

HTML (highlighting and auto-completion)

Css (highlighting)

Part of the idea comes from Sora Editor

Blog-article

Sora-Editor

Screenshot

Acknowledgements

summerain0 | Hamster5295