Journal(2005) | Blog(2006) | RandomLink | WhoAmI | LiveBookmark | HomePage

<<Previous: 如何设置mp3文件的ID3v1Tag  >>Next: Module

PerlTidy

Category: InstallNote   Keywords: PerlTidy

Perltidy is a tool to indent and reformat perl scripts. It can also write scripts in html format.
Homepage:http://perltidy.sourceforge.net

Install

download PerlTidy-20031021,
perl Makefile.PL
(n)make test
(n)make install
如果(n)make不成功的话,可以如下: down来的包里有个目录为examples, 里面有些Script是值得一看的。

Usage

perltidy -html testfile.pl
此命令可生成已着色的HTML文件。
虽然颜色可能不是很让人满意,但可以改其中的CSS style或通过增加-css=mystyle.css选项来添加自己的css.
还有很多不错的选项如-nnn, 查阅perldoc Perl::Tidy获得更多帮助。

<<Previous: 如何设置mp3文件的ID3v1Tag  >>Next: Module

Options: +Del.icio.us

Related items Created on 2004-10-30 19:23:26, Last modified on 2004-11-20 13:42:00
Copyright 2004-2005 All Rights Reserved. Powered by Eplanet && Catalyst 5.62.