CodePad
An offline text, code and Markdown editor for Android.
- v4.1.4
- Private repository
- Languages formatted offline
- 12
- Text encodings
- 7
- Open tabs at most
- 16
- Release unit tests, 0 failures
- 74
- Release emulator tests passed
- 11
- Internet permissions
- 0
Writing and editing
Each tab keeps its own text, selection and undo history. Tabs can be pinned, duplicated and reopened after closing, and the app holds up to 16 at once. The editor has line numbers, word wrap, zoom, keyboard shortcuts, a command palette and Focus Mode, with AMOLED, dark and light themes. A home screen offers new, continue and recent files, and other apps can open text files straight into the editor.
Code and Markdown
Syntax highlighting covers Markdown, Java and Kotlin, JSON, XML and HTML, Python, JavaScript and TypeScript, CSS, shell, SQL and YAML. Code formatting runs offline for 12 languages. The formatter does not support Kotlin. Markdown has a preview and a split view, colors fenced code blocks by language, and exports to a web page or a PDF. PDF output is a simpler version of the preview.
Keeping files safe
Files open through the Android file picker, so the app sees only what you choose. If a file changed outside the app, saving stops instead of overwriting it. If a write fails, the app tries to restore the previous content and keeps a recovery copy when it cannot. Recovery snapshots hold open tabs after a crash. Local version history keeps up to 12 checkpoints for a document, for up to 90 days, within a 32 MB total. The app requests no internet permission, Android backup is off, and the preview runs with JavaScript off. Private app storage is not encrypted by the app.
Limits
A file can be up to 16 MB. Highlighting stops above 200,000 characters. Comparison reads up to 6,000 lines on each side. Pattern search uses the RE2/J engine with fixed limits on pattern length, text size and match count.
What was tested
The signed 4.1.4 release passed 74 unit tests and 11 tests on an Android 15 emulator, with 43 lint warnings and no lint errors. On 28 November 2026 the source moved to its own repository, where an automated build made the debug and unsigned release packages and passed the unit tests and lint. That run did not repeat the emulator tests or make a signed release.
Still to check
Testing on a physical phone, on Android 16, in landscape, with larger fonts and with a screen reader is still open. Draft recovery after the system ends the app, failed writes from storage providers, speed with large files, and print and export quality also need more checks.
Features
| Feature | What it does |
|---|---|
| Tabs | Up to 16, each with its own undo history. Pin, duplicate and reopen them. |
| Search | Find and replace with patterns, and search across open tabs. |
| Syntax | Colors code and fenced blocks in Markdown by language. |
| Formatting | Offline formatting for 12 languages, not including Kotlin. |
| Markdown | Preview or split view, with export to web page and PDF. |
| Compare | Side-by-side line differences with linked scrolling. |
| Safe saving | Stops on outside changes and tries to restore a failed write. |
| Recovery | Crash snapshots, autosave and local version checkpoints. |
| Encodings | Seven text encodings, with line-ending controls. |
| Focus Mode | Hides the menus, tabs and tools while you write. |
Details
Tools
- Java
- Android Views
- AppCompat
- CommonMark
- RE2/J
- Robolectric
- GitHub Actions