view release on metacpan or search on metacpan
bin/denomfind view on Meta::CPAN
& main () ;
END{
exit unless $count ; # 1åãåæ¯ãæ¢ç´¢ãã¦ããªããªããããçµäºã
exit if 0 eq ($o{2}//'') ;
my $sum = 0 ; $sum = "$sum" + "$_" for @nums ;
my $bf = color 'bold faint white' ;
print STDERR $bf . scalar @nums . " ratios are given (sum=" . color('reset bold yellow').($sum) . $bf .")." if @nums > 1 ;
my $ud = [ 'down to','from','up to' ] -> [ ( $o{g} <=> 0 ) + 1 ] ; # 'from' ã¯ããªãç¡çç¢çã§ãããæ£å¸¸ãªä½¿ç¨ã®æ³å®å¤ã
$denom += $o{g} > 0 ? -1 : $o{g} < 0 ? 1 : 0 ; # 1åæ»ãã
say STDERR BOLD FAINT " $count denominators have found $ud $denom. ($Script)" ;
}
exit 0 ;
view all matches for this distribution
view release on metacpan or search on metacpan
bin/devmode view on Meta::CPAN
termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
# 256 colour stuff
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
#defbce "on"
view all matches for this distribution
view release on metacpan or search on metacpan
share/wordlist_de.tsv view on Meta::CPAN
35435 knurrt
35436 knut
35441 knute
35442 ko
35443 kobalt
35444 kobold
35445 koch
35446 kochen
35451 kocher
35452 kocht
35453 kochte
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/eachperl.pm view on Meta::CPAN
? String::Tagged->new_tagged( "-OK-", fg => $COL{grey} )
: String::Tagged->new_tagged( "FAIL", fg => $COL{red} ) ),
String::Tagged->new
->append( "Running " )
->append_tagged( $perl, bold => 1 ),
( $idx < @perls
? String::Tagged->new_tagged( sprintf( "(%d more)", @perls - $idx ), fg => $COL{grey} )
: () ),
);
view all matches for this distribution
view release on metacpan or search on metacpan
@{ $result->{hits}{hits} };
for my $o ( @output ) {
for my $line ( @{ $o->{lines} } ) {
$line =~ s/\n/ /g;
$line =~ s/__STARTCOLOR__/color 'bold red'/eg;
$line =~ s/__ENDCOLOR__/color 'reset'/eg;
printf "%s: %s\n", colored ($o->{id}, 'cyan'), $line;
}
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
$cmd = "seq 20 | $0 -p0" when 'p0' ; # -T p0 ã§ "expskip -p0" ãã·ãã¥ã¬ã¼ã
$cmd = "$0 <(seq 4) <(seq 10)" when 'm2' ; # -T m2 ã§ãè¤æ°ã®ãã¡ã¤ã«ãä¸ããã
$cmd = "seq 1e6 | $0" when '1m' ; # -T 1m ã§ "expskip" ã« 100ä¸ã¾ã§ã®æ°ãä¸ããã
$cmd = "seq 1e5 | $0 -e0" when 'e0' ; # -T e0
$cmd = "seq 1e5 | $0 -f5" when 'f5' ; # -T f5
$cmd = "seq 100 | tr 0-9 A-H | $0 -: 'yellow green bold italic'" ; # -T ac ã§ãæ°å以å¤ã¨è¡çªå·ã®è²ã¥ããåæã«ãã¹ãã
$cmd = "seq 1e7 | $0" when 'E7' ; # -T E7 ã§ 1000ä¸ã¾ã§ã®æ°ãä¸ããããªããseq 1e7ã1e7+1ã®æ°ãä¸ããã
} for $arg ;
$cmd = join " " , $cmd , @ARGV [ $A0 .. $#ARGV ] ; # <-- @ARGV ã«'ã"ãããã¨æã£ãããã«åä½ããªãã§ãããã
say STDERR YELLOW BOLD "> $cmd" ;
system $cmd ;
-p 9 : ããªã®è¯ãæ°ã ä¸1æ¡ä»¥å¤ãå
¨ã¦0ã®æ°ã¨è¦ãªã(ã1,2,3,4,5,6,7,8,9ãã®1å,10å,100å..)ã
-p 0 : ä¸è¨ã®åä½ãããªããæ¬¡ã® -e ã§æå®ãããé¨åã®ã¿ãåºåã
-e num : å
¥åå
¨ä½ã®æåã¨æå¾ã num è¡åºåããããã«ãããæªæå®ã§ããã° num = 2ã0ãæå®å¯è½ã (edge)
-f num : éå§è¡ã®æå® (from)
-: [0|colorname] : è¡çªå·ã®ã¿è²ãçè²ããæå®ãblue ã "bold yellow"ãªã©ãæå®å¯è½ã0 ãæå®ããã¨è¡çªå·ãåºåããªãã
-B num ããã®è¯ãæ°ã®ä½è¡åãã表示ããããé£ç¶è¡¨ç¤ºã«ç¨ããã(grepã³ãã³ãã® -B ã¨åæ§ãªåä½)
-A num ããã®è¯ãæ°ã®ä½è¡å¾ã¾ã§è¡¨ç¤ºããããé£ç¶è¡¨ç¤ºã«ç¨ããã(grepã³ãã³ãã® -A ã¨åæ§ãªåä½)
-2 0 : ãä½è¡èªãã§ä½è¡åºåãããããæ¨æºã¨ã©ã¼åºåã«åºãã¦ããã®ãæå¶ããã
-t : åºåæã®æå»æ
å ±ã è¡é ã«ä»å ã
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/gh/Command/Search.pm view on Meta::CPAN
print_list @ary;
# my $result = App::gh->api->search($keyword);
# if( $self->{long} ) {
# for my $entry ( @{ $result->{repositories} } ) {
# print color 'white bold';
# say "* $entry->{owner}/$entry->{name}";
# print color 'reset';
# say " W/F: $entry->{watchers}/$entry->{forks}";
# say " Url: " . $entry->{url} if $entry->{url};
# say " Homepage: " . $entry->{homepage} if $entry->{homepage};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/gimpgitbuild/Command/build.pm view on Meta::CPAN
_ascertain_gjs_presence();
$worker->_run_the_mode_on_all_repositories();
use Term::ANSIColor qw/ colored /;
print colored( [ $ENV{HARNESS_SUMMARY_COLOR_SUCCESS} || 'bold green' ],
"\n== Success ==\n\n" );
return;
}
1;
view all matches for this distribution
view release on metacpan or search on metacpan
data/index.html view on Meta::CPAN
border-color: black;
border-style: solid;
text-align: center;
margin-left: 15%;
margin-right: 15%;
font-weight: bold;
}
p.alert {
background-color: pink;
padding: 5pt;
border-width: 1pt;
data/index.html view on Meta::CPAN
background-color: red;
padding: 2pt;
color: white;
padding-bottom: 0pt;
font-size: 0.7em;
font-weight: bold;
}
font.atom {
background-color: orange;
padding: 2pt;
color: white;
padding-bottom: 0pt;
font-size: 0.7em;
font-weight: bold;
}
.flow {
margin-bottom: 30pt;
margin-left: 10%;
line-height: 1.3em;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/highlight.pm view on Meta::CPAN
try {
for my $module (sort keys %COLOR_MODULES) {
load($module, @{ $COLOR_MODULES{$module} });
}
@COLORS = map { [ color("bold $_"), color('reset') ] } (
qw(red green yellow blue magenta cyan)
);
}
catch {
$COLOR_SUPPORT = 0;
view all matches for this distribution
view release on metacpan or search on metacpan
share/default.css view on Meta::CPAN
#sidebar h2 {
letter-spacing: 0.15em;
text-transform: uppercase;
font-size: .9em;
color: #222;
font-weight: bold;
padding: 3px 0px 2px 4px;
margin: 15px 0px 5px 10px;
}
@media (prefers-color-scheme: dark) {
#sidebar h2 { color: #999 }
share/default.css view on Meta::CPAN
padding-left: 1em;
}
#sidebar dt {
margin-top: 1em;
font-weight: bold;
padding-left: 1.0em;
}
#sidebar dd {
margin-left: 2.5em;
share/default.css view on Meta::CPAN
margin-top: 5px;
}
#sidebar .button {
margin: 0 2px;
color: white;
font-weight: bold;
font-size: 80%;
padding: 2px 3px;
border-radius: 3px;
text-transform: uppercase;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/karr.pm view on Meta::CPAN
sub _print_help {
my ($self_or_class, $code) = @_;
$code //= 0;
my $out = '';
$out .= colored("karr", 'bold') . " - Kanban Assignment & Responsibility Registry\n\n";
$out .= colored("USAGE:", 'bold') . " karr [--dir PATH] <command> [options]\n\n";
$out .= colored("COMMANDS:", 'bold') . "\n";
my $max = 0;
for (@COMMANDS) { $max = length($_->[0]) if length($_->[0]) > $max }
for my $cmd (@COMMANDS) {
$out .= sprintf " %-*s %s\n", $max, colored($cmd->[0], 'cyan'), $cmd->[1];
}
$out .= "\n" . colored("OPTIONS:", 'bold') . "\n";
$out .= " --dir PATH Starting path for Git repository discovery\n";
$out .= " --json JSON output (most commands)\n";
$out .= " --compact Compact output (list, board)\n";
$out .= "\n" . colored("EXAMPLES:", 'bold') . "\n";
$out .= " karr init --name \"My Project\"\n";
$out .= " karr create --title \"Fix login bug\" --priority high\n";
$out .= " karr list --status todo,in-progress\n";
$out .= " karr move 1 in-progress --claim agent-fox\n";
$out .= " karr pick --claim agent-fox --move in-progress\n";
$out .= " karr backup > karr-backup.yml\n";
$out .= " karr restore --yes < karr-backup.yml\n";
$out .= " karr set-refs superpowers/spec/1234.md draft ready\n";
$out .= " karr board\n";
$out .= "\nRun " . colored("karr <command> --help", 'bold') . " for command-specific options.\n";
if ($code > 0) { warn $out } else { print $out }
exit $code if $code >= 0;
}
view all matches for this distribution
view release on metacpan or search on metacpan
script/lens view on Meta::CPAN
my $seq = shift;
$seq =~ s/\e/\\e/g;
$seq;
}
sub transform_bold {
if ($_[0] == 1) {
return @_;
} else {
return (1, @_);
}
script/lens view on Meta::CPAN
} else {
return @_;
}
}
sub transform_nobold {
if ($_[0] == 1) {
return ();
} else {
return @_;
}
script/lens view on Meta::CPAN
Usage:
% command-that-produces-colored-output | lens <transform-name> [transform-option]...
List of available transforms:
bold - Set bold to all colors
mono - replace all colors with gray
nobold - remove bold
noop - do no transform
pastel - pastelize colors
ct - Use a ColorTransform::* module
Some examples:
script/lens view on Meta::CPAN
Available transforms:
=over
=item * bold
Give bold to all colors.
=item * inverse
Inverse all colors.
=item * mono
Replace all colors with gray.
=item * nobold
Remove bold.
=item * noop
Do no transform.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/livehttperf.pm view on Meta::CPAN
my $test_started;
my $elapsed_time;
my %ua_opts;
# xlsx output
my ($xls, $xls_summary, $xls_urls, $bold);
my $xls_s_row = 0;
my $xls_u_row = 0;
my %OPTS = (
input => undef,
lib/App/livehttperf.pm view on Meta::CPAN
$xls->set_optimization();
$xls->set_properties(
title => 'Performance tests',
comments => "Generated by App::livehttperf/$App::livehttperf::VERSION",
);
$bold = $xls->add_format();
$bold->set_bold();
$xls_summary = $xls->add_worksheet('Summary');
$xls_urls = $xls->add_worksheet('URLs');
}
lib/App/livehttperf.pm view on Meta::CPAN
if ( $xls ) {
my @columns = ('Test run at', 'URLs tested', 'Total delays (per run)', 'Requests sent', 'Test elapsed time');
$xls_summary->write_row($xls_s_row++, 0, xlsx_row(@columns), $bold);
$xls_summary->write_row($xls_s_row++, 0, xlsx_row(
$test_run_at,
$total_urls,
$total_delays,
lib/App/livehttperf.pm view on Meta::CPAN
}
{
my @columns = ('Concurrency', 'Started', 'Total', 'Min', 'Max', 'Avg', 'StdDev', 'Median');
$xls_summary->write_row($xls_s_row++, 0, xlsx_row(@columns), $bold)
if $xls;
my $t = Text::TabularDisplay->new(@columns);
for my $c ( @concurrency ) {
lib/App/livehttperf.pm view on Meta::CPAN
}
{
my @columns = ('Concurrency', 'Successful', 'Failed', '1xx', '2xx', '3xx', '4xx', '5xx');
$xls_summary->write_row($xls_s_row++, 0, xlsx_row(@columns), $bold) if $xls;
my $t = Text::TabularDisplay->new(@columns);
for my $c ( @concurrency ) {
lib/App/livehttperf.pm view on Meta::CPAN
}
{
my @columns = ('Concurrency', 'Data sent', 'Data received');
$xls_summary->write_row($xls_s_row++, 0, xlsx_row(@columns), $bold) if $xls;
my $t = Text::TabularDisplay->new(@columns);
for my $c ( @concurrency ) {
lib/App/livehttperf.pm view on Meta::CPAN
}
{
my @columns = ('Concurrency', 'URL', 'Min', 'Max', 'Avg', 'StdDev', 'Median', 'Errors');
$xls_urls->write_row($xls_u_row++, 0, xlsx_row(@columns), $bold) if $xls;
my $t = Text::TabularDisplay->new(@columns);
for (my $rec_no = 1; $rec_no <= @recs; $rec_no++) {
next unless ref $recs[$rec_no-1];
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Pod/Markdown.pm view on Meta::CPAN
sub interior_sequence {
my ($seq_command, $seq_argument, $pod_seq) = @_[1..3];
my %interiors = (
'I' => sub { return '_' . $_[1] . '_' }, # italic
'B' => sub { return '__' . $_[1] . '__' }, # bold
'C' => sub { return '`' . $_[1] . '`' }, # monospace
'F' => sub { return '`' . $_[1] . '`' }, # system path
'S' => sub { return '`' . $_[1] . '`' }, # code
'E' => sub {
my $charname = $_[1];
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/logcat_format.pm view on Meta::CPAN
print($usage->text), exit if $opt->help;
my %priority =
(
V => 'bold black on_bright_white', # Verbose
D => 'bold black on_bright_blue', # Debug
I => 'bold black on_bright_green', # Info
W => 'bold black on_bright_yellow', # Warn
E => 'bold black on_bright_red', # Error
F => 'bold white on_black', # Fatal
S => 'not printed', # Silent
);
my %known_tags =
(
lib/App/logcat_format.pm view on Meta::CPAN
\):\s
(?<log>.*)
$!xms )
{
# 'BRIEF' format
print colored( sprintf( " %5s ", $+{pid} ), 'bold black on_grey9' );
print colored( sprintf( " %s ", $+{priority} ), "bold $priority{ $+{priority} }" );
print colored( sprintf( " %25s ", tag_format( $+{tag} ) ), tag_colour( $+{tag} ) );
print colored( sprintf( " %s", log_format( $+{log}, 39 ) ), 'white' );
print "\n";
}
elsif ( $line =~ m!^
lib/App/logcat_format.pm view on Meta::CPAN
(?<tag>.+?)
\)\s{1,}?
$!xms )
{
# 'PROCESS' format
print colored( sprintf( " %5s ", $+{pid} ), 'bold black on_grey9' );
print colored( sprintf( " %s ", $+{priority} ), "bold $priority{ $+{priority} }" );
print colored( sprintf( " %25s ", tag_format( $+{tag} ) ), tag_colour( $+{tag} ) );
print colored( sprintf( " %s", log_format( $+{log}, 39 ) ), 'white' );
print "\n";
}
elsif ( $line =~ m!^
lib/App/logcat_format.pm view on Meta::CPAN
:\s{1}
(?<log>.*)
$!xms )
{
# 'TAG' format
print colored( sprintf( " %s ", $+{priority} ), "bold $priority{ $+{priority} }" );
print colored( sprintf( " %25s ", tag_format( $+{tag} ) ), tag_colour( $+{tag} ) );
print colored( sprintf( " %s", log_format( $+{log}, 32 ) ), 'white' );
print "\n";
}
elsif ( $line =~ m!^
lib/App/logcat_format.pm view on Meta::CPAN
\):\s
(?<log>.*)
$!xms )
{
# 'TIME' format
print colored( sprintf( " %5s ", $+{time} ), 'bold black on_grey12' );
print colored( sprintf( " %5s ", $+{date} ), 'bold black on_grey7' );
print colored( sprintf( " %5s ", $+{pid} ), 'bold black on_grey9' );
print colored( sprintf( " %s ", $+{priority} ), "bold $priority{ $+{priority} }" );
print colored( sprintf( " %25s ", tag_format( $+{tag} ) ), tag_colour( $+{tag} ) );
print colored( sprintf( " %s", log_format( $+{log}, 60 ) ), 'white' );
print "\n";
}
elsif ( $line =~ m/^
lib/App/logcat_format.pm view on Meta::CPAN
:\s{1,}?
(?<log>.*)
$/xms )
{
# 'THREADTIME' format
print colored( sprintf( " %5s ", $+{time} ), 'bold black on_grey12' );
print colored( sprintf( " %5s ", $+{date} ), 'bold black on_grey7' );
print colored( sprintf( " %5s ", $+{pid} ), 'bold black on_grey9' );
print colored( sprintf( " %5s ", $+{tid} ), 'bold black on_grey10' );
print colored( sprintf( " %s ", $+{priority} ), "bold $priority{ $+{priority} }" );
print colored( sprintf( " %25s ", tag_format( $+{tag} ) ), tag_colour( $+{tag} ) );
print colored( sprintf( " %s", log_format( $+{log}, 67 ) ), 'white' );
print "\n";
}
else
view all matches for this distribution
view release on metacpan or search on metacpan
if($ls_colors{$pattern} eq 'IGNORE') {
return undef;
}
# # add attributes
# # 'README$' => 'bold italic 220 underline',
for my $attr(split(/\s+/, $ls_colors{$pattern})) {
$file = fg($attr, $file);
# if several attributes are specified, the END sequence is added
# more than once. let's get rid of it so we can remove match and
# remove the trailing /
$perm =~ s/-/$d[1]/g;
$perm =~ s/(r)/fg($c[2], $1)/eg;
$perm =~ s/(w)/fg($c[7], $1)/eg;
$perm =~ s/(x)/fg($c[1], $1)/eg;
$perm =~ s/(d)/fg($c[16], fg('bold', $1))/eg;
$perm =~ s/(l)/fg($c[8], fg('bold', $1))/eg;
$perm =~ s/(s)/fg($c[11], $1)/eg;
$perm =~ s/(S)/fg($c[8], $1)/eg;
$perm =~ s/(t)/fg($c[8], $1)/eg;
$perm =~ s/(T)/fg($c[8], fg('bold', $1))/eg;
return $perm;
}
sub owner {
$stringlen = $sizelen;
}
if($size =~ m/^(\S+)(K)/) {
$size = sprintf("%27s",
fg($c[7], sprintf("%*g", $stringlen, $1))
. fg($c[2], fg('bold', $2))
);
}
elsif($size =~ m/^(\S+)(M)/) {
$size = sprintf("%29s",
fg($c[7], sprintf("%*g", $stringlen, $1))
. fg($c[9], fg('bold', $2))
);
}
elsif($size =~ m/^(\S+)(G)/) {
$size = sprintf("%27s",
fg($c[7], sprintf("%*g", $stringlen, $1))
. fg($c[3], fg('bold', $2))
);
}
elsif($size =~ m/^(\d+)/) {
$size = sprintf("%27s",
fg($c[7], sprintf("%*d", $stringlen, $1))
. fg($c[14], fg('bold', 'B'))
);
}
return $size;
}
view all matches for this distribution
view release on metacpan or search on metacpan
bin/makedist view on Meta::CPAN
use Pod::Usage;
use File::Basename qw(basename);
use File::Copy::Recursive qw(rcopy);
use File::Path qw(rmtree);
use File::LsColor qw(ls_color);
use Term::ExtendedColor qw(fg bg bold);
use Getopt::Long;
use Module::Extract::VERSION;
use File::Find::Rule;
my $opt_verbose = 0;
bin/makedist view on Meta::CPAN
my $dist = get_package_name($file);
printf("- Getting distribution name from %s...\n", ls_color(basename($file))) if $opt_verbose;
my $version = scalar Module::Extract::VERSION->parse_version_safely($file);
printf(" Looks like %s %s\n", bold(fg(214, $dist)), bold($version)) if $opt_verbose;
my $dist_name = sprintf("%s-%s.tar.gz", $dist, $version);
return $dist_name;
}
#>
bin/makedist view on Meta::CPAN
if(-e $_) {
print ' ' . ok($_) if $opt_verbose;
push(@files_in_dist, $_);
}
else {
printf("%s %s from MANIFEST. Aborting.\n", bold($_), bg('red1', 'MISSING'));
exit;
}
}
if($opt_verbose) {
print " All files in MANIFEST present!\n";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Greple/md.pm view on Meta::CPAN
=head1 DESCRIPTION
B<App::Greple::md> is a L<greple|App::Greple> module for viewing
Markdown files in the terminal with syntax highlighting.
It colorizes headings, bold, italic, strikethrough, inline code,
fenced code blocks, HTML comments, blockquotes, horizontal rules,
links, and images. Tables are formatted with aligned columns and
optional Unicode box-drawing borders. Long lines in list items can
be folded with proper indentation. Links become clickable via OSC 8
terminal hyperlinks in supported terminals.
lib/App/Greple/md.pm view on Meta::CPAN
greple -Mmd -m dark -- file.md
=head2 B<-B> I<COLOR>, B<--base-color>=I<COLOR>
Override the base color used for headings, bold, links, and other
elements. Accepts a named color (e.g., C<Crimson>, C<DarkCyan>) or a
L<Term::ANSIColor::Concise> color spec.
greple -Mmd -B Crimson -- file.md
lib/App/Greple/md.pm view on Meta::CPAN
the color labels listed in L</COLOR LABELS>. I<SPEC> follows
L<Term::ANSIColor::Concise> format and supports C<sub{...}>
function specs via L<Getopt::EX::Colormap>.
greple -Mmd --cm h1=RD -- file.md
greple -Mmd --cm bold='${base}D' -- file.md
=head2 B<--heading-markup>[=I<STEPS>], B<--hm>[=I<STEPS>]
Control inline markup processing inside headings. By default,
headings are rendered with uniform heading color without processing
bold, italic, strikethrough, or inline code inside them. Links
are always processed as OSC 8 hyperlinks regardless of this option.
Without an argument, all inline formatting becomes visible within
headings using cumulative coloring. With an argument, only the
specified steps are processed inside headings. Steps are separated
by colons.
Available steps: C<inline_code>, C<horizontal_rules>, C<bold>,
C<italic>, C<strike>.
greple -Mmd --hm -- file.md # all markup
greple -Mmd --hm=bold -- file.md # bold only
greple -Mmd --hm=bold:italic -- file.md # bold and italic
=head2 B<--hashed> I<LEVEL>=I<VALUE>
Append closing hashes to headings. For example, C<### Title>
becomes C<### Title ###>. Set per heading level:
lib/App/Greple/md.pm view on Meta::CPAN
=head2 B<--show> I<LABEL>[=I<VALUE>]
Control which elements are highlighted. This is useful for
focusing on specific elements or disabling unwanted highlighting.
greple -Mmd --show bold=0 -- file.md # disable bold
greple -Mmd --show all= --show h1 -- file.md # only h1
C<--show LABEL=0> or C<--show LABEL=> disables the label.
C<--show LABEL> or C<--show LABEL=1> enables it.
C<all> is a special key that sets all labels at once.
Controllable labels: C<bold>, C<italic>, C<strike>, C<code_inline>,
C<header> (h1-h6), C<horizontal_rule>, C<blockquote>.
The following elements are always processed and cannot be disabled:
C<comment>, C<code_block> (C<code_mark>, C<code_info>),
C<link>, C<image>, C<image_link>.
lib/App/Greple/md.pm view on Meta::CPAN
h6 ${base} ${base}
=head2 Inline Formatting
LABEL LIGHT DARK
bold D
italic I
strike X
emphasis_mark L18 L10
bold_mark - -
italic_mark - -
strike_mark - -
Emphasis markers (C<**>, C<*>, C<__>, C<_>, C<~~>) are colored with
C<emphasis_mark>, separately from the content text. C<bold_mark>,
C<italic_mark>, C<strike_mark> are undefined by default and fall back
to C<emphasis_mark>. Define them via C<--cm> to override per type:
greple -Mmd --cm emphasis_mark=R -- file.md # all markers red
greple -Mmd --cm bold_mark=G -- file.md # bold markers green
=head2 Code
LABEL LIGHT DARK
code_mark L20 L10
lib/App/Greple/md.pm view on Meta::CPAN
my @color_labels = qw(
code_mark code_tick code_info code_block code_inline
comment link image image_link
h1 h2 h3 h4 h5 h6
bold italic strike emphasis_mark
bold_mark italic_mark strike_mark link_mark
blockquote horizontal_rule
);
my $config = Getopt::EX::Config->new(
mode => '', # light / dark
lib/App/Greple/md.pm view on Meta::CPAN
h2 => 'L25D/${base}+y20;E',
h3 => 'L25DN/${base}+y30',
h4 => '${base}UD',
h5 => '${base}U',
h6 => '${base}',
bold => 'D',
italic => 'I',
strike => 'X',
emphasis_mark => 'L18',
blockquote => '${base}D',
horizontal_rule => 'L15',
lib/App/Greple/md.pm view on Meta::CPAN
horizontal_rules => Step(horizontal_rule => sub {
s/^([ ]{0,3}(?:[-*_][ ]*){3,})$/protect(md_color('horizontal_rule', $1))/mge;
}),
bold_italic => Step(bold => sub {
s{$SKIP_CODE|(?<!\\)(?<m>\*\*\*)(?<t>.*?)(?<!\\)\g{m}}{
protect(mark_color('bold', $+{m}) . md_color('bold', md_color('italic', $+{t})) . mark_color('bold', $+{m}))
}gep;
s{$SKIP_CODE|(?<![\\\w])(?<m>___)(?<t>.*?)(?<!\\)\g{m}(?!\w)}{
protect(mark_color('bold', $+{m}) . md_color('bold', md_color('italic', $+{t})) . mark_color('bold', $+{m}))
}gep;
}),
bold => Step(bold => sub {
s{$SKIP_CODE|(?<!\\)(?<m>\*\*)(?<t>.*?)(?<!\\)\g{m}}{
mark_color('bold', $+{m}) . md_color('bold', $+{t}) . mark_color('bold', $+{m})
}gep;
s{$SKIP_CODE|(?<![\\\w])(?<m>__)(?<t>.*?)(?<!\\)\g{m}(?!\w)}{
mark_color('bold', $+{m}) . md_color('bold', $+{t}) . mark_color('bold', $+{m})
}gep;
}),
italic => Step(italic => sub {
s{$SKIP_CODE|(?<![\\\w])(?<m>_)(?<t>(?:(?!_).)+)(?<!\\)\g{m}(?!\w)}{
lib/App/Greple/md.pm view on Meta::CPAN
# Always before headings (protection + links)
my @protect_steps = qw(code_blocks comments image_links images links);
# Inline steps controlled by heading_markup
my @inline_steps = qw(inline_code horizontal_rules bold_italic bold italic strike);
# Always last
my @final_steps = qw(blockquotes);
sub build_pipeline {
lib/App/Greple/md.pm view on Meta::CPAN
# "all" or "1": all inline steps before headings
my %before;
if ($hm eq '1' || $hm =~ /^all$/i) {
%before = map { $_ => 1 } @inline_steps;
} else {
# "bold:italic" â collect word tokens, filter to valid inline steps
my %valid = map { $_ => 1 } @inline_steps;
%before = map { $_ => 1 } grep { $valid{$_} } ($hm =~ /(\w+)/g);
}
my @before_h = grep { $before{$_} } @inline_steps;
view all matches for this distribution
view release on metacpan or search on metacpan
script/mojopaste view on Meta::CPAN
/*! Color themes for Google Code Prettify | MIT License | github.com/jmblog/color-themes-for-google-code-prettify */
.prettyprint{font-family:Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Consolas,monospace;border:0!important}.pln{color:#c5c8c6}ol.linenums{margin-top:0;margin-bottom:0;color:#969896}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li...
.morris-hover{position:absolute;z-index:1000}
.morris-hover.morris-default-style{border-radius:10px;padding:6px;color:#666;background:rgba(0,0,0,0.8);font-size:12px;text-align:center}
.morris-hover.morris-default-style .morris-hover-row-label{font-weight:bold;margin:0.25em 0}
.morris-hover.morris-default-style .morris-hover-point{white-space:nowrap;margin:0.1em 0}
% end
<script type="text/javascript">
window.onkeydown = function(e) {
view all matches for this distribution
view release on metacpan or search on metacpan
assets/sass/screen.scss view on Meta::CPAN
}
}
h1, h2, h3, h4, h5, h6 {
color: #333;
font-weight:bold;
margin:1em 0 1em 2px;
line-height:1.4;
}
h1 {
assets/sass/screen.scss view on Meta::CPAN
text-decoration:underline;
}
strong, b {
font-family: "游ã´ã·ãã¯ä½", "Yu Gothic", YuGothic, "ãã©ã®ãè§ã´ Pro", "Hiragino Kaku Gothic Pro", "ã¡ã¤ãªãª", Meiryo, "ï¼ï¼³ ï¼°ã´ã·ãã¯", "MS PGothic", sans-serif;
font-weight:bold;
}
pre{
background-color:#ddd;
padding:10px;
view all matches for this distribution
view release on metacpan or search on metacpan
$c //= $n2c{$_} ;#say RED $c ;
my $R = ceil max 0 , min 5 , $c - ($M/2-.5) ;
my $G = max 0, ceil min 2 , ($M/2-.5) - abs ( ($M/2-.5) - $c ) ;
my $B = ceil max 0 , min 5, ($M/2-.5) - $c ;
($R,$B)=($B,$R) if $o{'~'} ;
my $color = "bold on_rgb$R$G$B" ;
$usedC { $color }++;
#print "$R$G$B";
#print "$c-$R$G$B" .color( 'reset' ) ;
#print "$_:$c-$R$G$B" .color( 'reset' ) ;
#print color( $color ) . "$_:$c-$R$G$B" .color( 'reset' ) ;
view all matches for this distribution
view release on metacpan or search on metacpan
ppp-Documentation.log view on Meta::CPAN
(Font) OML/cmm/m/it --> OML/lmm/m/it on input line 23.
LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
(Font) OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 24.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 25.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/cmm/b/it --> OML/lmm/b/it on input line 27.
LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
(Font) OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 28.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 29.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 31.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal'
(Font) OT1/cmss/m/n --> OT1/lmss/m/n on input line 32.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
(Font) OT1/cmr/m/it --> OT1/lmr/m/it on input line 33.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 34.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 35.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/cmss/bx/n --> OT1/lmss/bx/n on input line 36.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/cmr/bx/it --> OT1/lmr/bx/it on input line 37.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 38.
)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks14
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2013/01/14 v2.14 AMS math features
\@mathmargin=\skip43
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/perl/distrolint.pm view on Meta::CPAN
green => 2,
yellow => 3,
);
my %FORMAT = (
bullet => { bold => 1, fgindex => $COL{yellow} },
pass => { bold => 1, fgindex => $COL{green} },
fail => { bold => 1, fgindex => $COL{red} },
note => { fgindex => $COL{yellow} },
diag => {},
file => { italic => 1 },
literal => { altfont => 1 },
view all matches for this distribution
view release on metacpan or search on metacpan
script/perlall view on Meta::CPAN
# XXX 5.20-24 do not work with App::Rad
#BEGIN {$DB::single=1} # debug into attribute handling
# TODO:
# tee make test with -v (unbuffered IPC::Run or via fork-like callback?)
# maketest or -q: mark FAIL tests *RED*, p line bold black (see t/testc.sh)
# implement smoke, bench
# maketest --all (locally and testvm --all)
# more testvm_ctl: xen-shell, vmrun, VBoXManage
# uninstall: packfile of installed files instead of rather unsafe globbing
# cmd --help
script/perlall view on Meta::CPAN
sub _print {
my $level = shift;
if ($^O eq 'MSWin32') {
print join(" ",@_),"\n";
} elsif ($level == 0) { # bold green, highest level, headers
print "\033[1;32m",join(" ",@_),"\033[0;0m\n";
} elsif ($level == 1) { # bold red/black, major commands
print "\033[1;39m",join(" ",@_),"\033[0;0m\n";
}
}
sub _backup($) {
my $f = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/perlhl.pm view on Meta::CPAN
when ('ansi') {
my $color_table = { # Readability is not so good -- play with it more
'Bareword' => 'bright_green',
'Builtin_Function' => 'blue',
'Builtin_Operator' => 'bright_red',
'Character' => 'bold bright_red',
'Comment_Normal' => 'bright_blue',
'Comment_POD' => 'bright_black',
'Directive' => 'bold bright_black',
'Keyword' => 'white',
'Label' => 'bright_magenta',
'Line' => 'white',
'Number' => 'bright_red',
'Operator' => 'white',
'Package' => 'bold bright_red',
'Quote' => 'blue',
'String' => 'blue',
'Subroutine' => 'yellow',
'Symbol' => 'white',
'Variable_Array' => 'cyan',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/perlrdf/FileSpec/OutputBindings.pm view on Meta::CPAN
my $s = Spreadsheet::Wright->new(
filename => $filename,
format => $self->format,
);
$s->addrow(map {+{
font_weight => 'bold',
font_style => 'italic',
content => $_,
}} $iter->binding_names);
while (my $row = $iter->next)
{
view all matches for this distribution
view release on metacpan or search on metacpan
if( ($module =~ m;.+lib/(.+)\.pm$;)) {
$mod_name = $1;
$mod_name =~ s;/;::;g;
$mod_name =~ s;\.pm;;;
print "\n";
print fg('bold', fg('yellow18', $mod_name)), "\n";
}
}
my ($basename) = $func{$file} =~ m;.+/(.+)$;;
my ($two_lvl) = $func{$file} =~ m;.+/(.+/.+)$;;
printf("%37.90s -> %s\n",
fg('gray10', $basename), $file);
}
}
printf("\n%s functions defined in %s\n",
fg('bold', scalar(keys(%func))), $dir)
unless(scalar(keys(%func)) < 1);
}
view all matches for this distribution
view release on metacpan or search on metacpan
script/ijirait view on Meta::CPAN
$text =~ s/^=> \S+ (type|Back)\n//gm; # drop type command from the list, and the help page
my @lines = split(/\n/, $text);
my $section = "";
for (@lines) {
if ($section =~ /^(Hidden )?(Exits|Things)$/
and s/^=> \S+\s+(.*?) \((\S+)\)$/"* $1 (" . colored($2, 'bold') . ")"/e) {
# exits and things come in lists and their shortcuts are bold
} elsif (s/^=> \/play\/ijirait\S*\s+(.*)/"* " . colored($1, 'bold')/e) {
# internal links are commands, come in lists, and they are all bold
} elsif (s/^=> \/\/(\S+)\s+(.*)/"* " . colored($2, 'italic') . " â gemini:\/\/$1"/e) {
# external links without protocol come in lists, italic, and the URL
# is printed separately for clicking in a terminal emulator, with gemini:
# scheme added
} elsif (s/^=> (\S+)\s+(.*)/"* " . colored($2, 'italic') . " â $1"/e) {
# external links are treated as above but gemini: is not prefixed to the
# URL
} elsif (s/^# (.*)/colored($1, 'bold underline')/e) {
$_ = $wrapper->wrap($_);
} elsif (s/^## (.*)/colored($1, 'underline')/e) {
$section = $1;
$_ = $wrapper->wrap($_);
} elsif (s/^### (.*)/colored($1, 'italic')/e) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Pimpd/Collection/Album.pm view on Meta::CPAN
my($path) = $file =~ m|(.+)/.+$|m;
my @songs = $mpd->collection->all_items_simple($path);
printf("Remove %s ? [y/N] ", fg('bold', $path));
chomp(my $answer = <STDIN>);
if(lc($answer) ne 'y') {
return 1;
}
lib/App/Pimpd/Collection/Album.pm view on Meta::CPAN
'ssh', "-p $config{ssh_port}",
"$config{ssh_user}\@$config{ssh_host}",
"rm -rv '$path'",
) == 0 and do {
open(STDOUT, '>&', OLD_STDOUT) or die("Cant reopen STDOUT: $!");
printf("Removed %s successfully\n", fg('bold', $path));
return;
};
open(STDOUT, '>&', OLD_STDOUT) or die("Cant reopen STDOUT: $!");
}
else {
if(remove_path($path)) {
printf("removed '%s'\n", fg('bold', $path));
return;
}
print STDERR "remove_path($path): $!\n";
return;
}
view all matches for this distribution