MediaWiki talk:Common.css: Difference between revisions

Content added Content deleted
(\n)
(eh whatever)
Line 10: Line 10:
::::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. --[[User:Mwn3d|Mwn3d]] 19:40, 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. --[[User:Mwn3d|Mwn3d]] 19:40, 29 January 2009 (UTC)
:::::There's two things going on there. First, GeshiCodeTag converts \ns in GeSHi's output to <nowiki><br/></nowiki> tags, regardless of language, because HTML ignores \n as far as formatting is concerned. Second, I'm pretty sure <nowiki><br></nowiki> 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. --[[User:Short Circuit|Short Circuit]] 15:37, 30 January 2009 (UTC)
:::::There's two things going on there. First, GeshiCodeTag converts \ns in GeSHi's output to <nowiki><br/></nowiki> tags, regardless of language, because HTML ignores \n as far as formatting is concerned. Second, I'm pretty sure <nowiki><br></nowiki> 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. --[[User:Short Circuit|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. --[[User:Mwn3d|Mwn3d]] 15:44, 30 January 2009 (UTC)