The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
September 25, 2021, 02:53:45 AM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Campus
| | |-+  RichMasm: an editor that remembers your formatting
« previous next »
Pages: 1 2 [3] 4 Print
Author Topic: RichMasm: an editor that remembers your formatting  (Read 52570 times)
hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: RichMasm: an editor that remembers your formatting
« Reply #30 on: May 16, 2009, 04:26:34 AM »

JJ,

How is it going with the Capochino ?

Keep up the good work.  ThumbsUp
Logged

Regards,



Download site for MASM32
http://www.masm32.com
UtillMasm
Member
*****
Posts: 560

Please use a non offensive avatar


Re: RichMasm: an editor that remembers your formatting
« Reply #31 on: May 16, 2009, 04:54:59 AM »

哈哈哈!

keep sleeping...zzzZzzz..zz.zzZzzzz.z.z
Logged
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #32 on: May 16, 2009, 07:20:23 AM »

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

Hey, wake up, the yankees are attacking!!
 tgrin
Logged

UtillMasm
Member
*****
Posts: 560

Please use a non offensive avatar


Re: RichMasm: an editor that remembers your formatting
« Reply #33 on: May 16, 2009, 09:39:18 AM »

oh my fo! software war or opium war again?
Eek

ok, we are ready. come on! boohoo
« Last Edit: May 17, 2009, 03:54:38 AM by UtillMasm » Logged
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #34 on: July 22, 2009, 10:41:51 AM »

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.
Logged

hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: RichMasm: an editor that remembers your formatting
« Reply #35 on: July 22, 2009, 04:33:32 PM »

 BigGrin

jj,

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

Keep up the good work.  ThumbsUp
Logged

Regards,



Download site for MASM32
http://www.masm32.com
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #36 on: July 22, 2009, 09:47:26 PM »

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

No progress on the cappuccino front, sorry Cool

Quote
Keep up the good work.  ThumbsUp

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... Roll Eyes
Logged

ToutEnMasm
Member
*****
Gender: Male
Posts: 1555


FA is a musical note to play with cl


Re: RichMasm: an editor that remembers your formatting
« Reply #37 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.
You are too much limited with only one window.
Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #38 on: July 23, 2009, 08:04:42 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
« Last Edit: July 23, 2009, 12:25:33 PM by jj2007 » Logged

ToutEnMasm
Member
*****
Gender: Male
Posts: 1555


FA is a musical note to play with cl


Re: RichMasm: an editor that remembers your formatting
« Reply #39 on: July 23, 2009, 03:07:00 PM »

 BigGrin

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.



Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #40 on: July 23, 2009, 06:09:16 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"??
Logged

ToutEnMasm
Member
*****
Gender: Male
Posts: 1555


FA is a musical note to play with cl


Re: RichMasm: an editor that remembers your formatting
« Reply #41 on: July 23, 2009, 07:00:07 PM »


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)
Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #42 on: July 23, 2009, 07:32:10 PM »

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

Code:
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

Logged

ToutEnMasm
Member
*****
Gender: Male
Posts: 1555


FA is a musical note to play with cl


Re: RichMasm: an editor that remembers your formatting
« Reply #43 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.
Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #44 on: July 24, 2009, 06:31:40 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 BigGrin
Logged

Pages: 1 2 [3] 4 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!