• 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

UBB-code-tag

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by "UBB-code-tag" and why?
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using the UBB code tags will allow you to more neatly format your code:
public class MyClass {
public static void main)String[] args) {
line 1
line 2
if (something) {
more code
more code
}
more code
}
}
will look like this:


------------------
Tom - SCJP --- Co-Moderator of the Programmer Certification Forums
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But how do you format it like that.
Thanks.
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Similar to the Quote tage, the Code tag adds some < PRE > tags to preserve formatting. This useful for displaying programming code, for instance.
[ CODE ]#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello World!"; [ /CODE ]
In the example above, the UBB Code automatically blockquotes the text you reference and preserves the formatting of the coded text.
When I use the code tag I also use a font tag to make the code larger (otherwise it uses a tiny font.
[ code ] < font size="+0" >
my code
< /font > [ /code ]

[This message has been edited by Thomas Paul (edited July 17, 2001).]
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Learn more about UBB codes here
 
reply
    Bookmark Topic Watch Topic
  • New Topic