REM PrintFormated.bas
BUNDLE.PUT lbn, "_TextHtml", 1
BUNDLE.PUT lbn, "_HtmlTextSelectable", 1
BUNDLE.PUT lbn, "_HtmlBitmapScale", 2 % = double font size
CONSOLE.LAYOUT lbn
mFformattedText$ = "This prints <font color='#0000FF'> only the plain code </font>" %This prints the the plain code
! mFformattedText$ = "This is blue " %
PRINT mFformattedText$
PRINT "Line 2 " + "bold & colored"% Android ≥ 7
PRINT "Line 3 " + "blau und bläulich"
PRINT "Line 4 " + "rot und> rötlich"
! CHR$(1564) switchs to the right side
PRINT CHR$(1564)+"Line 5 " + "grün und grünlich"
PRINT " Basic is fun!"
PRINT "
Header From Type H1
If you want to change something in the layout bundle, it is sufficient to make the changes only in the bundle. Note that every change affects the whole thing. Place a layout change as soon as possible in the Basic! Code. Maybe you have to place a little (PAUSE) break."
PRINT "OliBasic"
FILE.ROOT path$
source$ = "This is a test of getting images, it contains " + ~
"three images:
" + ~
", I" + ~
"y and " + ~
""
PRINT source$
DEBUG.ON
DEBUG.DUMP.BUNDLE lbn
LIST.CREATE s, sl
LIST.ADD sl, "Will return in 4 seconds"
LIST.ADD sl, source$
LIST.ADD sl, "blau und bläulich"
LIST.ADD sl, source$
BUNDLE.PUT lbnS, "_TextHtml", 1
!bundle.put lbnS, "_HtmlBitmapScale", 1% = font size
BUNDLE.PUT lbnS, "_HtmlTextSelectable", 1
sel = -4000
SELECT sel, sl , pressed, lbnS
! PRINT "Line ", sel,pressed, " selected."
DEBUG.ON
! DEBUG.DUMP.BUNDLE lbnS
DO
UNTIL 0
ONCONSOLETOUCH:
PRINT "console touched"
CONSOLETOUCH.RESUME