Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:26 12 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMEdit V5

     Page 16 of 19    
Author Message
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 12:02am 11 Nov 2022
Copy link to clipboard 
Print this post

Thanks Jim, But (why is there always a 'but') my settings look like yours

Apart from the %q% replacing the single quote in yours.
The 'use batch file' box is ticked
There is no ext1 or ext2 in my MMEdit5.inf file.
The batch file is there in c:\program files\MMEdit5\ along with MMBasic et al.

Now when I click on the little gear icon nothing happens apart from a very brief blink of the display as if the focus is briefly going elsewhere.

Sorry.
Bill
Keep safe. Live long and prosper.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 12:14am 11 Nov 2022
Copy link to clipboard 
Print this post

  Quote  You can save a bit of typing by putting this in your MMEdit.inf file:

Ext2 = test DOS|%q%%baspath%%q%|%q%%mmepath%runhere%q%|%q%%baspath%%q% %q%%mmepath%MMBasic.exe%q% %q%%bas%%q%

Add it with MMEdit shut down and change Ext2 to Ext1 or whatever to keep the sequence correct if needed.


I wasn't sure whether I need to add this to MMEdit5.inf still or, if so, where to add it. I have not done it.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 01:50am 11 Nov 2022
Copy link to clipboard 
Print this post

No Bill, the original DOS settings should work without any changes other than ticking the 'use batch' box.
You can now use a single quote instead of %q% for the double quote place holders. Either way will work. The single quote is easier to see whats happening.

The 'test' button will show you what the filled out commands look like for the current bas file.

Can you show me what your settings are. Either a screen dump of the setting page or the Ext0 = line from your MMEdit.inf

Jim
VK7JH
MMedit
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 02:30am 11 Nov 2022
Copy link to clipboard 
Print this post

Here they are Jim:



  .inf said  External hot link = 0
Ext0 = Run in DOS|%q%%baspath%%q%|%mmepath%MMBasic.exe|%q%%bas%%q%|1

[New File Text]


The paths in the TEST box look correct.
I didn't bother to change the quotes.
I'm sure it is some simple thing that I am not grasping.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 02:49am 11 Nov 2022
Copy link to clipboard 
Print this post

Everything looks OK and the same as mine.
Can you try with this simple program. Save it in your AAC folder.

'test program
PRINT cwd$
FILES


Jim

Edit:
I notice that there are no quotes around the path to the exe. They will be needed due to the space in Program Files.
Either %q% or ' each end and you should be under way.
Edited 2022-11-11 12:52 by TassyJim
VK7JH
MMedit
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 03:16am 11 Nov 2022
Copy link to clipboard 
Print this post

It would not run from MMEdit5 so I selected 'open with' > MMBasic.exe and got this. I don't know where the copy of MMBasic is that was run but it's not in system32.

  Quote  Windows MMBasic Ver 5.05.05
Copyright 2011-2021 Geoff Graham

C:\Windows\system32
Volume in drive C is OS
Volume Serial Number is 701A-3BBE

Directory of C:\Windows\system32

09/11/2022  10:25 PM    <DIR>          .
09/11/2022  10:25 PM    <DIR>          ..
07/12/2019  08:19 PM    <DIR>          0409


I tried it with MMEdit4 and got the same result. EditSA still works from MMEdit4 though.

Bill

By the way, the version of MMBasic that you are supplying is not the latest it's 5.05.04
Keep safe. Live long and prosper.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 03:23am 11 Nov 2022
Copy link to clipboard 
Print this post

I dragged the test program into the MMBasic.exe in the MMEdit5 folder and got the same result.

I don't know what the changes to MMBasic 5.05.05 are because Geoff does not do a change log for it.

Bill
Keep safe. Live long and prosper.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 03:50am 11 Nov 2022
Copy link to clipboard 
Print this post

Sorry to keep bombarding you but I don't know what is relevant.

just noticed that if I change the syntax to DOS it reverts to 'rpi' each time. The .inf file shows:

  Quote  Word Wrap = 1
Default syntax = rpi
Preserve first line = 1
Folding keywords = sub function csub cfunction definefont


I thought that should change?

Bill
Edited 2022-11-11 13:55 by Turbo46
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 04:39am 11 Nov 2022
Copy link to clipboard 
Print this post

Did you add the quotes to the 'Path to external program'?
'%mmepath%MMBasic.exe'


Getting the system32 starting folder when you 'open with' from Windows Explorer demonstrates the problem I was having. Windows thinks it knows best and can be difficult to tame sometimes. That's why I went with the batch file.

To change the default syntax, select it in the Syntax menu then select the last entry: Set default syntax...



I must put a popup to acknowledge the change.


I will update the version of MMBasic I include - thanks.
VK7JH
MMedit
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 05:27am 11 Nov 2022
Copy link to clipboard 
Print this post

  Quote  Did you add the quotes to the 'Path to external program'?

No I didn't because it had the %q% there instead and you said the either/or is OK. If you check the screen shot above you will see them.

Then I checked again and they were gone? Don't know how.

So I entered the single quotes as per your example and IT WORKS!

Tried a few times just to be sure to be sure and it's still working.

Sorry about the 'set default syntax' thing I just expected it to save the last one used as MMEdit4 does.  It would be nice if you could indicate what the current default syntax is somehow though.

The little icon 'syntax help' does nothing, should it? or have I broken something. Syntax help on the help menu works.

