News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Testing text format

Started by raleeper, August 14, 2011, 02:14:55 AM

Previous topic - Next topic

raleeper

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


dedndave

use the code tags (# icon, Insert Code)

iiiiiiiiiiiiiiiiiiiiiii
wwwwwwwwwwwwwww


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

raleeper

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.

jj2007

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, 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


raleeper

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.

dedndave

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

Gunner

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...
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

raleeper

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