Sign in Join
Wiki copytemporary

FPDoc Editor: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Contents
22
33 * 1 Introduction
44 * 2 Using the FPDoc Editor
55 * 3 Editing FPDoc entries for the LCL sources and Lazarus sources
66 * 4 Editing FPDoc entries for the FPC sources, RTL and FCL
77 * 5 Future plans
88 * 5.1 Already done
99
1010## Introduction
1111
1212FPDoc 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](<http://www.freepascal.org/docs-html/fpdoc/fpdoc.html>).
1313
1414[![FPDocEditorDescription.png](/wiki-images/6/6c/FPDocEditorDescription.png)](</File:FPDocEditorDescription.png>)
1515
1616Lazarus 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 [[Lazarus Documentation Editor|LazDE]].
1717
1818**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.
1919
2020## Using the FPDoc Editor
2121
2222To use the FPDoc Editor you simply:
2323
2424 1. Open the FPDoc Editor. You will find it under the View menu.
2525 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.
2626 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.
2727 4. Write a short description.
2828 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).
2929
3030## Editing FPDoc entries for the LCL sources and Lazarus sources
3131
3232There are in folder ($LazDir)\docs\xml, You can add this folder to FPDoc paths at Tools / Options / Environment / FPDoc Editor
3333
3434## Editing FPDoc entries for the FPC sources, RTL and FCL
3535
3636The FPDoc entries for the FPC sources can be downloaded from svn:
3737```
3838cd /home/username/yourchoice/
3939 svn co http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs
4040```
4141
4242Add the path _/home/username/yourchoice/fpcdocs_ to Tools / Options / Environment / FPDoc Editor
4343
4444A good item to test FPDoc on is _TComponent.Name_.
4545
4646## Future plans
4747
4848The todo list currently contains the following items, in no particular order:
4949
5050 * Write a help editor for topics.
5151 * Create nicer HTML output for the hint windows.
5252 * Support Operators
5353 * Jump to next/previous undocumented identifier
5454
5555### Already done
5656
5757 * Extend the link editor to show packages and identifiers
5858 * Add documentation tags "example" to FPDoc Editor
5959 * Add documentation tags "topic" to FPDoc Editor
6060 * Make FPDoc Editor create new elements in documentation
6161 * Make FPDoc Editor create new documentation files
6262 * Adding a small toolbar makes it possible to use the available markup tags
6363 * Make FPDoc Editor work on keydown in source code editor
6464 * Add FPDoc Editor to IDE settings (showing and position in IDE)
6565 * Make it work for fpc sources (rtl files already exist)
6666 * Add settings to environment menu
6767 * Make it work on project files also
6868 * Propose to expand documentation tags with: "todo" and "notes" (no need for that, as there are alternatives)
6969 * Reduce overhead even further
7070 * All source elements are interpreted by FPDoc Editor using codetools
7171 * Find inherited entries. For example TControl.Align of TButton.Align
7272 * Optimization: inherited Entries are parsed on idle
7373 * Optimization: xml files are cached, and only parsed once or if they changed on disk
7474 * Add a HTML viewer. This is available by installing the turbopoweriprodsgn package
7575 * Checks for invalid xml tags and auto repairs them
7676
7777---
78-*From the Free Pascal wiki, page "IDE Window: FPDoc Editor", as the Internet Archive kept it on 2024-07-25. 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).*
78+*From the Free Pascal wiki, page "IDE Window: FPDoc Editor", as the Internet Archive kept it on 2024-07-25, last changed on 2023-01-31. 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).*

Back to history