Mini HTML reference

来源:百度文库 编辑:神马文学网 时间:2024/04/18 18:34:03
The mini HTML implementation to display text with HTML tags in various TMS components is a subset of the HTML standard and supports following tags :
B : Bold tag
: start bold text
: end bold text
Example : This is a test
U : Underline tag
: start underlined text
: end underlined text
Example : This is a test
I : Italic tag
: start italic text
: end italic text
Example : This is a test
S : Strikeout tag
: start strike-through text
: end strike-through text
Example : This is a test
A : anchor tag
: text after tag is an anchor. The ‘value‘ after the href identifier is the anchor. This can be an URL (with ftp,http,mailto,file identifier) or any text. If the value is an URL, the shellexecute function is called, otherwise, the anchor value can be found in the OnAnchorClick event
: end of anchor
Examples :
This is a test
This is a test
This is a test
FONT : font specifier tag
: specifies font of text after tag.
with
- face : name of the font
- size : HTML style size if smaller than 5, otherwise pointsize of the font
- color : font color with either hexidecimal color specification or Borland style color name, ie clRed,clYellow,clWhite ... etc
- bgcolor : background color with either hexidecimal color specification or Borland style color name
: ends font setting
Examples :
This is a test
This is a test
P : paragraph

: starts a new paragraph, with left, right or center alignment. The paragraph background color is set by the optional bgcolor parameter. If bgcolor and bgcolorto are specified, a gradient is displayed ranging from begin to end color.

: end of paragraph
Example :

This is a test


Example :

This is a test


Example :

This has a red background


Example :

This has a yellow background


Example :

This has a gradient background

*
HR : horizontal line

: inserts linebreak with horizontal line
BR : linebreak

: inserts a linebreak
BODY : body color / background specifier
: sets the background color of the HTML text or the background bitmap file
Example :
: sets background color to yellow
: sets tiled background to file test.bmp
: sets a vertical gradient from yellow to white
IND : indent tag
This is not part of the standard HTML tags but can be used to easily create multicolumn text
: indents with "indent" pixels
Example :
This will be indented 75 pixels.
IMG : image tag
: inserts an image at the location
specifier can be :
idx : name is the index of the image in the associated imagelist
ssys : name is the index of the small image in the system imagelist or a filename for which the corresponding system imagelist is searched
lsys : same as ssys, but for large system imagelist image
file : name is the full filename specifier
res : name of a resource bitmap (not visible at design time)
no specifier : name of image in an PictureContainer
Optionally, an alignment tag can be included. If no alignment is included, the text alignment with respect to the image is bottom. Other possibilities are : align="top" and align="middle"
The width & height to render the image can be specified as well. If the image is embedded in anchor tags, a different image can be displayed when the mouse is in the image area through the Alt attribute.
Examples :
This is an image
This is an image and another one
This is an image
This is an image
This is an image
SUB : subscript tag
: start subscript text
: end subscript text
Example : This is 9/16 looks like 9/16
SUP : superscript tag
: start superscript text
: end superscript text
BLINK : blink tag (supported in TAdvStringGrid and descendants and THTMListbox)
: start blinking text
: stop blinking text
Example : This is blinking redtext.
UL : list tag
    : start unordered list tag
: end unordered list
Example :

  • List item 1
  • List item 2

    • Sub list item A
    • Sub list item B

  • List item 3

LI : list item
  • : new list item
    SHAD : text with shadow
    : start text with shadow
    : end text with shadow
    Z : hidden text
    : start hidden text
    : end hidden text
    HI : hilight
    : start text hilighting
    : stop text hilighting
    E : Error marking
    : start error marker
    : stop error marker
    Special characters
    Following standard HTML special characters are supported :
    < : less than : <
    > : greater than : >
    & : &
    " : "
      : non breaking space
    ™ : trademark symbol
    € : euro symbol
    § : section symbol
    © : copyright symbol
    ¶ : paragraph symbol
    DB-aware field tag
    For DB-aware controls (TDBHTMLabel ,TDBAdvStringGrid ,TDBSectionListBox) datafields can be inserted using <#FIELDNAME>
    * means supported starting from v1.8 of the rendering engine only