Repository navigation
if u can add a running apk or upload it to google play so we can try it #1
Description
Activity
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 listLater 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
Reacted by Amr Hesham and Anshuman M.@AmrDeveloper can u add HTML in examples too? 👍
Reacted by Amr Hesham and Anshuman M.@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
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
Reacted by Anshuman M. and Anshuman MishraBTW, can we add custom font?
Reacted by Amr Hesham and Anshuman MishraThanks 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
Reacted by AddyDevz and Anshuman MishraBTW, can we add custom font?
Sure you can add it easily, remember that CodeView is based on
MultiAutoCompleteTextViewclass, so you can change the font easily usingsetTypefacemethod like any normal TextViewReacted by AddyDevz and Anshuman MishraOkay, thanks for your cool library
Reacted by Amr Hesham and Anshuman MishraYou're most welcome, enjoy 😄
Reacted by AddyDevz and Anshuman Mishra@AddyDevz Yes it looks very cool I will use this font in the example app 😄
Thank you for the suggestion and demo screenshot
Reacted by Anshuman MishraI'm not so pro in regex patterns, is there any possibility to detect css stuff start, more precisely like
.mydiv {Reacted by Amr HeshamI'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 😄
Reacted by Anshuman Mishra, Mahmoud Mabrok Fouad and Anshuman M.Perhaps, this can be closed 🤔
@ansh2166 We can keep it opened for now because it has a lot of good Q&As
An app using codeView 😁