http://qs321.pair.com?node_id=544218


in reply to Re: PerlMonks Editor
in thread PerlMonks Editor

This looks pertinent to version 2 of the editor - scrape the node being replied to (to allow quoted material from the OP) and post the reply directly. Thanks for the reply!


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^3: PerlMonks Editor
by Scott7477 (Chaplain) on Apr 19, 2006 at 05:11 UTC

    In your code the following line


    use constant kParaSpace => 4;


    appears to be the setting for the gap between paragraphs when the paragraph tags are used.


    When I tested your editor the gap between paragraphs is rather wider than seems to be the norm in most PerlMonks posts. Perhaps kParaSpace should be set to 2?


    This is a minor nitpick; otherwise this is very slick. Kudos to you...


    Scott

    PS: This node was written (mostly)using your editor:)

      Your analysis is quite correct Scott. That feature was jammed in just before I posted the code immediately before leaving on holiday over Easter so the gap hasn't been fine tuned. However I suspect it may be influenced by things such as the default font being used by the Text widget and perhpas by various system settings and display resolution.

      A number of things such as that could be made user preferences when the code is more fully developed.

      Glad to hear that you are using it for real BTW - Kudos to you :). (It's really a rather preliminary version.)


      DWIM is Perl's answer to Gödel
Re^3: PerlMonks Editor
by jdporter (Paladin) on Apr 19, 2006 at 16:52 UTC
    scrape the node being replied to (to allow quoted material from the OP)

    Yeah, that's a good idea. My code (above) is only useful for editing extant nodes.

    We're building the house of the future together.