CodeView
Android Library to make it easy to create your CodeEditor or IDE for any programming language even for your own programming language, just config the view with your langauge keywords and other attributes and you can change CodeView theme in the runtime so it's make easy to support any number of themes, and CodeView has AutoComplete and you can customize it with different keywords and tokenizers
Demo
Main Features:
- Can support any programming language you want
- Can support AutoComplete and customize it with different tokenizers and design
- Can support any theme you want and change it in the runtime
- Syntax Highlighter depend on your patterns so you can support any features like TODO comment
- Can support errors and warns with different colors and remove them in the runtime
- Can change highlighter update delay time
Who uses CodeView?
If you use CodeView in an interesting project, I would like to know!
Add CodeView to your project
Add it in your root build.gradle
Add the dependency
Documentation:
CodeView is based on AppCompatMultiAutoCompleteTextView
Add CodeView on your xml
Initalize CodeView
Clear all patterns from CodeView
Add Patterns for your language, you can add any number of patterns
Or add all patterns as an Map Object
Rehighlight the text depend on the new patterns
Add error line with dynamic color to support error, hint, warn...etc
Clear all error lines
Rehighlight the erros depend on the error lines
Add Custom AutoComplete Adapter
Add Custom AutoComplete Tokenizer
Set highlighter update delay