2010-10-07

install ack on windows

ack is a great searching tool, especially for large source code tree, on windows, it is very simple to install and config

1)Installing perl http://strawberryperl.com/

2)(in a windows command shell)

Install App::Ack by typing

C:\>cpan App::Ack

3)Then enable color highlights:

cpan Win32::Console::ANSI

4)Let ack support more filetypes aspx for example

Add .ackrc file under C:\Documents and Settings\[yourname],with content
---type-set=aspx=.aspx

basic usage:
ack PopTree
ack "Latest News"
ack #body --css //only search css files
ack #body --nocss // not search css files

More on http://search.cpan.org/dist/ack/ack-base

No comments: