Difference between revisions of "htmlwriter"

From Lazarus wiki
Jump to navigationJump to search
(New page: Implements a verified HTML producer. THTMLwriter: This is a class which allows to write certified correct HTML. It works using the DOM for HTML. It also has forms support. Writing ...)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
Implements a verified HTML producer.
 
Implements a verified HTML producer.
  
THTMLwriter:
+
* THTMLwriter:  This is a class which allows to write certified correct HTML.  It works using the DOM for HTML.  It also has forms support.
   This is a class which allows to write certified correct HTML.
 
   It works using the DOM for HTML.
 
   It also has forms support.
 
  
 
Writing HTML is done as follows:
 
Writing HTML is done as follows:
Line 11: Line 8:
 
   Write('This text is bold');
 
   Write('This text is bold');
 
   EndBold;
 
   EndBold;
or
+
 
 +
or
 +
 
 
   Bold('This text is bold');
 
   Bold('This text is bold');
 +
 +
But the following is also possible
  
But the following is also possible
 
 
   Bold(Center('Bold centered text'));
 
   Bold(Center('Bold centered text'));
  
Open tags will be closed automatically.
+
Open tags will be closed automatically. [[wtagsintf.inc]] contains all possible tags.
  
wtagsintf.inc contains all possible tags.
+
Back to [[fcl-xml]] overview.
  
Back to [[fcl-xml]] overview.
+
[[Category:HTML]]

Latest revision as of 08:32, 17 April 2013

Implements a verified HTML producer.

  • THTMLwriter: This is a class which allows to write certified correct HTML. It works using the DOM for HTML. It also has forms support.

Writing HTML is done as follows:

 StartBold;
 Write('This text is bold');
 EndBold;
or
 Bold('This text is bold');

But the following is also possible

 Bold(Center('Bold centered text'));

Open tags will be closed automatically. wtagsintf.inc contains all possible tags.

Back to fcl-xml overview.