Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: New code wrap options

by blakem (Monsignor)
on Aug 12, 2002 at 12:36 UTC ( #189460=note: print w/ replies, xml ) Need Help??


in reply to New code wrap options

Unfortunately this option breaks the CSS hack some of us have been using to highlight code blocks. It assumes code blocks are surrounded by <pre><tt> tags. I think a style="code" tag surrounding the block might solve this, but I'm not much of a CSS expert.

See a random page from the perlmonks.thepen site for an example of how I have the CSS code highlighting set up.

-Blake


Comment on Re: New code wrap options
Download Code
(tye)Re: New code wrap options
by tye (Cardinal) on Aug 12, 2002 at 14:49 UTC

    Now code is wrapped in <tt class="code"> (for all combinations of wrapping settings). Let me know if that works.

    Update: In-line <code> (like that -- stuff in <code> tags that doesn't include a newline) is not designated class="code". If someone wants a class designation for this, then come up with a nice, short, clear name for the class. (:

            - tye (but my friends call me "Tye")
      Thanks tye. Setting CSS styles for tt.code instead of pre tt works with both user setting options now.

      -Blake

      If someone wants a class designation for this, then come up with a nice, short, clear name for the class.

      class="fragment"

      However getting short and clear at the same times seems to me to be setting the bar too high. Maybe having one without the other is preferable?


      ---
      demerphq

        First they ignore you, then they laugh at you, then they fight you, then you win.
        -- Gandhi


        Well, I'd just do "inlinecode".

        - tye        

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (19)
As of 2014-10-20 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (89 votes), past polls