Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: New code wrap options

by blakem (Monsignor)
on Aug 12, 2002 at 12:36 UTC ( [id://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

Replies are listed 'Best First'.
(tye)Re: New code wrap options
by tye (Sage) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://189460]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found