A cryptographically signed copy of the latest release of the program may also be obtained at the site:
Also the example shown below ought to be something like this instead (but see later at Second Update for an even better plan):
There's nothing automagickal or sophisticated about it, it's a very simple tool. It is for when you don't care to fire up a text editor just for a quick-ish reply node, but you want to efficiently create a blockquote as part of your contribution. It's for a very lazy approach, made especially for those of us who's typing skills are not world-class ;-).
This was also an excuse for me to beat my head against the strangeness that is Perl's
format and write functionality until I understood it well enough to
write something useful employing them.
Users of a *NIX-like ('sh'-like) shell will get the best use out of this.
The next section is superceded by later refinements and corrections. Left for historical thread context.
I like the style of workflow in which I make an X-Windows selection of the text I wish to quote
from the Perlmonks node (in my WWW browser). Then I switch to a text term (Xterm) and type:
$ cat <<'DONE' | pmnodecomp-blockquote
which waits for me to paste the X cutbuffer / clipboard selection at the
prompt. Shell veterans may know other ways (TMTOWTDI) of getting the desired text poured into
STDIN and then issuing the EOF (generally <CTRL-D>
on *NIX, IAMNM). Anyway that's the
A completely empty newline must be present for paragraphs to be handled as separate from the preceeding one. This could be construed as a limitation ;-).
Have fun --
Soren / somian / Intrepid
After doing some testing I can recommend a refined "workflow" scheme for those who might be left
in a second or two of puzzlement about how to use this tool otherwise. If you have the Linux/*nix
tool xclip(1) on your system you can use it nicely like so:
- Make your selection with mouse in the source application/document window.
- Switch to your Xterm-like tool and issue the following command, i.e. :
The -f switch to the last invocation of xclip will let that tool
echo the output processed text to your terminal, acting as a preview so that you
can see what was done. Eliminate it if you want silent operation.
$ xclip -selection p -o | \
pmnodecomp-blockquoter | \
xclip -fi -selection c
- Switch to the Perlmonks node you wish to compose in your browser, place text
cursor in the input box and issue CTRL-V or whatever maps to "paste"
in your X environment. The blockquoted text now on the X clipboard will appear
at your cursor position.
I realize these instructions will seem like huge overkill to many of the experts on the site, but
we all had to learn somewhere, and I didn't want to leave novices to X or computers completely
up the creek w/o a periscope. Adapting these instructions for another kind of environment that
still has a usable shell (DOS would not fall under that category) is left as an exercise to the