It may not be for everyone, but the way inline code and code blocks are displayed with a border and distinct background color on many sites really helps me when reading text interspersed with code. After reading Repainting the Monastery the other day, I decided to spend an evening learning some basic CSS so that I could make my own PerlMonks experience more pleasant.
Below is the modest CSS snippet I'm currently testing out. I also put it up as a GitHub gist so that I can point to it from Display Settings (for anyone that doesn't know where to add CSS code or point to external CSS links).
I use PM's red theme, so I gave my code blocks a faint red color to keep with the theme; however, this background color can easily be changed by adjusting background-color: #FFF4F4;. There are a couple other things I'm debating, including whether I prefer it without word-wrap: break-word;, but I figured I'd post it here in hopes that someone might find it useful and that other people might also share any nice CSS customizations they have done.
On the theme of sharing... If there are many people with custom PerlMonks CSS, it might be nice to have a node dedicated to snippets or external links to supplement the primary themes that are available in Display Settings. This might help quench some people's thirsts for a 'repainted' monastery, without actually having to do any real painting.
EDIT: I posted screenshots of how it looks on my screen with and without this CSS.
EDIT #2: Added a bit so that things look as expected when viewing PM from my phone.
For the too-many-th time, I discovered after posting that I'd omitted a critical point, markup or something else that left me dissatisfied with the node and then turned myself into a serial updater by adding an error for every correction.
Therefore, seizing the bull by the bs ^H^H^H ... er, horns, may we discuss a possible change to the update capability; namely, an optional "preview before updating" configuration, which might be added to the option for direct posting without previewing which exists for Monks of certain orders?
Alternately, we might add a second, "preview" button to the existing "update" button and redirect the action that way.
And, actually I'm very curious about why this hasn't surfaced recently. It may be this has engendered little interest previously or that it's a fundamentally 'bad idea' or that it's in the 'too hard' box (but, without suggesting I'm sure I could do the job, I don't see why that would be the case).
Hmmm ... it is just me, or did the Search button in the Perlmonks header bar grow? It looks twice as large as I think I remember seeing it. If it changed, I don't know when, but it really caught my eye a few minutes ago.
Update: I checked Tidings, but didn't see a recent change.
Why is it so difficult for the "experts" that run this place to implement proper authentication?
If you ever want a reason for the decline in Perl's popularity; the fact that the Perl expertise, that code the premier Perl website -- in Perl -- can't work out how to do proper authentication probably is -- and should be -- a damn good one.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
It is very strange that two such active Perl monks
are absent from this site for such a long period,
at the same time, and for the identical number of days.
Since they get on so well together at Perl Monks, perhaps
BrowserUk and sundialsvc4 have gone on a holiday together?
Esteemed Perloholics Anonymous, things are getting alarming here:
I must admit that this is not a totally unexpected result. Yes, WE HAD some clues at the monastery
Found 50 nodes where title contains "vine"
Found 13 nodes where title contains "whisky" or "whiskey"
Found 13 nodes where title contains "vodka"
Found 11 nodes where title contains "alcohol"
Found 26 nodes roughly where any text contains all of "how", "to", "ma
Found 5 nodes with: "Tk problem: keep sober"
If I open a terminal window and type perldoc Wx or man Wx, I get a usage information screen for wxPerl. I wanted to link to this information in a prior post and none of the methods discussed below did what I needed. Can these files be linked to(assuming you have Wx installed)?