Author Topic: A guide to the RichMasm editor  (Read 4673 times)

FORTRANS

  • Member
  • ****
  • Posts: 941
Re: A guide to the RichMasm editor
« Reply #30 on: July 12, 2017, 02:01:10 AM »
Hi,

   Just for feedback, a screenshot.

HTH,

Steve

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 7460
  • Assembler is fun ;-)
    • MasmBasic
Re: A guide to the RichMasm editor
« Reply #31 on: July 12, 2017, 04:12:43 AM »
Hi Steve,

The lines are wrapped. What's your screen resolution? Mine is 1366x768, and even with enlarged fonts they are not long enough to wrap. Or did you mean something else?

Jochen

FORTRANS

  • Member
  • ****
  • Posts: 941
Re: A guide to the RichMasm editor
« Reply #32 on: July 12, 2017, 05:10:38 AM »
Hi Jochen,

The lines are wrapped. What's your screen resolution?

   Usually 1024x768.  Sometimes higher, though not very often.

Quote
Mine is 1366x768, and even with enlarged fonts they are not long enough to wrap. Or did you mean something else?

   Well, yes the lines wrap, but I just thought you might find it
useful to see your work on another's system.  Maybe the colors
and fonts are different for instance.  You may try to have all your
computers set up similarly.  I used to do that a while back, and
had some odd results when one of my programs was used on
someone else's computer.  (Code page different I think.)

Regards,

Steve N.

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 7460
  • Assembler is fun ;-)
    • MasmBasic
Re: A guide to the RichMasm editor
« Reply #33 on: July 12, 2017, 05:25:26 AM »
Well, yes the lines wrap, but I just thought you might find it useful to see your work on another's system.  Maybe the colors and fonts are different for instance.

Colours and fonts look similar, but 1024x768 is indeed a bit low for today's standards. Anyway, it's the browser who decides when to wrap lines.

But I understand the problem very well. Often, pages just look garbled, OK buttons are below the visible area, etc - messy sites made by professional web developers who only made one small mistake: to assume that the user also has that great 4k screen that a decent IT professional is entitled to enjoy 8)

HSE

  • Member
  • ****
  • Posts: 522
  • <AMD>< 7-32>
Re: A guide to the RichMasm editor
« Reply #34 on: July 12, 2017, 06:40:19 AM »
Good practice is:
Code: [Select]
include \masm32\MasmBasic\MasmBasic.inc         ; download
  if 0  ; copy the line below, then hit F6 to get the db version
        chartab                 dw "10","01","12","21","13","31"
        ; expected output:
        chartab                 db "0","1","1","0","2","1","1","2","3","1","1","3"
  endif
  Init                          ; *** translate Masm dw format to db for use with UAsm ***
  Let esi=Clip$()               ; get string from clipboard (limit is about 160k)
  lea ecx, [2*Len(esi)]         ; the byte format is longer, so we need a bigger buffer
  Let edi=New$(ecx)
  push esi
  push edi
  .Repeat
        lodsb
        If_ al=="w" Then mov al, "b"    ; dw->db
        stosb
        .Break .if !al
        .if al==34
                push [esi]
                lodsb
                movsb           ; first digit
                mov al, 34
                stosb
                mov al, ","
                stosb
                mov al, 34
                stosb
                pop eax
                stosb           ; second digit
                movsb           ; second quote
        .endif
  .Until 0
  pop edi
  pop esi
  Inkey "Before: ", esi, CrLf$, "After:  ", edi, CrLf$, "Copy to clipboard? (y)", CrLf$
  If_ eax=="y" Then SetClip$ edi
EndOfCode
And everybody can to choose colors :biggrin:

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 7460
  • Assembler is fun ;-)
    • MasmBasic
Re: A guide to the RichMasm editor
« Reply #35 on: July 12, 2017, 07:12:00 AM »
Good practice is:

So why do almost all IDEs and many programming sites come along with syntax highlighting? Bad practice?

HSE

  • Member
  • ****
  • Posts: 522
  • <AMD>< 7-32>
Re: A guide to the RichMasm editor
« Reply #36 on: July 12, 2017, 08:11:17 AM »
In the box is more easy to copy!!

LATER: I also have configurated 1024x768

FORTRANS

  • Member
  • ****
  • Posts: 941
Re: A guide to the RichMasm editor
« Reply #37 on: July 12, 2017, 10:28:40 PM »
Hi,

   BTW, if I have a choice of wrapped comments or uncommented
code, I choose having wrapped comments.  Many denizens of
this forum seem to like uncommented code though.  Maybe they
have a phobia of wrapping.  <g>

Cheers,

Steve

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 7460
  • Assembler is fun ;-)
    • MasmBasic
Re: A guide to the RichMasm editor
« Reply #38 on: July 13, 2017, 12:36:56 AM »
In the box is more easy to copy!!

That was before the Mozilla "coders" decided to disable the Code: [Select] function :(

I have a choice of wrapped comments or uncommented code, I choose having wrapped comments.

The code box doesn't wrap them, that may look better but to read them you have to click the horizontal scroll bar. Not the best solution either :icon13:

  Recall Utf8$(wCL$()), L$()    ; translate the file supplied through the (Unicode) commandline to a text array (if the file is Unicode, the strings will be in UTF-8 format; if needed, you can get Unicode back with wRec$(L$(n)) - see also ConvertCp$)


Code: [Select]
  Recall Utf8$(wCL$()), L$() ; translate the file supplied through the (Unicode) commandline to a text array (if the file is Unicode, the strings will be in UTF-8 format; if needed, you can get Unicode back with wRec$(L$(n)) - see also ConvertCp$)