Sep 5, 2019 Replies: 17 This is an example of creating a custom parser for BBCodeView. It depends on BCTextEngine v1.61+ which allows setting the text runs directly instead of parsing the BBCode. The parser is compatible with B4A, B4J and B4i. Note that in B4J the text looks less clear with the dark theme due to the antialiasing method used and the small text. It does look good with the dark theme in B4A and B4i. The class is included in the B4A example. It is an example. It doesn't support all of B4X programming language features. Attachments CodeHighlighter.zip CodeHighlighter.zip 14.4 KB · Views: 1,522 Last edited: Sep 5, 2019 Click to expand...
This is an example of creating a custom parser for BBCodeView. It depends on BCTextEngine v1.61+ which allows setting the text runs directly instead of parsing the BBCode. The parser is compatible with B4A, B4J and B4i. Note that in B4J the text looks less clear with the dark theme due to the antialiasing method used and the small text. It does look good with the dark theme in B4A and B4i. The class is included in the B4A example. It is an example. It doesn't support all of B4X programming language features.
Alexander Stolte Expert Licensed User Longtime User Sep 5, 2019 #2 You are the best!!!!!!!!!! i'm smyling...
AnandGupta Expert Licensed User Longtime User Sep 5, 2019 #3 GOD please give me 10% of knowledge and enthusiasm of Erel. Regards, Anand
William Lancee Well-Known Member Licensed User Longtime User Sep 5, 2019 #5 The B4X code parser itself is a work of art!
jahswant Well-Known Member Licensed User Longtime User Sep 5, 2019 #6 Erel said: It is an example. It doesn't support all of B4X programming language features. Click to expand... Maybe a Cross Platform IDE in the future future.
Erel said: It is an example. It doesn't support all of B4X programming language features. Click to expand... Maybe a Cross Platform IDE in the future future.
Erel B4X founder Staff member Licensed User Longtime User Jun 29, 2020 #7 Example updated, it is based on B4XPages.
JakeBullet70 Well-Known Member Licensed User Longtime User Jul 9, 2020 #8 Got to love b4x. Downloaded example, two hours later have both an Windows and Android version to parse and view our companies custom XML. They want to use Xamarin so I am having a fight at the moment...
Got to love b4x. Downloaded example, two hours later have both an Windows and Android version to parse and view our companies custom XML. They want to use Xamarin so I am having a fight at the moment...
AnandGupta Expert Licensed User Longtime User Jul 9, 2020 #9 JakeBullet70 said: so I am having a fight at the moment... Click to expand... We all are behind you ? Regards, Anand
JakeBullet70 said: so I am having a fight at the moment... Click to expand... We all are behind you ? Regards, Anand
JakeBullet70 Well-Known Member Licensed User Longtime User Jul 13, 2020 #10 JakeBullet70 said: They want to use Xamarin so I am having a fight at the moment... Click to expand... I win!
JakeBullet70 said: They want to use Xamarin so I am having a fight at the moment... Click to expand... I win!
LucaMs Expert Licensed User Longtime User Mar 7, 2021 #11 There is a bug; parsing this line: B4X: Page1.Title = $"$1.2{fraction * 100}%-${url}"$
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2021 #12 Parsing smart strings, and especially multiline smart strings, is quite complex. As written in the first post this parser was written as an example and it doesn't support all of B4X features.
Parsing smart strings, and especially multiline smart strings, is quite complex. As written in the first post this parser was written as an example and it doesn't support all of B4X features.
LucaMs Expert Licensed User Longtime User Mar 8, 2021 #13 Erel said: Parsing smart strings, and especially multiline smart strings, is quite complex. As written in the first post this parser was written as an example and it doesn't support all of B4X features. Click to expand... Which means: fix it yourself ? Too bad, my laziness hoped the author would do it ?
Erel said: Parsing smart strings, and especially multiline smart strings, is quite complex. As written in the first post this parser was written as an example and it doesn't support all of B4X features. Click to expand... Which means: fix it yourself ? Too bad, my laziness hoped the author would do it ?
LucaMs Expert Licensed User Longtime User Mar 9, 2021 #16 I know; that problem, anyway, is that it crashes. If it doesn't recognize some element, keeping its default color but without crashing ...!
I know; that problem, anyway, is that it crashes. If it doesn't recognize some element, keeping its default color but without crashing ...!
LucaMs Expert Licensed User Longtime User Mar 12, 2021 #17 LucaMs said: I know; that problem, anyway, is that it crashes. If it doesn't recognize some element, keeping its default color but without crashing ...! Click to expand... Solved. Last edited: Mar 13, 2021
LucaMs said: I know; that problem, anyway, is that it crashes. If it doesn't recognize some element, keeping its default color but without crashing ...! Click to expand... Solved.