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