PTAGS(1) — USER COMMANDS
NAME
ptags − create a POSTSCRIPT language or NeWS tags file for use with vi
SYNOPSIS
ptags [ −f tagsfile ] [ files ]
DESCRIPTION
ptags makes a tags file for ex(1) from a POSTSCRIPT language or NeWS source file. See ctags(1) for more information. ptags tags lines with the string cdef and lines with the hint ptag=<tagname> embedded anywhere in a comment.
The default tagfile is tags.ps. Because this is not in the default tag search path, the command
set tags=tags tags.ps
is required in vi(1), or in the user’s .exrc file to initialize that path. Depending on the system, a backslash may be required to escape the space between tags and tags.ps.
OPTIONS
None.
EXAMPLES
Using ptags on a file containing the function definition
cdef function_name(int arg)
produces the tag function_name.
Inserting the comment:
/ name { % object => - ptag=<name>
in the source file yields the tag name for that line. Note that it is the string within the <...> that is used as the tag.
FILES
tags.ps output tags file
SEE ALSO
ctags(1), ex(1), psindent(1), vgrind(1), vi(1)
TRADEMARK
POSTSCRIPT is a registered trademark of Adobe Systems Inc.
BUGS
Should be able to identify the tags without the hint in the comment.
AUTHOR
Josh Siegel (siegel@hc.dspo.gov)
Sun Release 4.1 — Last change: 3 Mar 1989