Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • There are some Firefox extensions which make this even easier. Currently I'm using ViewSourceWith [sourceforge.net], which doesn't just do what it says but also provides a way of loading the contents of text areas into external editors.

    You right-click in a text area and select a menu item to fire up the editor, then save stuff in the editor and it gets reflected in the browser. I'm using it on Linux with Vim (gvim).

    Note also that the Vim keystroke H only moves to the top line currently being displayed; to move to the first line of the document (even if it's scrolled off the top) use gg. But actually the simplest way to filter an entire document (which doesn't depend on where you currently are in it) is to do:

    :%!pbcopy

    On Linux the selection in Vim is automatically also the X selection, and the clipboard is accessible as the + register. So you can highlight an entire document with ggVG and then copy that to the clipboard with "+y. I haven't used a Mac, so I don't know if that also applies there.

    (Finally, don't think of Esc as being a prefix needed before normal-mode commands in Vim; it's the last step to finish an insert, not the first step of the following command, that is it's not needed when you use several normal-mode commands in a row. Vim becomes much easier to deal with once your mental model of its modes matches how it does things!)

    Smylers