{"id":18889649,"url":"https://github.com/ahmadaghazadeh/codeeditor","last_synced_at":"2025-08-12T18:17:39.650Z","repository":{"id":80864785,"uuid":"150956888","full_name":"ahmadaghazadeh/CodeEditor","owner":"ahmadaghazadeh","description":"Code Editor Native Way","archived":false,"fork":false,"pushed_at":"2022-10-31T20:13:44.000Z","size":945,"stargazers_count":207,"open_issues_count":6,"forks_count":27,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-07-06T22:08:45.878Z","etag":null,"topics":["android","autocomplete","codeeditor","customview","edittext","gradle","jitpack","library","lighlight"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmadaghazadeh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-30T10:23:25.000Z","updated_at":"2025-07-02T22:36:45.000Z","dependencies_parsed_at":"2023-05-18T04:45:24.261Z","dependency_job_id":null,"html_url":"https://github.com/ahmadaghazadeh/CodeEditor","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ahmadaghazadeh/CodeEditor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadaghazadeh%2FCodeEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadaghazadeh%2FCodeEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadaghazadeh%2FCodeEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadaghazadeh%2FCodeEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmadaghazadeh","download_url":"https://codeload.github.com/ahmadaghazadeh/CodeEditor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadaghazadeh%2FCodeEditor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270110981,"owners_count":24529185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","autocomplete","codeeditor","customview","edittext","gradle","jitpack","library","lighlight"],"created_at":"2024-11-08T07:49:54.083Z","updated_at":"2025-08-12T18:17:39.293Z","avatar_url":"https://github.com/ahmadaghazadeh.png","language":"Java","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)\n\nThis is a text/code(Base From [ModPE IDE] ) editor meant for integration as a modular component of the overall UI.\nThe aim is to provide a powerful editor that can be used just like any other View.\n\nCodeEditor has been used for this purpose because it is feature-rich, fast, and easy to modify and embed in applications.\n\n\nPlease note that this library is currently supported on android API 15 and above.\n\nIntegration with existing project\n\n\u003cp align=\"center\"\u003e\n \u003ca href=\"https://www.buymeacoffee.com/AhmadAghazadeh\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-orange.png\" height=\"61\" width=\"194\" /\u003e\n \u003c/a\u003e\n\u003c/p\u003e\n\n\n### [Click For Play Video](https://youtu.be/lq-P1qwgU1Q)\n\n[Stackoverflow](https://stackoverflow.com/a/52641368/1770868)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://youtu.be/lq-P1qwgU1Q\"\u003e\u003cimg src=\"media/screenshot.png\" alt=\"Play Video\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n### Setup\n\n##### build.gradle (project)\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven {\n            url 'https://jitpack.io'\n        }\n    }\n}\n```\n\n#### build.gradle (app)\n```groovy\ndependencies {\n    ...\n    implementation 'com.github.ahmadaghazadeh:CodeEditor:1.0.17'\n}\n```\n\n### Basic Usage\n#### XML DataBinding\n```xml\n...\n\n\n        \u003ccom.github.ahmadaghazadeh.editor.widget.CodeEditor\n            bind:isReadOnly=\"@{true}\"\n            bind:code=\"@{viewModel.code}\"\n            bind:lang=\"@{viewModel.lang}\"\n            bind:isShowExtendedKeyboard=\"@{false}\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"/\u003e\n\n\n...\n```\n\n#### XML\n```xml\n...\n\n\n        \u003ccom.github.ahmadaghazadeh.editor.widget.CodeEditor\n            bind:code=\"\u003chtml\u003e\u003c/html\u003e\"\n            bind:lang=\"html\"\n            bind:isReadOnly=\"true\"\n             bind:isShowExtendedKeyboard=\"false\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"/\u003e\n\n\n...\n```\n\n\n#### Java\nDemo Activity:\n```java\npublic class MainActivity extends Activity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n        editor = findViewById(R.id.editor);\n         \n    }\n}\n```\n","funding_links":["https://www.buymeacoffee.com/AhmadAghazadeh"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadaghazadeh%2Fcodeeditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmadaghazadeh%2Fcodeeditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadaghazadeh%2Fcodeeditor/lists"}