GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • PasDoc
  • @include
  • @longCode
  • Download
  • Where To Place Comments
  • Writing Documentation
  • Advanced Features
  • Demo
  • Projects Using PasDoc
  • PasDoc vs FpDoc
  • PasDoc GUI
  • Other Tools
  • @abstract
  • @author

This view

  • Original page
  • New address

GeezerVison is showing pasdoc.github.io — @includeCode tag

@includeCode tag

The tag @includeCode includes an external file inside the documentation, treating it as Pascal source code. The included code will be nicely displayed (with colors, bold keywords and so on). This is useful to show longer example programs in the documentation. The fact that you keep the example code in a separate file allows you to check the correctness of your example code by compiling it.

For example, consider you want to document a function LoadImage in your unit. You can write:

{ Loads the image from file, creating new TImage instance.
  Remember to free it later. Example usage:
  @includeCode(load_image_example.pas) }
function LoadImage: TImage;

The load_image_example.pas is a normal Pascal program showing the usage of the LoadImage function.

The filename (load_image_example.pas in the example above) is relative to the Pascal source file defining this identifier (LoadImage in the example above). You can use something like @includeCode(../docs/load_image_example.pas) to refer to a different directory.

You can include multiple source code files (place each filename on a separate line), they will simply be glued together. Like this:

@includeCode( demo1.dpr demo2.dpr )

Related tags:

  • If you want to include an external file that is not a Pascal code (but may contain description using more PasDoc @tags) then use @include tag instead.

  • If you want to show a multi-line Pascal code inside the documentation, but don’t want to place it a separate file, then use @longCode tag instead.

PasDoc

  • Download

Features:

  • Where To Place Comments

  • Writing Documentation

  • Advanced Features

  • Demo

  • Projects Using PasDoc

  • PasDoc vs FpDoc

  • PasDoc GUI

  • Other Tools

Supported Tags:

  • @abstract

  • @author

  • @bold, @italic

  • @br

  • @code

  • @created, @lastmod

  • @cvs

  • @deprecated

  • @exclude

  • @html

  • @image

  • @includeCode

  • @include

  • @name, @className, @inheritedClass, @inherited

  • @shortTitle, @title, @section, @anchor

  • @latex

  • @link

  • @orderedList, @unorderedList, @definitionList, @item, @itemLabel, @itemSpacing, @itemSetNumber

  • @longCode

  • @member, @value

  • @noAutoLink, @noAutoLinkHere

  • @note, @warning

  • @param, @returns, @raises

  • @preformatted

  • @seeAlso

  • @tableOfContents

  • @table, @row, @rowHead, @cell

  • @nil, @true, @false

  • @(, @)

  • @url

Command Line:

  • Examples

  • --format:
    • --format=html
    • --format=htmlhelp
    • --format=latex
    • --format=latex2rtf
    • --format=simplexml
    • --format=php
  • --auto-abstract

  • --auto-back-comments

  • --auto-link, --auto-link-exclude

  • --cache

  • --marker, --staronly, --marker-optional

  • --define, --conditionals

  • --css, --css-based-on-bootstrap

  • --title

  • --exclude-generator

  • --external-class-hierarchy

  • --graphviz-uses, --graphviz-classes, --link-gv-uses, --link-gv-classes

  • --header, --footer

  • --html-head, --html-body-begin, --html-body-end

  • --ignore-leading

  • --ignore-marker

  • --inherited-members

  • --introduction, --conclusion, -A, --additional

  • --implicit-visibility

  • --lowercase-keywords

  • --visible-members

  • --include-creation-time

  • --include

  • --link-look

  • --markdown

  • --name

  • --no-auto-abstract

  • --no-macro

  • --language

  • --output

  • --description

  • --show-source-position, --source-url-pattern, --source-root

  • --sort

  • --spell-check, --spell-check-ignore-words

  • --use-tipue-search

  • --write-uses-list

  • @<config-file.txt>

  • --implementation-comments

Development:

  • Compiling

  • Development Snapshots

  • Release Making

Developers pages:

  • Do Di

  • Garfield Fr

  • Johannes Berg

  • Michalis Kamburelis

  • Thomas Mueller

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.