SimpleCodeEditor
SimpleCodeEditor with JavaScript Code Highlighter.
Download
Usage
xml
all attribute
Attribute | Descriptionn | Default | Type |
---|---|---|---|
sce_lineColor |
Set line color | lineNumberColor value (= Color.BLACK ) |
Color |
sce_lineNumberColor |
Set line number color | Color.BLACK |
Color |
sce_lineNumberTextSize |
Set line number text size | 13sp |
Integer |
sce_focusLineColor |
Set focused line background color | Color.CYAN |
Color |
sce_applyHighlighter |
Set JavaScript Highlighter (It may cause freezing for long string) | true |
Boolean |
sce_reservedColor |
Set JavaScript Highlighter Reserved word color | Color.argb(255, 21, 101, 192) |
Color |
sce_numberColort |
Set JavaScript Highlighter Number color | Color.argb(255, 191, 54, 12) |
Color |
sce_stringColor |
Set JavaScript Highlighter String color | Color.argb(255, 255, 160, 0) |
Color |
sce_annotationColor |
Set JavaScript Highlighter Annotation color | Color.argb(255, 139, 195, 74) |
Color |
sce_enableHorizontallyScroll |
Set editor can HorizontallyScrolling | false |
Boolean |
all methods
Gradle Setting
You should add this code at Gradle file.
Gradle Error
If you error at Gradle More than one file was found with OS independent path 'META-INF/library_release.kotlin_module'
this, add this code at your Gradle.