/CodeEditor

A professional code editor library on Android with syntax-highlighting and auto-completion.

Primary LanguageJavaApache License 2.0Apache-2.0

CodeEditor


A cool and optimized code editor on Android platform with good performance and nice features.
中文版README请点这里
This project is paused due to school, next major update can probably be delayed to January,2021

Work In Progress This project is still developing slowly. Bugs may be inside.
It is not recommended to use this project for production use.
Note: Branch dev has newest features and bug patches in editor and is developing.
Any method or field can be changed, moved or even deleted at current period.
If you find any bug or require any enhancement, please send it to me by issues or other ways.

See Projects to get more information about what I am working on.
Issues and pull requests are welcome.

Features

  • Smooth syntax highlight
  • Auto completion
  • Auto indent
  • Code block lines
  • Format code (Requires improvement)
  • Scale text
  • Select text
  • Scroll, Scrollbars, EdgeEffect, OverScroll
  • Undo/redo
  • Search and replace
  • Shortcuts
  • Auto wordwrap
  • Show non-printable characters
  • Incremental highlight Analysis

Language Supported

  • Java,JavaScript,C,C++ (Basic Support:highlight, code block line,identifier and keyword auto-completion)
  • S5droid 2.x(context sensitive auto completion, highlight, code block line, navigation)(going to be deprecated)

Screenshots

View Outline Auto Complete Select Text Search and Replace Wordwrap

How to use this editor

  • Step 1.Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
  • Step 2. Add the dependency to your app
dependencies {
  implementation 'com.github.Rosemoe.CodeEditor:editor:<versionName>'
}

Available modules:
editor,language-base,language-java,language-universal,language-s5d

More information

Turn to wiki page.