• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Make code appear larger?

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Just want to thank JavaRanch for being here - it's an invaluable resource and I like it very much. One grumble I have though is reading code snippets in UBB [CODE] tags - it's just too small to read comfortably on my 15" monitor. I know code is traditionally shown in a serif font, but if you're going to show it that small, can't we use verdana or arial instead? Either that or make the code appear 2 points or so bigger. Anyone else think the same?
Adam
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use HTML tags as well as UBB tags. For code I often use:
<pre><font size="+0.3"> System.out.println("Hi");</font></pre>
which comes out as
<pre> System.out.println("Hi");</pre>
I arrived at 0.3 through exterimentation - it looks pretty good on my screen at least (better than 0 or 1) - but if probably isn't exactly the same on everyone's display. You can always use the edit function to change a post after you've submitted it, if you don't like the way something comes out.
 
reply
    Bookmark Topic Watch Topic
  • New Topic