Linux command
grohtml 命令
文件
Uses pipes, overwrite, or deletion. Check paths and options first.
命令示例
Convert groff to HTML
groff -Thtml [file.roff] > output.html
Direct grohtml usage
grohtml [file] > output.html
Generate with images
groff -Thtml -P-i [file.roff] > output.html
说明
grohtml is a groff output driver that produces HTML. It converts groff documents to web-viewable format with optional image generation for elements that do not translate directly to HTML. The driver handles text formatting and creates appropriate HTML tags. Complex formatting elements can be rendered as inline images for accurate representation.
参数
- -b
- Create background color.
- -i
- Generate inline images.
- -s _SIZE_
- Font base size.
- -F _DIR_
- Font directory.
- --help
- Display help information.
FAQ
What is the grohtml command used for?
grohtml is a groff output driver that produces HTML. It converts groff documents to web-viewable format with optional image generation for elements that do not translate directly to HTML. The driver handles text formatting and creates appropriate HTML tags. Complex formatting elements can be rendered as inline images for accurate representation.
How do I run a basic grohtml example?
Run `groff -Thtml [file.roff] > output.html` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b do in grohtml?
Create background color.