Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Site HTML filtering, Phase II

by jonadab (Parson)
on Feb 12, 2004 at 12:38 UTC ( #328542=note: print w/ replies, xml ) Need Help??


in reply to Re: Site HTML filtering, Phase II
in thread Site HTML filtering, Phase II

The hard part is finding out which elements are named the same in both HTML and Perlmonks, but act differently. <code> for instance means something else in HTML than in Perlmonks.

code tags are something I use often enough that they're not hard to remember.

But I still haven't figured out how the <a> element is working on Perlmonks.

Hmmm. I haven't run into that one. As near as I can tell, it works like in regular HTML. Must be I just haven't tried the right (or wrong) thing yet.

Easier to remember, but not easier to type.

Agreed, I find having to escape the left square bracket annoying (I did say it was one of my two pet annoyances on pm, didn't I?), and doing the editing in a browser textarea control instead of a real editor doesn't help this any. Sometimes I'm tempted to do a whole post in Emacs and copy-and-paste it over. Sometimes I do that. I suppose the bracket syntax for perlmonks was taken from E2 and/or Wiki, but I've always wondered why the same things couldn't be done with angle brackets...

How It IsHow It Could Have Been
[jonadab] <node jonadab>
[id://328276] <id 328276>
[cpan://Net::Server::POP3] <cpan Net::Server::POP3>
[Newest Nodes] <node Newest Nodes>
[weird syntax >= escaping] <node "weird syntax >= escaping">

However, retrofitting those changes now would be quite painful, as all existing nodes would be impacted (and that's ignoring developing and testing the code for the changes).

At least in POD

Please, no POD. I do *not* want to try deal with significant whitespace in a feature-impoverished browser textarea, and if you think getting newbies to use code tags and whatnot is hard with an HTML-like markup, just you think about trying to convince newbies who want help with PERL that they should post their question with POD markup. Gah. Gives me the heebie-jeebies just thinking about it.


$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/


Comment on Re: Site HTML filtering, Phase II
Select or Download Code
Re: Site HTML filtering, Phase II
by Abigail-II (Bishop) on Feb 12, 2004 at 14:06 UTC
    Please, no POD. I do *not* want to try deal with significant whitespace in a feature-impoverished browser textarea, and if you think getting newbies to use code tags and whatnot is hard with an HTML-like markup, just you think about trying to convince newbies who want help with PERL that they should post their question with POD markup. Gah. Gives me the heebie-jeebies just thinking about it.
    An option to post in POD doesn't mean a requirement to do so. If Perlmonks were to allow posts in POD and/or plain text, I'd imagine a drop down box, or a radio button next to the textarea to flag the format of the posting. Defaults could come from a user preference, or from the users last post. I'd also imagine a heuristic that classifies the posting with a great degree of accurancy, and relative simple ways for the poster to force a markup style if the guesser guesses wrong. (Say, a post starting with <html> is in HTML, a post starting with =\w+ is in POD, regardless how the rest of the post looks like).

    As for the significant whitespace thing, whitespace inside <code> is currently significant. Quite significant actually.

    Abigail

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-07-28 21:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (209 votes), past polls