Android Tutorial [B4X] [B4XPages] BCTextEngine parser: B4X Code Highlighter



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.


    14.4 KB · Views: 362
Last edited: