Wx-Perl-PodBrowser

 view release on metacpan or  search on metacpan

devel/wx-pod.pl  view on Meta::CPAN

# This file is part of Wx-Perl-PodBrowser.
#
# Wx-Perl-PodBrowser is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3, or (at your option) any later
# version.
#
# Wx-Perl-PodBrowser 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.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License along
# with Wx-Perl-PodBrowser.  If not, see <http://www.gnu.org/licenses/>.

use 5.008;
use strict;
use Wx;
use Wx::RichText;

# uncomment this to run the ### lines
# use Smart::Comments;

my $str;

# {
#   my $app = Wx::SimpleApp->new;
#   my $frame = Wx::Frame->new(undef, Wx::wxID_ANY(), 'Pod');
#
#   require Wx::Perl::PodRichText;
#   my $textctrl = Wx::Perl::PodRichText->new ($frame);
#   # $textctrl->goto_pod (string => $str);
#   # $textctrl->goto_pod (module => 'FindBin');
#   $textctrl->goto_pod (module => 'perlfunc');
#   #  $textctrl->goto_module (module => 'Math::PlanePath::SquareSpiral');
#
#   $frame->SetSize (800, 800);
#
#   $frame->Show;
#   $app->MainLoop;
#   exit 0;
# }

$str = <<'HERE';
=head1 NAME

Foo - bar

Foo2 - bar2

=head1 DESCRIPTION

This is a paragraph.
Over two lines.
Blah.
Blah.  Blah

X<Idx B<entry>>L<libE<sol>Foo.pm> ...
L<Tk::HistEntry/BUGS/TODO> ...
L<Tk::HistEntry/BUGSE<sol>TODO> ...
L<Devel::REPL::Plugin::Nopaste/#nopaste> ...
L<Getopt::Long::Descriptive/%arg>

X<Breakability>Breakable words and then S<block of non breaking spaces extending to HERE>
blah blah.

=head4 Foo & Bar && Quux

=over

=item Item One

=cut

=pod

=item Item Two

=item Item Three

Paragraph.

=back

X<Index entry>  blah
Verbatim fjsdk fksdj fjks fjksd fjksd.  Fjs dfjks djfk sdjkf sdkf sdf

    +----------------------------------------+
    |                                        |
    +----------------------------------------+

    and more
    verb

    atim
    atim2

C<code+-------+> C<bold> plain I<italic> I<I<italicitalic>> plain F<file> plain.

link L<Math::Symbolic/SEE ALSO> F<filename>

link L<perlfunc/bind>

mucho duplicate heads: L<Padre::Current/NAME>,
L<Set::IntSpan/Examples>,
L<XML::RSS::Timing/AUTHOR>

plain L<http://localhost/index.html>
disp L<display part|http://localhost/index.html>

C<code> B<bold> I<italic> E<65> E<48> E<gt> E<fdjk> B<I<bold+italic>>

I<B<italic+bold> italicagain>

C<I<code+italic> codeagain>

C<code I<+italic B<+bold> italicagain> codeagain>

C<B<code+bold> codeagain>

B<C<bold+code> boldagain>



( run in 3.399 seconds using v1.01-cache-2.11-cpan-5e09290becf )