The MASM Forum

Specialised Projects => Assembler/Compiler Technology => Topic started by: i Z ! on February 21, 2020, 07:58:20 AM

Title: Syntax highlighter anyone?
Post by: i Z ! on February 21, 2020, 07:58:20 AM
Download the free version of ACE ASM Editor...

Either here, on my website or from the Microsoft Store.

It supports only syntax highlighting with a full text editing toolset.
It recognizes local variables in procedures excluding the ones from other procedures, vars defined by PUBLIC keyword and vars defined in data segments.


Should work with Vista and above.

Keyboard shortcuts:

Ctrl+PgUp/PgDn - navigate cursor to previous/next SEGMENT, procedure or other block definition (you can also use these in combination with the Shift key to select whole or parts of code blocks)

Ctrl+Up/Down Arrows - Scroll up/down

---------------------
Copies/cuts the whole line when nothing is selected.

---------------------

 … and more in this new version
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 21, 2020, 09:12:07 AM
Choose custom colors and fonts for each of these sections:

(https://e9lmdg.am.files.1drv.com/y4m8nr-q6Q3tl8QZa4vnQZzqsZITLLqxzLXQSh9xK2RTd-Jwxg8n72anF755feT36gNdGv4m6e0JHaTJOTHqb7shgUJbEtb6MkYgR4bWm4z_8NAlsSa7Y2ryAPASXJkNIkX9hgLB_mjjih_4zT6frG0NNJjLK1Ee2-TCctD-gKN5NWzJBniPx757s-abyivOw8m33X77nGnigZlb5CM26bs4g?width=1147&height=1946&cropmode=none)
(https://e9lndg.am.files.1drv.com/y4myEYvEA2m8j_KSKF5QiDls-cGxWleyGMt6tKmgLrrvwgQvFgpLrKctXK4eyR0IeIwUqWa4fdboK-rENpdoCIlMWHzbRQJ1hZxgikm6sfeGFnolsYr55UPbQqEgGXsDWkQfwEMzeiP_TSMAEDAxZuOrdgYnfNTkC_0zr9fTDclOolMfj8AFK2XUcYWezRO7aJ75P3ixpB5MwYIBOWbFuyPSQ?width=1160&height=1026&cropmode=none)
Title: Re: Syntax highlighter anyone?
Post by: jj2007 on February 21, 2020, 12:51:00 PM
.NOT?
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 21, 2020, 08:59:25 PM
Hi jj, thanks for tryin' it out.

Seems like you're having some problems with the installer.. That's strange, cause I've successfully tested it on Win 10 Home... You did run it "as Admin", right?

Anyhow, I'm gonna attach "ACE Free Raw.zip". It contains program files so you can put the app where ever you want.
Title: Re: Syntax highlighter anyone?
Post by: jj2007 on February 21, 2020, 09:58:31 PM
That one starts properly :thumbsup:

The good news is it does load one of my sources. The bad news... see below. This source has 640kBytes. Is ACE suitable only for smaller sources? This is Win7-64 :cool:

Btw the readme.rtf is not readable in MS Word or Wordpad (and surely not in ACE, qEditor, Notepad++, UltraSlowEdit etc). You can open it, though, in RichMasm. With Ctrl A for "select all", you will be able to see the white text. Alternatively, press Ctrl G, type udc=6 and hit Return. With userdefined colour scheme #6, it becomes readable.
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 21, 2020, 10:20:47 PM
This source has 640kBytes. Is ACE suitable only for smaller sources?

640 kB? Uhh… That's a lot, I only tested it to up to 2000 lines. But it should work with larger files, it will take some time for the text to be formatted after you open a large document.

But it's still probably not bug free, so maybe only one of the lines throws an error.

Thanks again for testing.
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 21, 2020, 10:45:56 PM
jj, can you please disable the syntax highlighting under Options>Fonts&Colors and see if you still get the error?
Title: Re: Syntax highlighter anyone?
Post by: HSE on February 21, 2020, 11:02:36 PM
... "ACE Free Raw.zip".

It's a convention that README file always have format .txt ; Help is .txt, .hlp or .chm; and Guide how you want (usually .pdf)

Background color fail, and comments color also fail.
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 21, 2020, 11:21:57 PM
It's a convention that README file always have format .txt ; Help is .txt, .hlp or .chm; and Guide how you want (usually .pdf)

You're right, but this one is supposed to be an internal file.  You can read it by opening Help from menu. I haven't updated the readme for the free version yet, most of it applies to the full version.
Title: Re: Syntax highlighter anyone?
Post by: HSE on February 21, 2020, 11:39:35 PM
Also Help fail.
Title: Re: Syntax highlighter anyone?
Post by: jj2007 on February 22, 2020, 12:02:16 AM
The syntax highlighting is not the only culprit for the crash, i.e. disabling won't help.
I've tried now with a 400kBytes file \Masm32\MasmBasic\MasmBasic.inc (part of MasmBasic (http://masm32.com/board/index.php?topic=94.0)), and that works fine, but when you activate syntax highlighting, it becomes unresponsive for a while, and then crashes.

Attached a readme.rtf with proper colours, plus a medium-sized source (105kB) that works fine but takes a whopping 12 seconds to load. For comparison: 0.2 seconds with RichMasm (http://masm32.com/board/index.php?topic=5314.0).
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 22, 2020, 12:04:46 AM
Background color fail, and comments color also fail.

Thanks for the feedback, I'll take a look into back colors and comments today.
Title: Re: Syntax highlighter anyone?
Post by: jj2007 on February 22, 2020, 12:19:04 AM
I tried with another 400kB file, and had to kill it in task manager after 4 minutes at 100% cpu load.

Btw \Masm32\include\windows.inc is always a good candidate for finding the bug (977412 bytes). Make a backup first :tongue:
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 22, 2020, 05:46:17 PM
I tried with another 400kB file, and had to kill it in task manager after 4 minutes at 100% cpu load.

Btw \Masm32\include\windows.inc is always a good candidate for finding the bug (977412 bytes). Make a backup first :tongue:

I'll have to implement some background partial formatting so...
That's a good idea for testing, thanks. It shouldn't damage files in case of crash though :)
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 22, 2020, 06:00:00 PM
btw, thanks jj for explanation and .rtf in your previous reply, I didn't notice it 'til now.
Yeah, it used to be readme.html and then I just copy pasted it into .rtf :)
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on February 22, 2020, 06:23:17 PM
Also Help fail.

You can read it here as well:
http://ace-web.space/readme.html#kybdref (http://ace-web.space/readme.html#kybdref)
Title: New FREE Version
Post by: i Z ! on April 27, 2020, 01:04:11 AM
Hello everyone,

Good news, a new version is here. It lets you place markers in code for quick navigation and a tool for easy selection of text. Also offers quick jump to lines on screen.
Formatting speed greatly improved too.
Please give it a go and write comments.
jj2007: If you have time, please test some of your big files.. and backup just in case:)
Title: Re: Syntax highlighter anyone?
Post by: jj2007 on April 27, 2020, 04:58:32 AM
New version, old problems. Btw half a megabyte for an editor is a bit heavy. RichMasm has a quarter of that.
Title: Re: Syntax highlighter anyone?
Post by: i Z ! on April 27, 2020, 05:16:01 AM
jj2007: Thanks for launching... I find it a bit strange though, because I had my friend test it - he's also running Win 7 ...
I'll try to make the 'raw' version soon.

