SkillAgentSearch skills...

CodeEditor

Code Editor Native Way

Install / Use

/learn @ahmadaghazadeh/CodeEditor
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

CodeEditor Android Arsenal

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

<p align="center"> <a href="https://www.buymeacoffee.com/AhmadAghazadeh" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-orange.png" height="61" width="194" /> </a> </p>

Click For Play Video

Stackoverflow

<div align="center"> <a href="https://youtu.be/lq-P1qwgU1Q"><img src="media/screenshot.png" alt="Play Video"></a> </div>

Setup

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

build.gradle (app)

dependencies {
    ...
    implementation 'com.github.ahmadaghazadeh:CodeEditor:1.0.17'
}

Basic Usage

XML DataBinding

...


        <com.github.ahmadaghazadeh.editor.widget.CodeEditor
            bind:isReadOnly="@{true}"
            bind:code="@{viewModel.code}"
            bind:lang="@{viewModel.lang}"
            bind:isShowExtendedKeyboard="@{false}"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>


...

XML

...


        <com.github.ahmadaghazadeh.editor.widget.CodeEditor
            bind:code="<html></html>"
            bind:lang="html"
            bind:isReadOnly="true"
             bind:isShowExtendedKeyboard="false"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>


...

Java

Demo Activity:

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        editor = findViewById(R.id.editor);
         
    }
}
View on GitHub
GitHub Stars214
CategoryDevelopment
Updated9d ago
Forks29

Languages

Java

Security Score

100/100

Audited on Mar 18, 2026

No findings