CodeView
CodeView copied to clipboard
if u can add a running apk or upload it to google play so we can try it
Thanks @MahmoudMabrok
For now, you can run the example app that contains examples for 3 Languages Java, Python, and GoLang with 4 Themes for every one and also you can check the project list
Later I will add more examples that show how error lines work and cover other features and developers also can add their projects
@AmrDeveloper good work
@AmrDeveloper can u add HTML in examples too? 👍
@ansh2166 Hello bro, thanks for your suggestion, I will add a full example that will cover most of the syntax of HTML but for now you can start with just 4 patterns and you will get this result
private static final Pattern PATTERN_NUMBERS = Pattern.compile("\\b(\\d*[.]?\\d+)\\b");
private static final Pattern PATTERN_STRING = Pattern.compile("\".*\"");
private static final Pattern PATTERN_TAGS = Pattern.compile("<[/]?\\s*(\\w+)[>]?");
private static final Pattern PATTERN_ATTRIBUTE = Pattern.compile("[a-zA-Z]+=");
I am pretty interested in library, I would love to see search fuctions, it will highlight that specific piece of code and jump to that line
a little issue, inner content of String is highlighted too if its filtered, any solutions?
Hello @ansh2166,
The problem of highlighted string content is because the order of the patterns try to change the order of keyword with the string patterns, If it not solved please create one issue with your patterns and code example so we can solve it
Please keep the issues separated, so create one issue for each problem with more details so we can discuss each one and track them
Thanks
Thanks for this library and that regex code, i just made an app using it
Light mode :

Dark mode :

BTW, can we add custom font?
Thanks for this library and that regex code, I just made an app using it
You're welcome, I am very happy to see your app, good work
BTW, can we add custom font?
Sure you can add it easily, remember that CodeView is based on MultiAutoCompleteTextView class, so you can change the font easily using setTypeface method like any normal TextView
Okay, thanks for your cool library
You're most welcome, enjoy 😄
Would be nice if you use it with Jetbrains Mono font, results are damn cool

@AddyDevz Yes it looks very cool I will use this font in the example app 😄
Thank you for the suggestion and demo screenshot
I'm not so pro in regex patterns, is there any possibility to detect css stuff start, more precisely like .mydiv {
I'm not so pro in regex patterns, is there any possibility to detect css stuff start, more precisely like
.mydiv {
Hello @rudrathedev
You can use some regex like [.][a-zA-Z]+ [{] to match .mydiv {
You can learn and test your regex again text input easily using this cool website Regex101.com
BTW: soon there will be more examples on how to config some other popular languages 😄
Perhaps, this can be closed 🤔
@ansh2166 We can keep it opened for now because it has a lot of good Q&As
https://bit.ly/3JxSOF0
An app using codeView 😁