/code-editor

Acode - powerful text/code editor for android

Primary LanguageJavaScriptMIT LicenseMIT

Acode editor (Code editor for android)

Build the app

logo

This is a hybrid app using Apache Cordova. This app is published on play store. Check it out from here.

Note: This project is not organised and it is very hard understand the project structure. I'll try to make it clear as possible.

Project structure

  • src (directory) contains all raw codes
  • www (directory) contains public documents, built javascript and css files, language files and HTML files
  • utils (directory) contains the cli tool to manipulate or add string to all languages easily

Multi language support

To add new language, create a new file with language code for android (eg. en-us for english) in www/lang/ direcotry. After adding new laguage also add it to src/constants.js -> langList.

Here are few utility tools to add, remove or search a string in all added languages.

yarn lang add
yarn lang remove
yarn lang search
yarn lang update

How to build

In order to build the app you must have Nodejs, NPM and Apache Cordova installed on your device. Use Cordova CLI to build application.

First run npm install to install all dependencies, then run webpack to build src and then run cordova build android.

If you have installed yarn you can simply run yarn build-run to build the apk and run on connect android device or emulator.

Special thanks to