Linux command
glow 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Render markdown file
glow [README.md]
Render with pager
glow -p [file.md]
Render from stdin
cat [file.md] | glow
Set width
glow -w [80] [file.md]
Browse local files
glow
说明
glow renders markdown in the terminal with syntax highlighting and formatting. It displays markdown documents beautifully without leaving the command line. The tool supports various styles and can browse markdown files interactively. It handles GitHub Flavored Markdown including tables and code blocks.
参数
- -p, --pager
- Use pager for output.
- -w _WIDTH_, --width _WIDTH_
- Word wrap width.
- -s _STYLE_, --style _STYLE_
- Style name (dark, light, etc.).
- --help
- Display help information.
FAQ
What is the glow command used for?
glow renders markdown in the terminal with syntax highlighting and formatting. It displays markdown documents beautifully without leaving the command line. The tool supports various styles and can browse markdown files interactively. It handles GitHub Flavored Markdown including tables and code blocks.
How do I run a basic glow example?
Run `glow [README.md]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --pager do in glow?
Use pager for output.