Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MahmoudMabrok opened this issue Aug 17, 2020 · 20 comments
Labels
Discussion Discussion issue

Comments

@MahmoudMabrok
Copy link

No description provided.

@AmrDeveloper
Copy link
Owner

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

@MahmoudMabrok
Copy link
Author

@AmrDeveloper good work

@m-anshuman2166
Copy link
Contributor

@AmrDeveloper can u add HTML in examples too? 👍

@AmrDeveloper
Copy link
Owner

@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

@m-anshuman2166
Copy link
Contributor

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
Copy link
Contributor

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

@AmrDeveloper
Copy link
Owner

AmrDeveloper commented Dec 5, 2021

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

@AddyDevz
Copy link

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

Light mode :
image

Dark mode :
image

@AddyDevz
Copy link

BTW, can we add custom font?

@AmrDeveloper
Copy link
Owner

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
Copy link
Owner

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

@AddyDevz
Copy link

Okay, thanks for your cool library

@AmrDeveloper
Copy link
Owner

You're most welcome, enjoy 😄

@AddyDevz
Copy link

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

image

@AmrDeveloper
Copy link
Owner

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

Thank you for the suggestion and demo screenshot

@rudrathedev
Copy link

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

@AmrDeveloper
Copy link
Owner

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 AmrDeveloper added the Discussion Discussion issue label Feb 25, 2022
@m-anshuman2166
Copy link
Contributor

Perhaps, this can be closed 🤔

@AmrDeveloper
Copy link
Owner

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

@m-anshuman2166
Copy link
Contributor

https://bit.ly/3JxSOF0

An app using codeView 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Discussion issue
Projects
None yet
Development

No branches or pull requests

5 participants