<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Thanks for the help. After also re-reading the documentation I now better understand how to use fpdoc. No more error messages anymore....</p>
<p> </p>
<p>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.</p>
<p> </p>
<p>At line 244 of this file: <a href="http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/nvidia-widgets/doc/nvwidgets.xml?revision=2215&view=markup">http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/nvidia-widgets/doc/nvwidgets.xml?revision=2215&view=markup</a></p>
<p>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.</p>
<p> </p>
<p>All relevant files and scripts are in SVN.</p>
<p> </p>
<p>Regards, Darius</p>
<p> </p>
<p> </p>
<p> </p>
<p>On 2 jan '12, michael.vancanneyt@wisa.be wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>
On Mon, 2 Jan 2012, <a href="mailto:dhkblaszyk@zeelandnet.nl">dhkblaszyk@zeelandnet.nl</a>wrote:</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">Here's the xml file. See attached. The problem code is around line 235.</blockquote>
<p><code>With Strings do For i:=Count-1 downto 0 do Delete(i); </code></p>
<pre>
Is wrong. the <code>tag must be at the same level as a</code></pre>
<p>tag, and cannot appear in a</p>
<p>tag. It should be</p>
<p>some text</p>
<p><code>With Strings do For i:=Count-1 downto 0 do Delete(i); </code></p>
<p>more text</p>
<p>Michael.</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">As for the img tag, thanks for that, i'll start using it. Regards, Darius On 2 jan '12, <a href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a>wrote:On Mon, 2 Jan 2012, <a href="mailto:dhkblaszyk@zeelandnet.nl">dhkblaszyk@zeelandnet.nl</a>[1]wrote:
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">Hi, I seem</blockquote>
</blockquote>
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?
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">Can you post the</blockquote>
actual XML you used in a separate mail ?
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">Because the above is</blockquote>
useless, I just see plain text.
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">I'm using: 2.7.1 [2011/12/27] for</blockquote>
</blockquote>
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?
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">Yes, an 'img' tag exists. This is</blockquote>
documented. It does NOT use the HTML
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">syntax, though. Michael.</blockquote>
_______________________________________________
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">fpc-pascal maillist -</blockquote>
<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>[2]<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a> [3] Links: ------ [1] mailto:<a href="mailto:dhkblaszyk@zeelandnet.nl">dhkblaszyk@zeelandnet.nl</a> [2] mailto:<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a> [3] <a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a></blockquote>
<p>_______________________________________________ fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a> <a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a></p>
</blockquote>
<p> </p>
<p> </p>
<div> </div>
</body></html>