Pages: 1 2 [3] 4
|
 |
|
Author
|
Topic: RichMasm: an editor that remembers your formatting (Read 65138 times)
|
hutch--
Administrator
Member
    
Posts: 12013
Mnemonic Driven API Grinder
|
JJ, How is it going with the Capochino ? Keep up the good work. 
|
|
|
Logged
|
|
|
|
UtillMasm
|
哈哈哈!
keep sleeping...zzzZzzz..zz.zzZzzzz.z.z
|
|
|
Logged
|
|
|
|
jj2007
|
keep sleeping...zzzZzzz..zz.zzZzzzz.z.z
Hey, wake up, the yankees are attacking!! 
|
|
|
Logged
|
|
|
|
UtillMasm
|
oh my fo! software war or opium war again?  ok, we are ready. come on! 
|
|
« Last Edit: May 17, 2009, 03:54:38 AM by UtillMasm »
|
Logged
|
|
|
|
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.
|
|
|
Logged
|
|
|
|
hutch--
Administrator
Member
    
Posts: 12013
Mnemonic Driven API Grinder
|
 jj, Is it well enough developed to withstand its own coffee yet ? Keep up the good work. 
|
|
|
Logged
|
|
|
|
jj2007
|
Is it well enough developed to withstand its own coffee yet ?
No progress on the cappuccino front, sorry  Keep up the good work.  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... 
|
|
|
Logged
|
|
|
|
ToutEnMasm
Member
    
Gender: 
Posts: 1555
FA is a musical note to play with cl
|
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
|
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:  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: 
Posts: 1555
FA is a musical note to play with cl
|
 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
|
Editmasm works with XP.
On one of my machines it works, on the other one - XP SP2 - the file dialog fails miserably. 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: 
Posts: 1555
FA is a musical note to play with cl
|
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
|
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
|
|
|
Logged
|
|
|
|
ToutEnMasm
Member
    
Gender: 
Posts: 1555
FA is a musical note to play with cl
|
If it is for the open file dialog problem,no need of that.Upgrade your XP and all will be OK.
|
|
|
Logged
|
|
|
|
jj2007
|
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  By the way: I do use the open file dialog in RichMasm, without problems 
|
|
|
Logged
|
|
|
|
|
Pages: 1 2 [3] 4
|
|
|
 |