The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: raleeper on August 14, 2011, 02:14:55 AM

Title: Testing text format
Post by: raleeper on August 14, 2011, 02:14:55 AM
tab,tab,xx
      xx
16 spaces, xx
                xx

OK, your tabs are 8 chars in the entry window, but 4 in the preview window?
---------
tab,tab, xx
      xx
8 spaces, xx
        xx

OK, need preformatted text


tab,tab, xx
      xx
8 spaces, xx
        xx


But that doesn't line up either.

How about teletype?

tab,tab, xx
      xx
8 spaces, xx
        xx


Nope.

Maybe I need  fixed font, but I don't see that.

What am I doing wrong?

Thanks

Title: Re: Testing text format
Post by: dedndave on August 14, 2011, 06:08:43 AM
use the code tags (# icon, Insert Code)

iiiiiiiiiiiiiiiiiiiiiii
wwwwwwwwwwwwwww


you can also use teletype or preformatted text and specify the type size
Title: Re: Testing text format
Post by: raleeper on August 14, 2011, 07:47:08 AM
Quote from: dedndave on August 14, 2011, 06:08:43 AM
use the code tags (# icon, Insert Code)

iiiiiiiiiiiiiiiiiiiiiii
wwwwwwwwwwwwwww


you can also use teletype or preformatted text and specify the type size

My quick searches (google and the Forum) for "# icon" and "Insert Code" don't turn up anything useful.  What's the syntax?  Also for specifying the type size.

Thanks.
Title: Re: Testing text format
Post by: jj2007 on August 14, 2011, 07:57:25 AM
Quote from: raleeper on August 14, 2011, 07:47:08 AM
My quick searches (google and the Forum) for "# icon" and "Insert Code" don't turn up anything useful.  What's the syntax?  Also for specifying the type size.

When replying, above the editbox are three ranges of icons. Select the text you want to declare as code, and click the # in the middle range.
The globe icon, for example (http://www.masm32.com/board/index.php?action=unread;all), inserts a url.../url pair around the selected code, which you have to complete with url=http...

Under Additional Options in the lower left corner you can attached zipped files up to 256k.
:thumbu
Title: Re: Testing text format
Post by: dedndave on August 14, 2011, 08:50:54 AM
http://www.masm32.com/board/Themes/default/help/posting.english.html#bbcref
Title: Re: Testing text format
Post by: raleeper on August 14, 2011, 10:09:06 AM
I'm sorry, guys.  Another dumb mistake on my part has wasted your time.

I tried preformatted and teletype in the original post.  The below is preformatted text:
-------
tab,tab, xx
      xx
8 spaces, xx
        xx
------

My mistake was thinking tabs were 4 characters.
This is preformatted.
      2 tabs before the "2"
123456789abcdef0  16 letters
                16 spaces


the "2", the space after the "0" on the next line, and the "1" in the last line are aligned in the same column in my Notepad replacement (metapad).  I didn't bother to count the spaces.  Tabs are taking up 3 character spaces, not 4, and, despite the {pre}{/pre} characters and spaces aren't the same width.

Below is the same thing with "tt" instead of "pre":

      2 tabs before the "2"
123456789abcdef0  16 letters
                16 spaces


This lines up just right in the text entry box.

I guess the answer is not to begin lines with whitespace.
Title: Re: Testing text format
Post by: dedndave on August 14, 2011, 04:37:15 PM
tabs don't work well in the forum
mainly because if you copy/paste a piece of code from the forum, the tabs are lost
Title: Re: Testing text format
Post by: Gunner on August 14, 2011, 04:41:32 PM
Quote from: dedndave on August 14, 2011, 04:37:15 PM
tabs don't work well in the forum
mainly because if you copy/paste a piece of code from the forum, the tabs are lost

Yup, the best thing to do, if you have the function in your editor is to convert tabs to spaces...
Title: Re: Testing text format
Post by: raleeper on August 14, 2011, 10:06:28 PM
Quote from: Gunner on August 14, 2011, 04:41:32 PM
Quote from: dedndave on August 14, 2011, 04:37:15 PM
tabs don't work well in the forum
mainly because if you copy/paste a piece of code from the forum, the tabs are lost

Yup, the best thing to do, if you have the function in your editor is to convert tabs to spaces...

Thanks for reminding me.  I wrote the routine for my DOS program, but never got around to including it.  And I was planning to do Convert LF format to Ascii (CVLA) soon anyway - no wait; I've done it, I just have so rarely felt a need fo it that I forgot it..  All I need to do to start assembling in lfw.exe is add the filename function (Save as .ASM).

Thanks,ral