Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 3.43 KB

README.md

File metadata and controls

68 lines (48 loc) · 3.43 KB

Cloud with code brackets on a purple background

Code Editor

A code and plain-text editor for Android with syntax highlighting, tabs, and find and replace.

Download the signed APK · Android 7.0+

Screenshots

Code editing Find and replace Editor settings
Kotlin source with syntax highlighting, line numbers, and two open tabs Find and replace in a Kotlin file, with matches highlighted in the editor Settings showing a code preview, theme choices, and typography controls

Install or update

Download the signed APK and open it on an Android 7.0 or newer device. To update an earlier GitHub build, install the APK over it.

Features

  • Syntax highlighting by file extension for Kotlin, Java, Python, JavaScript, TypeScript, Rust, JSON, Markdown, and more.
  • Tabbed editing with line numbers, auto-indent, undo and redo, optional word wrap, and a symbol bar for common coding characters.
  • Find and replace with match case, whole-word matching, regular expressions, visible match highlights, and replace all in one undoable edit.
  • File management through Android’s document picker, including opening multiple files, saving copies, and renaming when the storage provider supports it.
  • Editor preferences for theme, accent colour, font, text spacing, indentation, and optional autosave.

Keyboard shortcuts

Shortcut Action
Ctrl+O Open files
Ctrl+S Save the active file
Ctrl+F Find
Ctrl+H Find and replace
F3 / Shift+F3 Next / previous match while Find is open

Regex replacements support capture groups ($1 through $9), newlines (\n), and tabs (\t).

Build from source

Use JDK 17 and Android SDK Platform 34. Open the project in Android Studio and select Run, or build from the repository root with the Gradle wrapper.

./gradlew assembleDebug

On Windows, run .\gradlew.bat assembleDebug. The debug APK is written to app/build/outputs/apk/debug/.

For a signed release, set CODEEDITOR_KEYSTORE to the keystore path and CODEEDITOR_STOREPASS to its password. Set CODEEDITOR_KEYALIAS if your alias differs from nullstacks. Run ./gradlew assembleRelease (or .\gradlew.bat assembleRelease on Windows). Release APKs are written to app/build/outputs/apk/release/. The release build is unsigned when the keystore is unset.

Performance

At startup, the editor builds the first tab once. It creates Find and Replace controls when first opened and loads the syntax-language registry on demand.

Syntax and search highlighting are limited to the visible area and nearby lines. The editor caches line positions for scrolling and cursor jumps, and updates the total line count from edits. Plain-text search scans in linear time. Match counting, large-file and regex find navigation, and replace all run in the background on a text snapshot. Autosave writes files on the I/O thread. Files larger than 24 MB are rejected before loading into the editor.