D wiki

tn no at email.com
Fri Nov 23 03:56:57 PST 2012


On Thursday, 22 November 2012 at 14:52:33 UTC, Vladimir Panteleev 
wrote:
> On Thursday, 22 November 2012 at 10:41:33 UTC, Andrej Mitrovic 
> wrote:
>> On 11/22/12, r_m_r <r_m_r at mailinator.com> wrote:
>>> I just modified the Main_Page
>>> and added the WhySwitch page (content copied from the old 
>>> wiki:
>>> http://www.prowiki.org/wiki4d/wiki.cgi).
>>
>> Is it possible to increase the default font size for D syntax 
>> highlighting?
>>
>> This is what it looks like, it's almost unreadable: 
>> http://i.imgur.com/B39nC.png
>> I would prefer this, which is 10pt in a standard code editor:
>> http://i.imgur.com/izGsJ.png
>
> That would be because your browser is using Courier New for the 
> monospace CSS font family, which is notable for being smaller 
> than other fonts at the same font sizes.
>
> I've overridden the definition to use the same CSS as the forum 
> (basically, try "Consolas" before falling back to "monospace"). 
> Does it look better now?
>
> If anyone would like to suggest a CSS change, you can try it 
> out by adding CSS to 
> http://dwiki.kimsufi.thecybershadow.net/Special:MyPage/vector.css. 
> Only you will see the changes; once you're satisfied, let me 
> know and I'll look into adding them to the main stylesheet.

Fix for the font size issue:
http://dwiki.kimsufi.thecybershadow.net/User:Tmn/vector.css

(Taken from here: 
http://en.wikipedia.org/wiki/MediaWiki:Common.css)


More information about the Digitalmars-d mailing list