Sign in Join
Wiki copytemporary

FPDoc Editor

Deutsch · English · Français · Polski · Português · Русский · 日本語

Introduction

FPDoc is the Free Pascal documentation tool which is specifically designed to create help files for individual units of Pascal source code. For more information about FPDoc see here: Free Pascal documentation tool manual.

Lazarus provides inline FPDoc help viewer in hints and two help file editors either of which you can use to create or update source code documentation in FPDoc format. If you want to see it correctly formatted, you have to install Package TurboPowerIProDsgn.lpk! The simpler editor, integrated into the Lazarus IDE is called FPDoc Editor, and is described on this page. There is also a more complete and complex editor called LazDE.

LazDE is a bigger brother to FPDoc Editor and is the Lazarus Documentation Editor. It is a standalone application (not an integral part of the IDE). It is located at ($LazDir)/doceditor/lazde.lpi. Once you have compiled the lazde project (using Lazarus) LazDE then runs outside the IDE. You can add it into menu Tools as external tool.

Using the FPDoc Editor

To use the FPDoc Editor you simply:

  1. Open the FPDoc Editor. You will find it under the View menu.
  2. In the Lazarus source code editor move the cursor to some code element. You will notice that the FPDoc Editor's Caption changes to show the selected source element together with the filename of the documentation file. Within FPDoc Editor you can select an appropriate page where you can edit a specific documentation tag. Of course it is also possible to use FPDoc Editor only to view documentation files, without changing them.
  3. Click on the Create Help button. If you have not yet set up search paths for FPDoc the IDE will ask you where the FPDoc files it generates should be stored. For each of your projects you would normally provide a 'docs' subdirectory.
  4. Write a short description.
  5. Click on the Save button to the left or go to the next item (the editor automatically saves a description when you move away from it).

Editing FPDoc entries for the LCL sources and Lazarus sources

There are in folder ($LazDir)\docs\xml, You can add this folder to FPDoc paths at Tools / Options / Environment / FPDoc Editor

Editing FPDoc entries for the FPC sources, RTL and FCL

The FPDoc entries for the FPC sources can be downloaded from svn:

bash
cd /home/username/yourchoice/
svn co http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs

Add the path /home/username/yourchoice/fpcdocs to Tools / Options / Environment / FPDoc Editor

A good item to test FPDoc on is TComponent.Name.

Future plans

The todo list currently contains the following items, in no particular order:

Already done


From the Free Pascal wiki, page "FPDoc Editor", as it stood on 2023-01-30 after a change by Kai Burghardt, 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.

Revision 2, last changed by WikiArchive .

Edited on wiki.freepascal.org by 17 people, 2005–2023

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
Dblaszijk
DblaszijkWhere to find LazDoc??
DblaszijkWhere to find LazDoc??
DblaszijkUsage
DblaszijkIntroduction
DblaszijkIntroduction
DblaszijkIntroduction
DblaszijkUsage
DblaszijkUsage
Dblaszijkopen the LazDoc editor
DblaszijkUsage
DblaszijkUsage
DblaszijkUsage (minor)
DblaszijkUsage
DblaszijkFuture plans
Dblaszijk
DblaszijkIntroduction
DblaszijkIntroduction
DblaszijkWhere to find LazDoc??
Dblaszijk
BracaraIntroduction (minor)
BracaraWhere to find LazDoc?? (minor)
BracaraUsage (minor)
BracaraFuture plans (minor)
VincentFuture plans
DblaszijkIntroduction
DblaszijkUsage
DblaszijkFuture plans
DblaszijkUsage
Swen
Dblaszijk
DblaszijkFuture plans
DblaszijkFuture plans
Dblaszijk
DblaszijkFuture plans
Dblaszijk
DblaszijkFuture plans (minor)
MatthijsUsage
DblaszijkWhere to find LazDoc??
Mattias2Usage
Mattias2DONE
Mattias2Introduction
Mattias2DONE
Mattias2
Mattias2Introduction
Mattias2Where to find LazDoc??
Mattias2Usage
Mattias2Future plans
TomboUsage
TomboLazDE - Lazarus Documentation Editor (minor)
KirkpatcIntroduction (minor)
KirkpatcFuture plans (minor)
KirkpatcDone (minor)
KirkpatcUsage (minor)
KirkpatcFPDoc editor (minor)
KirkpatcIntroduction (minor)
KirkpatcLazDE - Lazarus Documentation Editor (minor)
Kirkpatc[http://wiki.lazarus.freepascal.org/Lazarus_Documentation_Editor LazDE - Lazarus Documentation Editor] (minor)
Kirkpatc[http://wiki.lazarus.freepascal.org/Lazarus_Documentation_Editor LazDE - Lazarus Documentation Editor] (minor)
GgeldenhuysDone: - fixed spelling mistakes (minor)
Mattias2LazDoc moved to FPDoc Editor: LazDoc was confused that it is something else than FPDoc (minor)
Mattias2Introduction
Mattias2
Penilopa PFuture plans
Penilopa PDone
Mattias2Introduction
Mattias2Future plans
Mattias2Done
Mattias2Future plans
Mattias2
Mattias2Usage
Mattias2Edit fpdoc entries of FPC sources, RTL and FCL
Swen (minor)
BigChimpCategory:Help and Docs (minor)
HowardPC (minor)
BigChimpadd image
BigChimpremoved redundant info, layout to wiki level headers, category
Nashevtoo old FPDoc manual wasn't normal, yes?
Nashev"You can add them into menu Tools as external tool." and "==Editing FPDoc entries for the LCL sources and Lazarus sources=="
NashevIntroduction: inline FPDoc help viewer in hints and
BigChimp
Mattias2Future plans
FTurtle
FliegermichlIntroduction (minor)
Roland57Fixed two typos (minor)
Kai BurghardtUsing the FPDoc Editor: format list as list (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.