Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

groff

< >

groff is a text markup language created in 1990.

#473on PLDB 34Years Old
Download source code:
git clone https://git.savannah.gnu.org/git/groff.git/

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 · About · Resources · Acknowledgements · Part of the World Wide Scroll