I can see from reading the comments in the average page's sources that a few things are in flux about the overall formatting, but I have a couple requests to make the output more CSS friendly.

I'd like to develop a Monk CSS that's more like CPAN docs style. I'd submit it with a name "CPANic" or something, but it needs more class support.

--
[ e d @ h a l l e y . c c ]

  • Comment on More CSS-friendly formatting on PerlMonks?

Replies are listed 'Best First'.
Re: More CSS-friendly formatting on PerlMonks? (code)
by tye (Sage) on May 01, 2003 at 19:54 UTC

    Um, I see <tt class="code">. Doing a Super Search for class="code" I also find (tye)Re: New code wrap options. So I'm still waiting for a good answer to that. (:

    Setting class for square-bracket short-cut expansions is a good idea. Maybe someone will write a patch. Even better, maybe someone will finish the nearly finished work documented at tye&nbsp; and include your suggestion there. (*sigh*, so much time, so little to do...)

                    - tye

      Hm, I didn't look at the PREs closely enough. Yep, it has <pre><tt class="code">. That's not great, but it's actionable. The node you refer asks someone to come up with a suitable class for inline perlmonkish CODE tags.

      Personally, I think it'd be best if it used pre.code for multiple lines and tt.code for inline use. This would allow common features of .code to be common, and special features of pre or tt to be layered atop that.

      Should I start exploring how to code on this system? I know this site shares the engine with others, so I expect there's some push-back against sudden inspirations and hacks to the core functionality.

      --
      [ e d @ h a l l e y . c c ]

        Go read that thread. Not all choices of displaying code on PM use PRE tags. There are no PRE tags around code when I view it, even for multi-line code blocks.

        The CSS for code blocks is not part of the core functionality of the site. It is part of the subroutine (well code node) that handles CODE tags here. What class="X" to use doesn't really require programming. We just need to decide and then the change to the code is trivial.

                        - tye
Re: More CSS-friendly formatting on PerlMonks?
by Aristotle (Chancellor) on May 02, 2003 at 01:49 UTC
    I do use a pretty CPANish theme and have been for a long time. The solution for what you are after is pretty trivial. See aforementioned node.

    Makeshifts last the longest.