Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tabs  RSS feed

 
Grant Crofton
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?
 
Carl Trusiak
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).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!