[fpc-pascal] Problems with fpdoc

dhkblaszyk at zeelandnet.nl dhkblaszyk at zeelandnet.nl
Mon Jan 2 14:24:12 CET 2012


  

Thanks for the help. After also re-reading the documentation I now
better understand how to use fpdoc. No more error messages anymore....


However, including an image in the documentation does not work
unfortunately. After generating the chm file the image is not shown and
an alternative text is displayed. 

At line 244 of this file:
http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/nvidia-widgets/doc/nvwidgets.xml?revision=2215&view=markup
[8] 

you can see the syntax. The image (nvwidgets.png) is located in
the same directory as the .xml file is and from where the chm file is
generated from. 

All relevant files and scripts are in SVN. 

Regards,
Darius 

On 2 jan '12, michael.vancanneyt at wisa.be wrote: 

> On Mon, 2
Jan 2012, dhkblaszyk at zeelandnet.nl [5]wrote:
> 
>> Here's the xml file.
See attached. The problem code is around line 235.
> 
> With Strings do
For i:=Count-1 downto 0 do Delete(i); 
> 
> Is wrong. the tag must be at
the same level as a
> 
> tag, and cannot appear in a 
> 
> tag. It
should be 
> 
> some text 
> 
> With Strings do For i:=Count-1 downto 0
do Delete(i); 
> 
> more text 
> 
> 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 [1]wrote:On Mon, 2 Jan 2012,
dhkblaszyk at zeelandnet.nl [2][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 image
>> 
>>> chm file? Yes, an 'img' tag exists. This
is
>> umented. It does NOT use the HTML syntax, though. Michael.
_______________________________________________
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>> 
>>> 
> 
>
_______________________________________________ fpc-pascal maillist -
fpc-pascal at lists.freepascal.org [6]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal [7]

 


Links:
------
[1] mailto:michael.vancanneyt at wisa.be
[2]
mailto:dhkblaszyk at zeelandnet.nl
[3]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[4]
mailto:dhkblaszyk at zeelandnet.nl
[5] mailto:dhkblaszyk at zeelandnet.nl
[6]
mailto:fpc-pascal at lists.freepascal.org
[7]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[8]
http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/nvidia-widgets/doc/nvwidgets.xml?revision=2215|+|amp|+|view=markup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120102/7d809d11/attachment.html>


More information about the fpc-pascal mailing list