With regards to file size, it might be because of the imported libraries (WPF - very useful) ...
Title: Features
Post by: i Z ! on April 27, 2020, 08:55:10 PM
Here's a sum-up of recent changes and improvements:



- rewritten base procedures for analyzing lines

-  the old version didn't recognize (or has misrepresented) the line breaks in documents that were saved by some other apps

- faster text formatting,

 - applies casing to variables, registers, labels and procedures as it is written in the definition line

- applies casing to opcodes the way it is defined in Opcode list menu option

- ability to switch between preferred casing for formatting of registers

- quick navigation tool added - place up to nine markers in document

 - quick selection tool added - set selection start and end with keyboard shortcuts or from the menu

- undo/redo commands now work properly

- additional menu appearance settings,

- quick jump to lines on screen improved and available also in ordinary text editing mode

- correction of color issues

-----------------------------------------------------------------

Now available for downloading also at http://silverfox.systems/ace/Downloads.aspx (http://silverfox.systems/ace/Downloads.aspx)

Title: Re: Features
Post by: jj2007 on April 27, 2020, 10:28:13 PM
Now available for downloading also at http://silverfox.systems/ace/Downloads.aspx (http://silverfox.systems/ace/Downloads.aspx)

Same problem as before: exception and no access to silverfox path etc etc
Quote
Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.

************** Testo dell'eccezione **************
System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.
   in Install_ACE___ASM_Code_Editor___Free_Version.Form1.doit()
   in Install_ACE___ASM_Code_Editor___Free_Version.Form1.Button1_Click(Object sender, EventArgs e)
   in System.Windows.Forms.Control.OnClick(EventArgs e)
   in System.Windows.Forms.Button.OnClick(EventArgs e)
   in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.ButtonBase.WndProc(Message& m)
   in System.Windows.Forms.Button.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assembly caricati **************
mscorlib
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.3468.0 built by: NET472REL1LAST_C
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Install ACE - ASM Code Editor - Free Version
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Users/Jochen/Downloads/Install%20ACE%20-%20ASM%20Code%20Editor%20-%20Free%20Version.exe
----------------------------------------
Microsoft.VisualBasic
    Versione assembly: 10.0.0.0
    Versione Win32: 14.6.1099.0 built by: NETFXREL4STAGE
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.3451.0 built by: NET472REL1LAST_C
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.3570.0 built by: NET472REL1LAST_B
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.3515.0 built by: NET472REL1LAST_C
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.3221.0 built by: NET472REL1LAST_C
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.3324.0 built by: NET472REL1LAST_C
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.3221.0 built by: NET472REL1LAST_C
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.3221.0 built by: NET472REL1LAST_C
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
mscorlib.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.6.1055.0 built by: NETFXREL2
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.6.1055.0 built by: NETFXREL2
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Debug JIT **************
Per abilitare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
abilitato.

Ad esempio:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Quando il debug JIT è abilitato, tutte le eccezioni non gestite
vengono inviate al debugger JIT registrato nel computer,
anziché essere gestite da questa finestra di dialogo.
Title: Some feedback for ACE Free version pls...
Post by: i Z ! on May 17, 2020, 04:39:26 AM
I can see there's been almost 20 downloads altogether. Can some of you please provide some feedback - any crashes or such...?