MediaWiki talk:Common.css: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 16: Line 16:
What's the story on this Adsense stuff? I haven't seen any ads come up yet. --[[User:Mwn3d|Mwn3d]] 21:07, 10 January 2010 (UTC)
What's the story on this Adsense stuff? I haven't seen any ads come up yet. --[[User:Mwn3d|Mwn3d]] 21:07, 10 January 2010 (UTC)
:Only anonymous users will see ads. See [[Rosetta_Code:Village_Pump/Ideas_for_2010#advertisements.3F|advertisements in 2010]] and the comment on [http://rosettacode.org/mw/index.php?title=MediaWiki:Common.css&curid=4&diff=71369&oldid=22099 this diff].
:Only anonymous users will see ads. See [[Rosetta_Code:Village_Pump/Ideas_for_2010#advertisements.3F|advertisements in 2010]] and the comment on [http://rosettacode.org/mw/index.php?title=MediaWiki:Common.css&curid=4&diff=71369&oldid=22099 this diff].
::Even when I'm signed out I don't see ads. I only see a box for them. --[[User:Mwn3d|Mwn3d]] 21:48, 10 January 2010 (UTC)

Revision as of 21:48, 10 January 2010

By the way...if anyone wants to see some CSS changes, feel free to leave a comment. --Short Circuit 21:59, 1 April 2008 (MDT)

Could you please add

.re2 { background-color: #ccccff; }
.re3 { background-color: #ffcccc; }

for Whitespace highlighting? --Ce 12:03, 26 January 2009 (UTC)

They're in. And they work. I thought newlines got highlighted too. Maybe that was only on some other websites. --Mwn3d 13:40, 26 January 2009 (UTC)
Thanks. Newlines don't seem to get any special markup in the HTML. There probably is a way to add that to GeSHi, but I don't know how. --Ce 15:37, 26 January 2009 (UTC)
What, specifically, are you looking for? --Short Circuit 19:23, 29 January 2009 (UTC)
What I've seen is that a newline is highlighted as having a light green background (something like #66FF99). It looks like it highlighted a space at the end of the line. --Mwn3d 19:40, 29 January 2009 (UTC)
There's two things going on there. First, GeshiCodeTag converts \ns in GeSHi's output to <br/> tags, regardless of language, because HTML ignores \n as far as formatting is concerned. Second, I'm pretty sure <br> isn't supposed to have any logical width, so actually seeing a background color there is most likely a rendering bug in your browser. The best thing I can think of for visibility is to leave the existing behavior there, but remove the background color for that element so as not to confuse it with a space. Or insert an image, but that could make copying and pasting difficult. --Short Circuit 15:37, 30 January 2009 (UTC)
I can't seem to find any examples that highlight newlines. Maybe I'm crazy. It's not that important anyway. Don't worry about it. --Mwn3d 15:44, 30 January 2009 (UTC)

Adsense

What's the story on this Adsense stuff? I haven't seen any ads come up yet. --Mwn3d 21:07, 10 January 2010 (UTC)

Only anonymous users will see ads. See advertisements in 2010 and the comment on this diff.
Even when I'm signed out I don't see ads. I only see a box for them. --Mwn3d 21:48, 10 January 2010 (UTC)