• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Tabs

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How come when I put code in here, all the tabs are removed? Especially considering they're spaces, not tabs.
Also, if I copy some code out (that's been in a [CODE] block), it all comes out on one line, so I have to spend ages sorting it out. Is there something I'm not doing, or is this just the way it is?
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason your code showed the way it did is - ubb codes are pairs. The tag should be [ CODE] ... [ /CODE] (no spaces, I had to add the spases for it to show)(I edited your last message in IO and Streams, check it now) So, you formatting isn't preserved. As far as copying the code, yes this happens if you try and cut it straight from the display. This has to do with how your browser renders the information to the screen. The easiest way to get the code you want is to 'edit' the message. From there you can highlight and copy the code maintaining the formatting that the original poster put it in with.
Take a few minutes and review UBB Codes
Hope this helps
[This message has been edited by Carl Trusiak (edited November 17, 2000).]
[This message has been edited by Carl Trusiak (edited November 17, 2000).]
[This message has been edited by Carl Trusiak (edited November 17, 2000).]
[This message has been edited by Carl Trusiak (edited November 17, 2000).]
 
    Bookmark Topic Watch Topic
  • New Topic