RichMasm: an editor that remembers your formatting

Started by jj2007, April 11, 2008, 11:46:58 PM

Previous topic - Next topic

hutch--

JJ,

How is it going with the Capochino ?

Keep up the good work.  :U
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

UtillMasm

哈哈哈!

keep sleeping...zzzZzzz..zz.zzZzzzz.z.z

jj2007

Quote from: UtillMasm on May 16, 2009, 04:54:59 AM
keep sleeping...zzzZzzz..zz.zzZzzzz.z.z

Hey, wake up, the yankees are attacking!!
:toothy

UtillMasm

#33
oh my fo! software war or opium war again?
:eek

ok, we are ready. come on! :boohoo:

jj2007

Since I will have some fun with JavaScript from now on, I added support to "rich" JavaScript sources - see new version at top of thread.

For the curious ones:
- open a JavaScript source, e.g. MyTest.js
- add somewhere //OPT_JsWt   My homepage   ; start of window title
- do whatever you like to add some colour to your code - this is RTF, right?
- save the file as MyTest.asc (the RichMasm ending)

What happens when you hit F5 is that RichMasm...
1. checks for the presence of the OPT_JsWt code
2. checks if there is an open window whose title starts with My homepage (or whatever)
3. writes a plain text copy named MyTest.js (danger... no nag box asking if you really want to overwrite your precious code) to disk
4. moves the My homepage window to the foreground

Step 5 is obviously that you hit F5 again to reload the homepage.

hutch--

 :bg

jj,

Is it well enough developed to withstand its own coffee yet ?

Keep up the good work.  :U
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

jj2007

Quote from: hutch-- on July 22, 2009, 04:33:32 PM
Is it well enough developed to withstand its own coffee yet ?

No progress on the cappuccino front, sorry :8)

Quote
Keep up the good work.  :U

I'm trying hard. The source is now at slightly over 10,000 lines, and loading time starts bothering me - 2.5 seconds for the RTF/ASC version, 1.6 for its plain text version. RichEdit is powerful but not very fast...
On the other hand, the bookmarks and hyperlinks, the find listbox and the individual colouring help a lot with a source of that size. I sometimes wonder how people manage to keep control over such a source with a plain text editor... ::)

ToutEnMasm


Quote
I sometimes wonder how people manage to keep control over such a source with a plain text editor...

Good question ,seems you have understand why some IDE cut this in pieces and add a navigator of source code.Those IDE have no problem with the few lines of your source.
You are too much limited with only one window.

jj2007

#38
Quote from: ToutEnMasm on July 23, 2009, 06:46:43 AM
Quote
I sometimes wonder how people manage to keep control over such a source with a plain text editor...
Good question ,seems you have understand why some IDE cut this in pieces and add a navigator of source code. Those IDE have no problem with the few lines of your source.

Hi Yves,
Since you seem the only one world-wide who also uses RTF for a code editor, I installed yesterday your EditMasm package - 34 MB, wow! Now I wonder what you mean with "navigator"? The "Explorateur de Projet"? That only gives me a long list of procs and similar, starting with the list of my ACCELs:


Not very helpful, frankly speaking. With RichMasm, I just type e.g. OpenFile into the Find box and get a much "richer" output:


Quote
You are too much limited with only one window.
I use hyperlinks for jumping between distinct pieces of code. The destination can be in the same file, but also in another file; in this case, when you click on the link, the other file will open, and the cursor jumps right to the destination:

IMHO there is no advantage having multiple windows in the same editor instance; Alt Tab switching is more comfortable.

By the way, I could not convince EditMasm to open a file from the file dialog. It just crashes silently. Launching editmasm.exe myfile.asm works, dragging a file over the editor window should work (the cursor changes to the WM_DROPFILES type, so you are obviously using it) but it doesn't, unfortunately.

