Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: better wiki-like shortcuts.

by graff (Chancellor)
on Mar 11, 2006 at 17:56 UTC ( #535980=note: print w/ replies, xml ) Need Help??


in reply to better wiki-like shortcuts.

Any sort of "global" conversion like  s/(?:\r?\n|\r){2,}/<P>/g; would of course need to apply only to regions that are outside of code tags. Maybe the PM source code would support this with little or no fuss, but I haven't seen the code, so I don't know.

Personally, most of my time and effort during PM posting is in spent thinking about what I'm writing, and crafting my words, code and presentation to be as clear as I can; so holding down the shift key for a fraction of second while I type  <P> might not be a big enough issue to warrant someone else spending many hours to simplify it for me.

(update: you do know, of course, that the "P" can be upper-case, don't you?)

(another update {geez, why can't I just leave this alone?}: Any sort of change like this would need to be backwards compatible, both with the established archive of posted data, and with the established habits of many monks. If the approach for such a change requires the elimination of paragraph tags, it won't work. For that matter, if the above substitution were applied to the existing archive, it might have "unintended consequences" -- paragraph breaks appearing where node authors did not intend to put them. Things could get weird and tricky...)


Comment on Re: better wiki-like shortcuts.
Select or Download Code
Re^2: better wiki-like shortcuts.
by GrandFather (Cardinal) on Mar 11, 2006 at 18:55 UTC

    If such a translation were to be done (converting text wrapped in repeated line ends to wrapped by <p></p> tags), then it could be applied at the time a node is posted and need not affect any currently posted nodes.

    An alternative that some people may find even better, although slightly clunky, would be to use a PerlMonks editor and paste the prepared HTML text straight into the current edit facility. This would require someone writing a PerlMonks editor of course. :)

    Actually, if there is a demand for such a thing, and people could tollerate it written on Tk, I'd be prepared to put my hand up for the job - let me know.


    DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-10-22 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls