File::CodeSearch::Highlighter - Highlights matched parts of a line.
This documentation refers to File::CodeSearch::Highlighter version 0.7.4.
use File::CodeSearch::Highlighter; # Brief but working code example(s) here showing the most common usage(s) # This section will be as far as many users bother reading, so make it as # educational and exemplary as possible.
highlight_re
The regular expression used to find what to highlight
before_match (Str, BOLD RED)
A string put before a match
after_match (Str RESET)
A string put after a match
before_nomatch (Str, CYAN)
A string for before text that doesn't match
after_nomatch (Str, RESET)
A string for after text that doesn't match
before_snip (Str, RESET . RED . ON_BLACK)
A string for before snipped out text.
after_snip (Str, RESET)
A string for after snipped out text.
limit (Int, columns in terminal)
The size of the limit for line length of text that is extremely long.
snip (Bool, 1)
Cut out non-matching text so that one line of text matches on line of output
highlight ( $search, )
Param: $search - type (detail) - description
$search
Return: File::CodeSearch::Highlighter -
Description:
make_highlight_re ( $search, )
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2009 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install File::CodeSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::CodeSearch
CPAN shell
perl -MCPAN -e shell install File::CodeSearch
For more information on module installation, please visit the detailed CPAN module installation guide.