开发者

man page editor for text screen [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

Do you know any editor for man(1) pages which work on text screen (terminal and console)? Searc开发者_如何学JAVAhing the interned did not gave any useful results as the words are very common.

Or should I learn the details of the format and write it by hand?


You can write it e.g. in markdown then convert it via e.g. pandoc to manpage format ((t|g)roff). Here is the fine manual: http://johnmacfarlane.net/pandoc/README.html .

HTH


Sure, go ahead and learn the format and write it by hand in a regular text editor.

On the other hand, the perl project uses a kind of universal markup called pod and then converts into manpages by running pod2man.


Man pages are written in plain text with a simple markup language called troff.

Actually there are several related markup systems all supported by a set of commands ending in roff: nroff, troff, and the all singing, all dancing super-set groff.

My Mac OS 10.5 systems has a nice summary of the history in man 7 roff.

As others have noted there are several tools around which can convert other markup formats to man pages.


The easiest way is to write content as "reStructuredText" (simpler than wiki syntax) and use docutils to generate manpage from it.

See this tutorial.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