CodeView icon indicating copy to clipboard operation
CodeView copied to clipboard

if u can add a running apk or upload it to google play so we can try it

Open MahmoudMabrok opened this issue 5 years ago • 20 comments

MahmoudMabrok avatar Aug 17 '20 12:08 MahmoudMabrok

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 avatar Aug 17 '20 12:08 AmrDeveloper

@AmrDeveloper good work

MahmoudMabrok avatar Aug 17 '20 13:08 MahmoudMabrok

@AmrDeveloper can u add HTML in examples too? 👍

m-anshuman2166 avatar Nov 16 '21 15:11 m-anshuman2166

@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]+=");

codeview_html

AmrDeveloper avatar Nov 16 '21 21:11 AmrDeveloper

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

m-anshuman2166 avatar Dec 05 '21 14:12 m-anshuman2166

image a little issue, inner content of String is highlighted too if its filtered, any solutions?

m-anshuman2166 avatar Dec 05 '21 15:12 m-anshuman2166

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

AmrDeveloper avatar Dec 05 '21 18:12 AmrDeveloper

Thanks for this library and that regex code, i just made an app using it

Light mode : image

Dark mode : image

AddyDevz avatar Jan 19 '22 15:01 AddyDevz

BTW, can we add custom font?

AddyDevz avatar Jan 19 '22 15:01 AddyDevz

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

AmrDeveloper avatar Jan 19 '22 15:01 AmrDeveloper

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

AmrDeveloper avatar Jan 19 '22 15:01 AmrDeveloper

Okay, thanks for your cool library

AddyDevz avatar Jan 19 '22 15:01 AddyDevz

You're most welcome, enjoy 😄

AmrDeveloper avatar Jan 19 '22 15:01 AmrDeveloper

Would be nice if you use it with Jetbrains Mono font, results are damn cool

image

AddyDevz avatar Jan 20 '22 15:01 AddyDevz

@AddyDevz Yes it looks very cool I will use this font in the example app 😄

Thank you for the suggestion and demo screenshot

AmrDeveloper avatar Jan 20 '22 16:01 AmrDeveloper

I'm not so pro in regex patterns, is there any possibility to detect css stuff start, more precisely like .mydiv {

rudrathedev avatar Jan 20 '22 18:01 rudrathedev

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 😄

AmrDeveloper avatar Jan 21 '22 12:01 AmrDeveloper

Perhaps, this can be closed 🤔

m-anshuman2166 avatar Mar 15 '22 14:03 m-anshuman2166

@ansh2166 We can keep it opened for now because it has a lot of good Q&As

AmrDeveloper avatar Mar 15 '22 21:03 AmrDeveloper

https://bit.ly/3JxSOF0

An app using codeView 😁

m-anshuman2166 avatar Apr 11 '22 11:04 m-anshuman2166