Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

A bit more about readmore

by demerphq (Chancellor)
on Nov 01, 2004 at 00:09 UTC ( #404171=monkdiscuss: print w/replies, xml ) Need Help??

Its come to my attention that a recent modification to the readmore handling code hasnt been sufficiently well advertised. You can now add a "title" text to your readmore tags:

<readmore title="Yada-Yada">...</readmore>

Unclosed readmore tags are considered to bracket all content to the end of the node, and a node may have multiple readmore sections. Readmore tags cannot be nested and are PM specific "pseudo-html". When the node is viewed in expanded view then the tags are converted to <div class='readmore'>...</div> tags so with a bit of custom CSS you can see what text they cover.

BTW, you may want to view this node from Perl Monks Discussion to see the readmore tags in action.


Replies are listed 'Best First'.
Re: A bit more about readmore
by bart (Canon) on Nov 01, 2004 at 10:22 UTC
    A nitpick: text is counted in characters, not in bytes. Bytes are for binaries. So yes, the caption
    Yada-Yada (3 bytes)
    annoys me.

      Thing is its not going to be a character count, as the html markup content will be counted. So to say X chars would be less accurate than saying X bytes. At least the latter will be correct all the time, where a char count would be wrong almost all of the time.

      Update: I see from the CB chatter history that you and ysth dont like this information to be displayed. I suggest one of you put together a patch to provide a user setting to turn it off. That would be the easiest thing for all concerned. :-)


        I see from the CB chatter history that you and ysth dont like this information to be displayed.
        I said that; don't recall bart exactly saying so. But CSS is a better choice than adding a user setting.
      This really is nitpicking if you consider that, for the character encoding used here, 1 char == 1 byte in terms of space.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://404171]
Approved by gmax
[Discipulus]: karl you says the same of my mom: in your place I'd been
[Discipulus]: preoccupied.. ;=)
Discipulus stopped with turkisk spices anyway.. but better hashes than arrays!
[oiskuu]: Discipulus, from the edge or from the top?
[Discipulus]: oiskuu from the top aka 0-0 coords
[LanX]: edge or node?
[oiskuu]: from each height difference, there's a fixed number of "moves right" - "moves left". So it's a number of combinations.
[Discipulus]: I already know how much distinct paths exists but to demonstrate the property i want to have them all
[oiskuu]: ie C(n, k); where n is height difference, k is position in the line

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2018-03-19 11:01 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.