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

  • Download
  • Where To Place Comments
  • Writing Documentation
  • Advanced Features
  • Demo
  • Projects Using PasDoc
  • PasDoc vs FpDoc
  • PasDoc GUI
  • Other Tools
  • @abstract
  • @author
  • @bold, @italic
  • @br
  • @code

This view

  • Original page
  • New address

GeezerVison is showing pasdoc.github.io — Show (linked) source file names and line numbers

Show (linked) source file names and line numbers

--show-source-position

Use command-line option --show-source-position to show in the generated documentation the filename and line number where each identifier is declared. This is great to let developers reading the docs actually connect them with source files.

--source-url-pattern

You can take it a step further by also using --source-url-pattern=URL-PATTERN. This will turn the source file / line numbers into a clickable link, leading to the given URL-PATTERN. The argument URL-PATTERN may have placeholders

  • {FILE} (replaced by the filename, relative to --source-root if given, see below),

  • {LINE} line number, 1-based.

For example

--source-url-pattern='https://github.com/owner/repo/blob/main/{FILE}#L{LINE}'

--source-root

To make the behavior of --show-source-position and --source-url-pattern correct, we need to know the root of your project, relative to which we should show filenames (and put them in {FILE} replacement). You can provide it using --source-root.

What is the "correct source root" should be synchronized with the --source-url-pattern you use. If the --source-url-pattern points to the top-level of a GIT repository browser, then your --source-root should point to the root of your GIT repository.

When --source-root-path was not used, PasDoc doesn’t know the "root" of your project, and all filenames (displayed and replaced) just show the filename without any directory.

Example usage

pasdoc /home/michalis/my_amazing_project/code/*.pas \
  --show-source-position \
  '--source-url-pattern=https://github.com/michaliskambi/my_amazing_project/blob/main/{FILE}#L{LINE}' \
  --source-root=/home/michalis/my_amazing_project

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 01402520 — 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.