Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: newbies, <code> tags and recognizing perl

by my_nihilist (Sexton)
on Mar 21, 2008 at 11:54 UTC ( #675399=note: print w/ replies, xml ) Need Help??


in reply to Re: newbies, <code> tags and recognizing perl
in thread newbies, <code> tags and recognizing perl

I agree w/ BrowserUK; the "snippets" section is almost like this. Even better would be to just include text that you might actually want to erase (and, hence, pay attention to) in the create box, eg:


Use this space to ask your question.  You can delete this text.  
Place actual perl code inside the <code> tags below.

<code>
CODE GOES HERE
</code>

See below for more formatting tips.

I think almost anyone asking a legitimate question will be able to deal with this PLUS:
  • it's PROACTIVE!
  • it's easier.


  • Comment on Re^2: newbies, <code> tags and recognizing perl
    Re^3: newbies, <code> tags and recognizing perl
    by ww (Bishop) on Mar 21, 2008 at 12:29 UTC
      Did you really intend your post to be such a mixture of unclosed tags, mixed font-weight and -style, etc? And if so, please clarify how is it supposed to differ from BrowserUk's above.

      Whether or not the appearance of your post reflects inadequate previewing or not, it's quite plausible (to me, anyway) that many posters eliminate the "Preview" button when creating a node, or treat it as so many treat an "accept this license" box during software installs; that is, as something to click through as quickly (and carelessly) as possible.

      Sorry if this sounds snarky (and I'm not trying to suggest that you're among those who simply haven't read the docs), but many of the formatting problems here are created by those who haven't understood them.

      We can't cure the former, except by gentle guidance and by making the markup docs easier to follow, which might also automagically address the latter.

      Puff: Please see Markup in the Monastery for one attempt at enhancing the guidance.

        hmmm...i used <pre> tags to preserve the <code> in what appears to be in <code>...i had presumed that the caveat against this was in place because download is a product of <code> and not <pre>; but if you say my last post looked screwed up to you then either:
      • you are borderline illiterate
      • our browsers (me=linux/mozilla) are producing different output and i should never have used <pre>

        As for my post being a re-iteration of BrowserUK's post, i agree -- vote for BrowserUk!

        Regarding the preview button: I use it to death, but w/r/t a newbie poster i think the "in textarea" statement would be even more "intuitive" (if we can attribute intuition to newbies and knowlege to the practiced)

          Generally (though it did not work as expected here, probably due to neurons misfiring or somesuch) to show <code>...</code> tags, place them inside <c>...</c> tags and vice versa.

          Use of <pre>...</pre> may be discouraged because it doesn't produce a download tag, but a more significant problem is the fact that long lines don't break, possibly producing a display wider than the user's normal browser window.

          Both these facts are discussed in the various documents on markup.

          And, BTW, even as a joke (if that's what it is) suggesting any poster, Monk or annonymonk, is "illiterate" falls into the "personal attack" range. As for browsers, as you may wish to explore, they don't all render the same .html and/or css in the same way, but following the Monastery-standard markup suggested in the docs tends to allow you to avoid problematic constructs.

          For the record, I too like BrowserUk's (note, lc "k") suggestion, but if all you really wanted to do in the post to which my previous reply was directed, was to endorse that, why not just do so?

    Re^3: newbies, <code> tags and recognizing perl
    by apl (Monsignor) on Mar 24, 2008 at 14:15 UTC
      I think this is a great idea. My only problem with it is that it reduces the need of the poster to think before posting.

      Is that necessarily a good thing?

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://675399]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (8)
    As of 2014-07-28 04:49 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite superfluous repetitious redundant duplicative phrase is:









      Results (186 votes), past polls