codeview.1 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .TH CODEVIEW 1 "15 September 1986"
  2. .UC
  3. .SH NAME
  4. codeview - A C Code Viewer for X
  5. .SH SYNOPSIS
  6. .nf
  7. codeview [-f file] [host:display]
  8. .SH DESCRIPTION
  9. The
  10. .I codeview
  11. program is a demonstration of the capabilities of
  12. the
  13. .I scrollText
  14. scrollable text output library.
  15. It displays a C source file in a window using a proportionally spaced
  16. font with the keywords
  17. in boldface, comments in italics, and string constants in a related
  18. (but different) font. Each font may be displayed in a different color.
  19. If the
  20. .I file
  21. parameter is not provided, it reads the source from
  22. standard input. Double clicking in the main window
  23. ends the program.
  24. Scroll bar semantics are described in the description
  25. of the
  26. .I scrollText
  27. library.
  28. .SH "X DEFAULTS"
  29. .TP 8
  30. .B "Normal.Font"
  31. This is the primary font used to display the text. It defaults
  32. to
  33. .I timrom12.
  34. .TP 8
  35. .B "Comment.Font"
  36. This is the font used to display C style comments. It defaults to
  37. .I timrom12i.
  38. .TP 8
  39. .B "Keyword.Font"
  40. This is the font used to display C keywords. It defaults to
  41. .I timrom12b.
  42. .TP 8
  43. .B "String.Font"
  44. This is the font used to display string constants. It defaults
  45. to helv12.
  46. .TP 8
  47. .B Background
  48. This is the color used for the background of the window. It defaults
  49. to
  50. .I white.
  51. .TP 8
  52. .B Foreground
  53. This is the color used for the text and scroll bar. It defaults to
  54. .I black.
  55. .TP 8
  56. .B Border
  57. This is the color for the outer border of the window. It defaults to
  58. .I black.
  59. .TP 8
  60. .B Cursor
  61. This is the color for the text cursor. It defaults to
  62. .I black.
  63. .TP 8
  64. .B Normal.Color
  65. This is the color for the normal code text. All of the font color
  66. X defaults default to
  67. .I black.
  68. .TP 8
  69. .B Comment.Color
  70. Color of C style comments.
  71. .TP 8
  72. .B Keyword.Color
  73. Color of C keywords.
  74. .TP 8
  75. .B String.Color
  76. Color of C style string constants.
  77. .SH "SEE ALSO"
  78. scrollText(3)
  79. .SH AUTHOR
  80. David Harrison, University of California, Berkeley