Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PAR段落格式化程序-如何在Windows命令行中使用_Windows_Command Line_Formatting_Paragraph - Fatal编程技术网

PAR段落格式化程序-如何在Windows命令行中使用

PAR段落格式化程序-如何在Windows命令行中使用,windows,command-line,formatting,paragraph,Windows,Command Line,Formatting,Paragraph,有一个非常智能和有用的段落格式化程序par()。我在Vim中使用过它,效果非常好。我想在Windows命令行中使用它。(我正在使用Windows7)。但是我得到了parerror:bad参数error。如何在 Windows命令提示符< /强>中使用PAR。我已经把它放在我的路径上了,所以它确实找到了它,也为我提供了帮助内容。但当我向它传递一个长文本流时,我不明白它为什么会出错 (因为,开发者网站上有一个par.exe。我很确定它是用来在Windows上工作的。) 我尝试的是: 我在Vim中成功

有一个非常智能和有用的段落格式化程序
par
()。我在Vim中使用过它,效果非常好。我想在Windows命令行中使用它。(我正在使用Windows7)。但是我得到了
parerror:bad参数
error。如何在<强> Windows命令提示符< /强>中使用PAR。我已经把它放在我的路径上了,所以它确实找到了它,也为我提供了帮助内容。但当我向它传递一个长文本流时,我不明白它为什么会出错

(因为,开发者网站上有一个
par.exe
。我很确定它是用来在Windows上工作的。)

我尝试的是: 我在Vim中成功地使用了它,效果非常好。请帮忙


我认为输入必须通过管道传输到工具中,而不是作为参数传递。因此,请尝试以下示例:

echo This is a long long paragraph. Please shorten it to 30 characters per line. But it does not work.| par w30
echo This is a long long paragraph. Please shorten it to 30 characters per line and also justify the text. But it does not work.| par 30j
echo This is a long long paragraph. Please shorten it to 30 characters per line. But it does not work.| par w30
echo This is a long long paragraph. Please shorten it to 30 characters per line and also justify the text. But it does not work.| par 30j