EDIT: Yves, I reinstalled EditMasm on another machine and now the FileOpen dialogs work fine. By the way, "Recent files" in the open menu would be a great thing to add. I also noticed that when you confirm the "Open" by hitting Return, EditMasm inserts a new line into the newly opened document. Another little glitch: When you close EditMasm with Alt F4, there is no box asking if you want to save the changes - that could be dangerous. Hope this helps, jj

ToutEnMasm

 :bg

Editmasm works with XP.
A source navigator is what you have not try,the RIGHT CLIC (chercher le plan) +  left clic in the "explorateur de projet" + combobox for proc.
Editmasm don't work with files,only wiht project (that is further files).
With files,you can edit them,that is only of little interest,If you try to compile them,editmasm ask you for the creation of the project (all files must be in the same directory).
No need of hyperlink to find code,the right clic is enough.




jj2007

Quote from: ToutEnMasm on July 23, 2009, 03:07:00 PM
Editmasm works with XP.
On one of my machines it works, on the other one - XP SP2 - the file dialog fails miserably.

Quote
A source navigator is what you have not try,the RIGHT CLIC (chercher le plan)

Most of the time it only extends the selection to the end of the line. Very confusing. A propos: What does the menu entry "Rechercher les confuses"??

ToutEnMasm


The use of the right clic is very complex.
Put the cursor on a word,right clic,editmasm made the rest (I have a headache explaining that)

jj2007

Yves, here is a disassembly of the failing dialog. The exception raised is 6BA:
7C812A55         FF15 0815807C             call near [<&ntdll.RtlRaiseException>]  ; ntdll.RtlRaiseException

0040D2B8        >  8D05 0A414200           lea eax, [42410A]
0040D2BE        .  8945 A4                 mov [ebp-5C], eax
0040D2C1        >  C745 A8 58000000        mov dword ptr [ebp-58], 58
0040D2C8        .  FF75 08                 push dword ptr [ebp+8]
0040D2CB        .  8F45 AC                 pop dword ptr [ebp-54]
0040D2CE        .  FF35 648C4200           push dword ptr [428C64]                 ;  editmasm.00400000
0040D2D4        .  8F45 B0                 pop dword ptr [ebp-50]
0040D2D7        .  C745 B4 469A4200        mov dword ptr [ebp-4C], 00429A46        ;  ASCII "Tous"
0040D2DE        .  FFB5 94FDFFFF           push dword ptr [ebp-26C]
0040D2E4        .  8F45 C4                 pop dword ptr [ebp-3C]
0040D2E7        .  68 A00F0000             push 0FA0
0040D2EC        .  8F45 C8                 pop dword ptr [ebp-38]
0040D2EF        .  FF75 14                 push dword ptr [ebp+14]
0040D2F2        .  8F45 CC                 pop dword ptr [ebp-34]
0040D2F5        .  FF75 18                 push dword ptr [ebp+18]
0040D2F8        .  8F45 D0                 pop dword ptr [ebp-30]
0040D2FB        .  FF75 A4                 push dword ptr [ebp-5C]
0040D2FE        .  8F45 D4                 pop dword ptr [ebp-2C]
0040D301        .  C745 D8 139A4200        mov dword ptr [ebp-28], 00429A13        ;  ASCII "Ouvrir Fichier"
0040D308        .  C745 C0 02000000        mov dword ptr [ebp-40], 2
0040D30F        .  C745 DC 003A0800        mov dword ptr [ebp-24], 83A00
0040D316        .  8D45 A8                 lea eax, [ebp-58]
0040D319        .  50                      push eax                                ; /pOpenFileName = 0012FAB0
0040D31A        .  E8 B1160100             call <jmp.&comdlg32.GetOpenFileNameA>   ; \GetOpenFileNameA


ToutEnMasm


If it is for the open file dialog problem,no need of that.Upgrade your XP and all will be OK.

jj2007

Quote from: ToutEnMasm on July 24, 2009, 05:00:17 AM

If it is for the open file dialog problem,no need of that.Upgrade your XP and all will be OK.


You are really funny - you should work for Microsoft :cheekygreen:

By the way: I do use the open file dialog in RichMasm, without problems :bg