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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I've made changes to make non-HTML display better. For example, I can type $line= <STDIN>; without CODE tags (like I just did there) and it shows up fine. It used to show up as $line= ;.

I'd like to add a user setting such that "[link]" turns into "[link]" instead of the usual "link". New users would start with this setting turned on so that, if they don't know to use HTML, then their text will still be mostly recognizeable.

But these changes were mostly to help newbie users of the chatterbox. The feature that is supposed to help newbie posters is: PREVIEW. We even have forced preview now. We probably need to add some more hints to let newbie posters understand that the preview actually works and it is their posting that is broken :) (and other interface improvements).

Now, I mostly hate <br /> tags. So I don't want a "convert text to HTML" option because I don't want your text paragraphs to preserve their line breaks such that they don't adjust well to the different display/font sizes of different visitors.

I'd more likely take a hint from POD. I could see detecting blank lines and turning them into <p> automatically (for certain users or if no other HTML mark-up is present or something). And I could see detecting paragraphs with indented lines and putting those into CODE tags automatically (again, only if some test says we have a newbie poster).

Or I could see a button between "preview" and "submit" that tries to make automatic improvements like those in the above paragraph. How should this button be labeled? "Auto-fix HTML"? It could even replace your HTML with filtered HTML...

And I think I'd like to teach PM how to wrap text inside of PRE tags.

                - tye

In reply to Re: Convert Text to HTML Checkbox (POD) by tye
in thread Convert Text to HTML Checkbox by rjahrman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found