playMaker

Author Topic: Better Code Font.  (Read 4268 times)

Murcho

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 54
    • View Profile
Better Code Font.
« on: April 01, 2011, 04:58:39 PM »
When placing code snippets in like this :

Code: [Select]
//This is some code
int awesome = 42;

I find the currently used font very hard to read, especially at the current size.  Is there a way you guys can change this at all?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3207
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Better Code Font.
« Reply #1 on: April 01, 2011, 07:05:42 PM »
Me too! Denkiva...?  :P

Neural Echo

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 12
    • View Profile
Re: Better Code Font.
« Reply #2 on: April 01, 2011, 07:24:19 PM »
Agreed... same goes with the emoticons... many of them are almost indistinguishable.

Murcho

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 54
    • View Profile
Re: Better Code Font.
« Reply #3 on: April 05, 2011, 04:05:17 PM »
Bump.

Seriously, need to be able to read the code on this site.

denkiva

  • Administrator
  • Playmaker Newbie
  • *****
  • Posts: 38
    • View Profile
Re: Better Code Font.
« Reply #4 on: April 13, 2011, 09:30:05 AM »
Bump.

Seriously, need to be able to read the code on this site.

Heya,  I totally agree with you guys... code font is waaaaaay small.  Looking for a way to address this one. So far I've only been able to add color to code fonts (yeah, not sure if that is useful...)  ... if anyone has some tips on how to do this (or any SMF add ons that help to modify code font size/provide more flexibility etc)  let me know!   this solution is a work in progress!

:-)

V

denkiva

  • Administrator
  • Playmaker Newbie
  • *****
  • Posts: 38
    • View Profile
Re: Better Code Font.
« Reply #5 on: April 13, 2011, 08:37:23 PM »
I DID IT!!!

Made the code font bigger.  You see originally I assumed our userbase would consist of hummingbirds and ant-people... But I see that I misjudged you all.. Can everyone see it okay?  :o

Code: [Select]

color: #000000;
background-color: #dddddd;
font-family: "courier new", "times new roman", monospace;
font-size: small;
line-height: 1.3em;
/* Put a nice border around it. */
border: 1px solid #000000;
margin: 1px auto 1px auto;
padding: 1px;
width: 99%;
/* Don't wrap its contents, and show scrollbars. */
white-space: nowrap;
overflow: auto;
/* Stop after about 24 lines, and just show a scrollbar. */
max-height: 24em;

I can make it bigger if need be :-), like for dinosaurs and Titans...

« Last Edit: April 13, 2011, 08:42:57 PM by denkiva »

Pleasuremaker

  • Guest
Re: Better Code Font.
« Reply #6 on: April 13, 2011, 08:49:31 PM »
Still very small here, looks like it didnt change  :'(

denkiva

  • Administrator
  • Playmaker Newbie
  • *****
  • Posts: 38
    • View Profile
Re: Better Code Font.
« Reply #7 on: April 13, 2011, 08:53:41 PM »
Still very small here, looks like it didnt change  :'(

hmm is it your cache?  I'll set a px size and see what happens. gimme a sec... hopefully forum won't explode

denkiva

  • Administrator
  • Playmaker Newbie
  • *****
  • Posts: 38
    • View Profile
Re: Better Code Font.
« Reply #8 on: April 13, 2011, 08:55:40 PM »
hows that it's at 14 pixels, larger than the font size of the post I believe... perhaps if some others could let me know if they are seeing a difference that would be great :-)

Pleasuremaker

  • Guest
Re: Better Code Font.
« Reply #9 on: April 14, 2011, 04:22:38 AM »
Now its much better. I can see some lines. Thanks  ;D

denkiva

  • Administrator
  • Playmaker Newbie
  • *****
  • Posts: 38
    • View Profile
Re: Better Code Font.
« Reply #10 on: April 14, 2011, 02:18:22 PM »
Now its much better. I can see some lines. Thanks  ;D

Ah great!   ;D

Murcho

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 54
    • View Profile
Re: Better Code Font.
« Reply #11 on: April 19, 2011, 05:11:55 PM »
That reads much better now.  Thanks.

LET THE CODE SHARING COMMENCE!
 ;D