DocView IDE Integration
DocView IDE Integration
shtml
For this to work, we opted to use the External Tools feature of each IDE or
programming editor. Alternative methods exist (like in the case of Lazarus IDE), but
that requires recompiling the IDE - and that seems like just to much effort.
If you don't have DocView yet, you can compile DocView yourself from the fpGUI
source code, or opt to download pre-built binaries of DocView and various INF
documentation, by visiting this link.
Note:
When viewing the "FPC Language Reference" document (ref.inf), you have to tell
DocView which text encoding to use. If not, you will see lots of garbled text. Simply
change the Text Encoding combobox in the top right corner of Docview from eg
CP850 to UTF-8. This problem is caused due to a limitation in the help compiler I
used, and because I opted to write the ref.inf file using UTF-8 encoded text (to get
those nice looking syntax diagrams).
Lazarus
The first example uses an environment variable FPCHELP which lists the INF help
files you want DocView to use. How you setup environment variable depends on
your operating system. For more details see the docview.inf help file, included with
DocView.
Here we also setup the Ctrl+F1 keyboard shortcut to trigger loading DocView.
1 of 3 15/06/12 21:00
fpGUI Toolkit http://fpgui.sourceforge.net/docview_ide_integration.shtml
The second example makes use of the global BOOKSHELF or HELP environment
variable that DocView automatically searches. We then simply supply a
concatenated list of INF help files (no need to include their file extensions) DocView
should use.
Also note that in this example we decided to use the F1 keyboard shortcut, so
remember to disable the default F1 shortcut assigned in Lazarus's
Environment Options dialog.
MSEide
As in the first Lazarus example, here we are using a custom FPCHelp environment
variable that points to any FPC related INF help files. The value of the environment
variable can be a directory or a concatenated list of INF help files.
Delphi 7
In this example we simply decided to point DocView to the c:\apps\ directory and
use all INF files in finds in that directory.
2 of 3 15/06/12 21:00
fpGUI Toolkit http://fpgui.sourceforge.net/docview_ide_integration.shtml
3 of 3 15/06/12 21:00