Bill
Edited 2022-11-11 15:27 by Turbo46
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 06:03am 11 Nov 2022
Copy link to clipboard 
Print this post

Your screen shot shows the %q% missing.



The default syntax is the syntax set when MMEdit starts.
After that, any newly opened file will use the syntax that the last active file is using.
That syntax is displayed in the status bar at the bottom of the window.

The quickest way to get syntax help for the keyword under the cursor is shift-F1
The Syntax help button currently only shows the 'one line' brief help. I will change that to full help.

Your comments are useful and helping MMEdit run a bit more smoothly.

Jim
VK7JH
MMedit
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 06:19am 11 Nov 2022
Copy link to clipboard 
Print this post

  Quote  Your screen shot shows the %q% missing.

Of course it does, I was confusing it with the starting folder.

And sorry I didn't notice the default syntax in the status bar.

Now MMEdit5 is crashing when I'm trying to save a new default syntax.    No more. I'm going to pour myself a drink and do other things.

Thanks for your patience.

Bill
Keep safe. Live long and prosper.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 11:06pm 11 Nov 2022
Copy link to clipboard 
Print this post

MMEdit5 crashes after setting the default syntax a few times. I can't find a pattern yet, sometime I can change syntax repeatedly and it just works.

More on that: it is now in a state where I load MMEdit5 (no program) default syntax: DOS, load a small program, go > syntax > CMM2 and it crashes every time. But next time after loading the program, I clicked on the little gear icon to run in DOS and it worked, now it's back to normal, I can change the syntax with no problems!.0

So now I removed the program from MMEdit5. Closed it (no program, default syntax CMM2). Then relaunch it, load the program. Go > syntax > DOS --- CRASH!

Reset the PC, repeat, same result.

Sometimes, if I have no program loaded, it refuses to change the syntax. Even though the new syntax is ticked in the list, it still displays the old syntax in the status bar. When I reload it, the old syntax is now ticked and displayed in the status bar. Then it may start working again and I can change the syntax and the default syntax flawlessly.

I noticed that if you change the syntax to DOS 'DOS' is written in the status bar but next time you load MMEdit5 'dos' (lowercase) is displayed in the status bar.

Sorry if this is confusing, if I can expand on anything please let me know.

Bill
Keep safe. Live long and prosper.
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1111
Posted: 12:13am 12 Nov 2022
Copy link to clipboard 
Print this post

Hi Jim,

Perhaps unrelated but I have a problem with syntax help in the Linux version of MMEdit5


Positioning the cursor over a command - OPTION in this case - and pressing F1 just brings up a blank shaded box below the cursor



Shift F1 works fine bringing up the full syntax help window.

Thanks again for a great program.
Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 12:43am 12 Nov 2022
Copy link to clipboard 
Print this post

I have a problem with that as well now that you mention it:

Run MMEdit5 with no program, load a program, click on a keyword,  press F1, syntax is displayed, click elsewhere in the program > CRASH!

Actually with my laptop I have to press Fn and F1 but I doubt that's part of the problem.

It works OK when MMEdit5 is run with a program already loaded.

NOTE: These crashes take about 2 seconds to happen on my laptop after whatever causes it

Bill
Keep safe. Live long and prosper.
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1111
Posted: 01:55am 12 Nov 2022
Copy link to clipboard 
Print this post

Bill/Jim,

I have never had a problem of crashes with the Linux version.

Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 02:04am 12 Nov 2022
Copy link to clipboard 
Print this post

Doug,

Have you tried testing these sequences? They are consistently repeatable for me.

I removed the program from MMEdit5. Closed it (no program, default syntax CMM2). Then relaunch it, load the program. Go > syntax > DOS --- CRASH!

Run MMEdit5 with no program, load a program, click on a keyword,  press F1, syntax is displayed, click elsewhere in the program > CRASH!

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 03:09am 12 Nov 2022
Copy link to clipboard 
Print this post

Doug,
In the Linux version I am unable to show the help in the popup.(not my fault this time)
It is shown in the status bar at the bottom of the window. It replaces the file name until you move the cursor to a different line.

The Windows version can display the popup help but it also uses the status line.

I find holding the help while entering the rest of the line very convenient.

Bill,
I have found where I converted the syntax to lower case and have fixed it. It shouldn't have caused a crash anyway so I have more looking to do.

The crash after F1 I can repeat here. I will chase that one down as well. Lucky it is going to be wet here tomorrow...

Jim
VK7JH
MMedit
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 03:17am 12 Nov 2022
Copy link to clipboard 
Print this post

Thanks Jim,

I have gone back to MMEdit4 for now.

It will be bloody wet tomorrow if you get what we just had in SA.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 12:36am 13 Nov 2022
Copy link to clipboard 
Print this post

I have squashed the bugs exposed by Bill and uploaded a new version to my website. I have even included an update for RPi.
Some of the bugs were rather obscure and I thank Bill for his reports with advice on how to reproduce them.

  Quote  13 Nov
Fixed numerous bugs with selecting syntax
Fixed crash with syntax help (F1)
Fixed Help toolbar icon action.
Fixed tab selection bug after deleting tab

11 Nov 2022
Fixed bug in 'Insert file'
Reworked External Program settings to fix starting folder bug.


With the Syntax Help button, if your text cursor is in a keyword, the button opens the help at that page, otherwise it opens the help index.

I have now started increasing the version number with each update.

Jim
VK7JH
MMedit
 
     Page 16 of 19    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025