htmlwriter: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | Implements a verified HTML producer. | |
| 2 | 2 | ||
| 3 | 3 | - THTMLwriter: This is a class which allows to write certified correct HTML. It works using the DOM for HTML. It also has forms support. | |
| 4 | 4 | ||
| 5 | 5 | Writing HTML is done as follows: | |
| 6 | 6 | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 7 | + | ```text | |
| 8 | + | StartBold; | |
| 9 | + | Write('This text is bold'); | |
| 10 | + | EndBold; | |
| 11 | + | ``` | |
| 10 | 12 | ||
| 11 | - | ||
| 13 | + | ```text | |
| 14 | + | or | |
| 15 | + | ``` | |
| 12 | 16 | ||
| 13 | - | ||
| 17 | + | ```text | |
| 18 | + | Bold('This text is bold'); | |
| 19 | + | ``` | |
| 14 | 20 | ||
| 15 | 21 | But the following is also possible | |
| 16 | 22 | ||
| 17 | - | ||
| 23 | + | ```text | |
| 24 | + | Bold(Center('Bold centered text')); | |
| 25 | + | ``` | |
| 18 | 26 | ||
| 19 | 27 | Open tags will be closed automatically. [[wtagsintf.inc]] contains all possible tags. | |
| 20 | 28 | ||
| 21 | 29 | Back to [[fcl-xml]] overview. | |
| 22 | 30 | ||
| 23 | 31 | --- | |
| 24 | 32 | *From the Free Pascal wiki, page "htmlwriter", as it stood on 2013-04-17 after a change by Jwdietrich, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 25 | 33 | Category: HTML |
