Rich Text Syntax
A rich text is a string using a subset of the HTML format.
The following HMTL markups are allowed:
<p> <br> <a> <font>
<b> <i> <s> <sub> <sup> <small> <tt> <u>
<h1> <h2> <h3> <h4> <h5> <h6>
The
<font>
markup understands the following attributes:
face
,
color
, and
size
.
The
size
attribute can be:
-
A value between
1
and 7
for an absolute font size.
-
-1
for a smaller font size.
-
+1
for a larger font size.
Any HTML entity can be used.
Line breaks using CR or LF are not converted so
<br> (linebreak) or
<p> ... </p> (paragraph) must be used.
No CSS style can be used.
Rich text is mainly used by
TextLabel,
GridView cells, the
Paint.DrawRichText and other rich text methods and properties.
Warning:
RichText display is handled by the toolkit and support for other HTML tags varies.
For example with QT you can also create a
<table> and use lists
<ul>,
<ol>, etc. but with GTK you can not.
If you want to use tables or lists in your RichText then you will have to make a QT only program.
If your program uses gb.gui so can be either QT or GTK then you should make sure it works on both toolkits if you are using other tags.