Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Wiki-Style syntax for posting

by ikegami (Patriarch)
on Oct 14, 2008 at 17:10 UTC ( [id://717043]=note: print w/replies, xml ) Need Help??


in reply to Wiki-Style syntax for posting

However, as first-time user I was a little annoyed by the old-fashioned input box. It's too narrow

I agree, but you can make it bigger using CSS. In my Display Settings, I added

/* Increase size of text input areas. */ textarea { width: 100%; height: 25em; } table.user-settings, .user-settings textarea { width: 100%; }

Not everyone is conversant with HTML

And even fewer with whatever wiki dialect you had in mind.

and, for the occasional posting, I don't want to go through the "approved html tags" list or the like.

You shouldn't have to ever look at that list. Only the exotic isn't allowed. The only special item you need to know is that it's much easier to use <c>...</c> to post code and data.

so it forced me to litter my text with cumbersome <br> tags. I find the wiki syntax easier to use (more intuitive).

Then you're doing something wrong. You should rarely have to use <br>. Just put a <p> at the beginning of every paragraph. I don't see how it could be more intuitive.

Update: Spelling fix

Replies are listed 'Best First'.
Re^2: Wiki-Style syntax for posting
by moritz (Cardinal) on Oct 14, 2008 at 17:49 UTC
    I agree, but you can make it bigger using CSS. In my Display Settings

    Can you, as Anonymous Monk?

      I generally use the It's All Text! extension for Firefox, then I can click the "edit" button on any textarea and modify it in my own editor.

      --
      andrew
      No, not without GreaseMonkey or some other external tool. That's why I said I agree with that recommendation.
        No, not without GreaseMonkey or some other external tool.

        You can rather easily do this in IE and it is only somewhat more complicated in FireFox. Sure, it may impact any textarea on any web site that uses name="note_doctext", but how many of those are you likely to run into? (And, yes, it is no accident that posting anonymously has some disadvantages.)

        For IE, select Tools => Internet Options => General => Accessibility and define your personal style sheet and add the appropriate CSS to it. For FireFox, look up the FAQ on how to find you profile directory and which file to edit and add your personal CSS to.

        If somebody would make some exact recommendation as to how to improve the default textarea size, then it would be more likely that something would be done. Especially if the recommendation was not solely geared toward people with the latest browser being used maximized on a high-resolution monitor. :)

        - tye        

Re^2: Wiki-Style syntax for posting
by jvector (Friar) on Oct 17, 2008 at 15:00 UTC

    I suspect the horse may be dead from all this flogging, but here goes...

    About those open-P and close-P tags:

    Just about every note I have written here has a similar history:

    • Position at start of text area above my sig;
    • type first 'para';
    • type Enter-Enter;
    • type next para;
    ... and either at this point or after hitting 'Preview', thinking 'Oh, tut!' and entering </p><p>between each para, then jumping to the top and putting in an initial <p>.

    Now there are a couple or three places in this thread where venerable members of the Monastery have said words like (my apologies, I'm not au fait enough to do the linking trick)

    Just put a <p> at the beginning of every paragraph
    , and :
    you just need <p> for paragraphs and <code>...</code> for code

    So I have had a little follow-on question: how strict/forgiving are the "PM HTML recommendations", specifically with regard to whether the closing tags are required?

    Update: I followed the recommendation in Markup in the Monastery to maximise my HTML 'error reporting', and that went some way to answering the question. It seems that:

    • if I omit an initial <p> I am forgiven but the next </p> is, unsurprisingly, flagged;
    • the Monastery markup does prefer writers to close paras with a proper </p> tag but tolerates those who don't use one.

    So although I think I don't have the question I had when I started, I shall leave this post here as it may help others in a similar situation; and may act as a recommendation to turn on that HTML check in your Display Settings!

    This signature will be ready by Christmas

      So I have had a little follow-on question: how strict/forgiving are the "PM HTML recommendations", specifically with regard to whether the closing tags are required?

      Closing a P element is done implicitly in the absence of closing tag, both in HTML and on PerlMonks. I've never had a problem there. On the other hand, I've had problems omitting closing tags for table-related elements on PerlMonks, even though it was valid HTML.

      Considering that the HTML DTD specifically allows the close tag of the P element to be optional (on the account that the close tag can be inferred), I'm surprised the recommendation here is to use the close tag. That sounds very un-Perlish - and more Pythonesque.

      Not that I ever do ;-) (Nor do I use close tags for LI)

        Surprised me too.

        I think I will turn down my error reporting level again ;-)

        Reminds me of the apocryphal stories about turning off 'use strict;' to make the errors go away ;-)

        This signature will be ready by Christmas

        XHTML requires them, while HTML leaves them optional. Perlmonks seems to use transitional, in HTML mode. Which means it should be ok, in theory.

        That said, the interactions between them and a several of the other HTML tags that are allowed here can get fairly complex, and it is not always obvious — even with the spec — which way they are supposed to be resolved.

        Consider them something that use warnings; will complain about. ;)

      you just need <p> for paragraphs and <code>...</code> for code

      I'm replying to you because you're just the first one (from a search POV, top-to-bottom) to point out so, and it's fundamentally true: I would call it the zeroeth-order approximation to the Truth™ ;) Now, to be admittedly fussy and since nobody else seems to have mentioned them yet, I would add that before any other "cosmetic" tag would come PM-specific <readmore> and (to a lesser extent) <spoiler> ones which are sometimes recommended, to define the first-order approximation.

      As for the level of strictness at the monastery, I don't have time enough to follow the subthread(s?) that this issue spawned, but as far as I'm concerned I close all tags: indeed I'm pretty much always writing xhtml nowadays, whenever I have to "write *html" that is - I feel more comfortable and psychologically at ease. And it's not tiresome for me in any way. You may check that by inspecting the xml source of my nodes, well at least since some years on...

      --
      If you can't understand the incipit, then please check the IPB Campaign.
Re^2: Wiki-Style syntax for posting
by belg4mit (Prior) on Nov 28, 2008 at 19:22 UTC
    The proper way to do this is with a bookmarklet, since the design of many sites often fails for a user with different settings than the artiste who conceived it.

    --
    In Bob We Trust, All Others Bring Data.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found