DEV Community

Porag Fuad
Porag Fuad

Posted on

I built an Android code editor that runs Python fully offline — Porag Codes

I wanted to write and run code on my phone without depending on the internet, so I built Porag Codes, a free Android code editor — and it's now open source under the MIT license.

What it does

  • 28 languages with syntax highlighting: Python, HTML, CSS, JavaScript, TypeScript, Java, Kotlin, C, C++, C#, Go, Rust, Bash, PHP, Ruby, Swift, Dart, SQL, and more
  • Auto-suggestions while typing — keywords, builtins, methods and snippets, offered in the right context (for example, Python import snippets only at the start of a line, input() inside an expression)
  • Offline Python powered by Skulpt, including a working input() through an on-screen dialog
  • Offline JavaScript with console.log captured, and a live HTML preview
  • Online execution for C, C++, Go, Rust, Java, Kotlin and others through the free Judge0 CE API
  • Auto-indent after if:-style lines, friendly error hints, line numbers, a symbol bar, find, undo/redo
  • Open/save real files via Android's Storage Access Framework — the app's only permission is INTERNET, used solely for the online Run feature

Try it

It's built with plain Java and the Android SDK (no Gradle/AndroidX). Feedback, issues and pull requests are very welcome!

Top comments (0)