Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmadaghazadeh/codeeditor

Code Editor Native Way
https://github.com/ahmadaghazadeh/codeeditor

android autocomplete codeeditor customview edittext gradle jitpack library lighlight

Last synced: 7 days ago
JSON representation

Code Editor Native Way

Awesome Lists containing this project

README

        

# CodeEditor [![](https://jitpack.io/v/ahmadaghazadeh/CodeEditor.svg)](https://jitpack.io/#ahmadaghazadeh/CodeEditor) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-CodeEditor-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7185)

This is a text/code(Base From [ModPE IDE] ) editor meant for integration as a modular component of the overall UI.
The aim is to provide a powerful editor that can be used just like any other View.

CodeEditor has been used for this purpose because it is feature-rich, fast, and easy to modify and embed in applications.

Please note that this library is currently supported on android API 15 and above.

Integration with existing project





### [Click For Play Video](https://youtu.be/lq-P1qwgU1Q)

[Stackoverflow](https://stackoverflow.com/a/52641368/1770868)


Play Video

---

### Setup

##### build.gradle (project)
```groovy
allprojects {
repositories {
...
maven {
url 'https://jitpack.io'
}
}
}
```

#### build.gradle (app)
```groovy
dependencies {
...
implementation 'com.github.ahmadaghazadeh:CodeEditor:1.0.17'
}
```

### Basic Usage
#### XML DataBinding
```xml
...

...
```

#### XML
```xml
...

...
```

#### Java
Demo Activity:
```java
public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
editor = findViewById(R.id.editor);

}
}
```