Android Tutorial [B4X] BCTextEngine parser: B4X Code Highlighter

Discussion in 'Tutorials & Examples' started by Erel, Sep 5, 2019.

  1. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG]

    [​IMG]

    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.
     

    Attached Files:

    Last edited: Sep 5, 2019
  2. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    You are the best!!!!!!!!!! :D i'm smyling... :D :D :D
     
  3. AnandGupta

    AnandGupta Active Member Licensed User

    GOD please give me 10% of knowledge and enthusiasm of Erel.

    Regards,

    Anand
     
  4. JMB

    JMB Active Member Licensed User

    That is absolutely superb!
     
  5. William Lancee

    William Lancee Member Licensed User

    The B4X code parser itself is a work of art!
     
  6. jahswani

    jahswani Active Member Licensed User

    Maybe a Cross Platform IDE in the future future.
     
    yiankos1 and Alexander Stolte like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice