[fpc-pascal] Problems with fpdoc

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Mon Jan 2 13:23:54 CET 2012



On Mon, 2 Jan 2012, dhkblaszyk at zeelandnet.nl wrote:

>
>
> Here's the xml file. See attached. The problem code is around line
> 235.
>

<p><code>With Strings do
   For i:=Count-1 downto 0 do
     Delete(i); 
</code></p>

Is wrong. the <code> tag must be at the same level as a <p> tag, and cannot
appear in a <p> tag.

It should be

<p> some text</p>
<code>
With Strings do
   For i:=Count-1 downto 0 do
     Delete(i); 
</code>
<p> more text </p>

Michael.



> As for the img tag, thanks for that, i'll start using it.
>
>
> Regards, Darius
>
> On 2 jan '12, michael.vancanneyt at wisa.be wrote:
>
>>
> On Mon, 2 Jan 2012, dhkblaszyk at zeelandnet.nl [1]wrote:
>>
>>> Hi, I seem
> to have some problems using fpdoc in combination with html tags. When I
> enter some text (taken from the documentation) I get compilation errors:
> Text used: With Strings do For i:=Count-1 downto 0 do Delete(i);
> Compilation errors: [] Invalid description (illegal XML element:
> "#text") [] Invalid paragraph content [] Invalid description (illegal
> XML element: "#text") If I drop the tags, I still get compilation errors
> (just not the 2nd one) but to my surprise the pascal code is shown in
> the .chm file. However any text after this code section is ignored. So
> my question is, how am I supposed to use html tags inside the
> documentation? Is there a special switch needed?
>>
>> Can you post the
> actual XML you used in a separate mail ?
>>
>> Because the above is
> useless, I just see plain text.
>>
>>> I'm using: 2.7.1 [2011/12/27] for
> i386 On a side note, I would like to include images in my documentation.
> How to do this? Is simply putting a tag enough and will these links be
> embedded in the chm file?
>>
>> Yes, an 'img' tag exists. This is
> documented. It does NOT use the HTML
>> syntax, though.
>>
>> Michael.
>>
> _______________________________________________
>> fpc-pascal maillist -
> fpc-pascal at lists.freepascal.org [2]
>>
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal [3]
>
>
>
>
> Links:
> ------
> [1] mailto:dhkblaszyk at zeelandnet.nl
> [2]
> mailto:fpc-pascal at lists.freepascal.org
> [3]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list