CODEVIEW(1)

NAME
codeview - A C Code Viewer for X

SYNOPSIS
codeview [-f file] [host:display]

DESCRIPTION
The codeview program is a demonstration of the capabilities of the scrollText scrollable text output library. It displays a C source file in a window using a proportionally spaced font with the keywords in boldface, comments in italics, and string constants in a related (but different) font. Each font may be displayed in a different color. If the file parameter is not provided, it reads the source from standard input. Double clicking in the main window ends the program. Scroll bar semantics are described in the description of the scrollText library.

X DEFAULTS

Normal.Font
    This is the primary font used to display the text. It defaults to timrom12.

Comment.Font
    This is the font used to display C style comments. It defaults to timrom12i.

Keyword.Font
    This is the font used to display C keywords. It defaults to timrom12b.

String.Font
    This is the font used to display string constants. It defaults to helv12.

Background
    This is the color used for the background of the window. It defaults to white.

Foreground
    This is the color used for the text and scroll bar. It defaults to black.

Border
    This is the color for the outer border of the window. It defaults to black.

Cursor
    This is the color for the text cursor. It defaults to black.

Normal.Color
    This is the color for the normal code text. All of the font color X defaults default to black.

Comment.Color
    Color of C style comments.

Keyword.Color
    Color of C keywords.

String.Color
    Color of C style string constants.

SEE ALSO
scrollText(3)

AUTHOR
David Harrison, University of California, Berkeley