Measures Concepts
GitHub icon

groff

groff - Text markup language

< >

groff is a text markup language created in 1990.

#863on PLDB 34Years Old

Groff (GNU troff) is a typesetting system that reads plain text mixed with formatting commands and produces formatted output. Output may be PostScript or PDF, html, or ASCII/UTF8 for display at the terminal. Formatting commands may be either low-level typesetting requests (โ€œprimitivesโ€) or macros from a supplied set. Users may also write their own macros. All three may be combined.


Example from the web:
.sp 1.5i My thoughts on the subject .sp

Language features

Feature Supported Token Example
MultiLine Comments โœ“ .ig
text text text...
.ig
This is part of a large block
of text that has been
temporarily(?) commented out.

We can restore it simply by removing
the .ig request and the ".." at the
end of the block.
..
Macros โœ“
.de P
.  br
.  sp .8v
..
Comments โœ“
Test
\" comment
Test
Test
\# comment
Test

View source

- Build the next great programming language ยท Search ยท Add Language ยท Features ยท Creators ยท Resources ยท About ยท Blog ยท Acknowledgements ยท Queries ยท Stats ยท Sponsor ยท Day 605 ยท feedback@pldb.io ยท Logout