in reply to c tags

++.

I know there's a chance this would be seen as creature freep, but can we please also have a <pc>...</pc> tag that means <p><code>...</code></p>? I do that a lot!

Replies are listed 'Best First'.
Re^2: c tags
by polettix (Vicar) on Jun 11, 2005 at 12:20 UTC
    You can already do something similar that with less typing - even if I've to admit that you don't get full <p> tags.

    Here comes a EMBEDDED <c> tag; but if I put a

    NEWLINE
    , like
    some non-code text <c><<NEWLINE HERE>> Code text here</c> other text, in another paragraph...
    it seems to understand me!

    Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

    Don't fool yourself.
Re^2: c tags (P, NLs)
by tye (Sage) on Jun 11, 2005 at 17:07 UTC

    If you do that (not including a newline inside the code tags), it means that your code doesn't wrap as effectively and it gets downloaded as a comment.

    If you instead, as frodo72 notes, include a newline inside of the code tags (for example, at the start and/or the end of the code), then the displayed code will be enclosed in P or PRE tags, depending on the viewer's settings. Wrapping your own P tags around such shouldn't be done.

    - tye        

      Thanks. Is this documented?