AmrDeveloper / CodeView

Android Library to make it easy to create an Code editor or IDE that support any languages and themes, with auto complete, auto indenting, snippets and more features
https://amrdeveloper.github.io/CodeView/
MIT License
384 stars 51 forks source link

Auto pattern matching with color highliting #37

Closed Chandra-Sekhar-Bala closed 2 years ago

Chandra-Sekhar-Bala commented 2 years ago

Is your feature request related to a problem? Please describe. Just like any code editor, having some predefined code and colors would be great.

Describe the solution you'd like As we can't know in which language user will write, we can save some common keywords and leave the rest (keyword he/she wants to add for highlighting) to the user to implement.

AmrDeveloper commented 2 years ago

Hello @Chandra-Sekhar-Bala,

Thanks for your suggestion, but there are some reasons that I didn't add patterns by default for example

The easy solution If you want to have a predefined pattern you can create a default config in your app that declares them, and then you can add/remove extra patterns, also in the sample app you can find many different patterns and can easily inspire from them

Chandra-Sekhar-Bala commented 2 years ago

You are right, there will be many issues giving so many things out of the box. Also if a developer gonna use this, we might assume that he/she is able to do this much setup work for themselves. Thanks :)