tabs for formatting text
how do i insert tabs in post to format pasted code?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
Except for the fact that no matter how many spaces you put in, the forum software strips out all but one space from the final message. I always double space between sentences, but it always shows up as a single space. Similarly, the only way for me to indent my closing below is to use the "List" formatting option which automatically indents. I could live with the lack of tabs if the forum didn't play "space" Nazi and only allow a single one in any location.
Thanks, PeterM
PS - I have ten spaces in between these two arrows: > < but all you see is one space.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
begin
··· while(true)
······· x = x + 1
··· // comment
··· writeline "this is an endless loop"
··· x = x - 1
··· for (y=0; y < 10; y++)
······· writeline "for loop"
······· next
end
// This was submitted in the rich text editor. I'll dig into the quick reply code and see why spaces get no respect there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
·1 Tab
··2 Tabs
···3 Tabs
····4 Tabs
This concludes the test of the Tab broadcast system, we now return you to your regularly scheduled programming.
Ok Tabs are translated to spaces when pasting into the rich text editor, even in formatted code windows.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Just a guess here, but you're probably using Internet Explorer, right? Well, I use FireFox. I am reply using the standard reply text editor that allows me to make things bold, or italicized, or underlined, etc, etc. The one thing it won't let me do is type a message that displays with more than one space.
Once more for those who care, I have put ten spaces between these arrows: > <
Looks like one to me!
Thanks, PeterM
PS - I have attached an image that shows this message being composed and previewed. Note the difference in the number of spaces between the arrows in the composition area and in the preview.
·· I'm just amazed at how different our screens look...Here's what I see using IE.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
Here's a cut/paste of the relevant HTML source from PJM's posting:
"I have put ten spaces between these arrows: >········· <<br><br>Looks like one to me!"
Just in case the source code above·got mangled by whatever is interpreting this reply, that's:
"I have put ten spaces between these arrows: & g t ;·[noparse][[/noparse]ten SPACES here]·& l t ; < b r > < b r> Looks like one to me!"
What's this look like?:· | &nbps;|· That should be 4 SPACEs between two vertical bars.
[noparse][[/noparse]EDIT by PAR]: Well, I see ten spaces in the excerpted source code above. And, I see " " instead of SPACEs in my own test text.· How about these?:
|········· |· (ten SPACEs between two vertical bars)
<········· > (ten SPACEs between a LT and a GT symbol)
>········· <·(ten SPACEs between a GT and a LT symbol, like PJM's original text) PAR
PAR
Post Edited (PAR) : 11/8/2005 4:11:12 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
Call this a warning, or a reminder, as appropriate, but many applications programs permit or allow the following user option:
Convert TABS to SPACES?
For the purposes here, the respective browsers are the applications programs; thus the system (the server in this case) sees what was choosen to be CONVERTED and SENT per the users SETTINGS. I know of no such setting within IE but that doesn't mean one doesn't exist in some obscure, little-used USER Options cubbyhole, usually visited by only Gates' most devious programmers!
Regards,
Bruce Bates
HTML condenses multiple spaces into one.
> < is what the plain old JS editor sends. (You can't see the spaces)
>          < is what the ActiveX editor creates.
In HTML,   is replaced by a space, which is not condensed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SX-Key + SX52 + Proto Board + SX-Key Software + Computer + USB to Serial Adapter + LED = Blinky LED!