Skip to content

A multifunctional Android code editor library. (aka CodeEditor)

License

Notifications You must be signed in to change notification settings

CO2mega/sora-editor

 
 

Repository files navigation

Banner

CI GitHub license Maven Central
Telegram QQ

sora-editor is a cool and optimized code editor on Android platform

Read this in other languages: English, 简体中文, Español, 日本語.

Note that statements in other languages may not be up-to-date.

Work In Progress This project is still developing slowly.
Download the newest sources from Releases instead of cloning this repository directly. Issues and pull requests are welcome.

Features

  • Syntax highlight
  • Auto-completion (with code snippets)
  • Auto indent
  • Code block lines
  • Scale text
  • Undo/redo
  • Search and replace
  • Auto wordwrap
  • Show non-printable characters
  • Error/Warning/Typo/Deprecated indicators
  • Text magnifier
  • Incremental highlight analysis
  • Sticky Scroll
  • Highlight bracket pairs
  • Event System
  • TextMate and TreeSitter support

Documentation and Quickstart

To check out docs, please visit Documentation Site.

Key bindings

When working with a physical keyboard, you can use key bindings for performing various text actions. The editor provides support for some key bindings by default. However, you can subscribe to KeyBindingEvent and add your own key bindings. You can even override the default key bindings and perform actions of your own.

The currently supported key bindings are mostly similar to Android Studio/Intellij IDEA. See the supported key bindings.

Screenshots

GeneralAppearance ProblemIndicator

Discuss

Contributors

License

sora-editor - the awesome code editor for Android
https://github.com/Rosemoe/sora-editor
Copyright (C) 2020-2024  Rosemoe

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
USA

Please contact Rosemoe by email [email protected] if you need
additional information or have any questions

Acknowledgements

Thanks to JetBrains for allocating free open-source licences for IDEs such as IntelliJ IDEA.

About

A multifunctional Android code editor library. (aka CodeEditor)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 74.3%
  • Kotlin 22.2%
  • Lua 3.3%
  • Scheme 0.2%