Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:40 28 Nov 2024 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 V 5.1

     Page 7 of 8    
Author Message
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 03:17am 11 Jun 2023
Copy link to clipboard 
Print this post

Hi Jim, I'm not running the latest version yet, but somehow I lost the MMEdit's known location of my INCLUDE files, probably my fault because I think I renamed the folder without telling MMEdit.  

I went back a couple of posts and found how to tell MMEdit where it was so that's now OK. I don't know if that method is documented yet but it would be good if the location could be set in 'preferences', I think that is a more intuitive way to do it if that is possible.

Bill

PS. As I write this I think I may have said it before, if so, I apologise.
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 04:46am 11 Jun 2023
Copy link to clipboard 
Print this post

  Quote   probably my fault because I think I renamed the folder without telling MMEdit.  

A sure way to confuse MMEdit

  Quote  it would be good if the location could be set in 'preferences', I think that is a more intuitive way to do it if that is possible.


I have finally started to add things to Preferences so I will put it on the list.

Jim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 04:54am 11 Jun 2023
Copy link to clipboard 
Print this post

Thanks Jim.  

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 06:53am 11 Jun 2023
Copy link to clipboard 
Print this post



For Bill.

No change to the version.

Jim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 07:00am 11 Jun 2023
Copy link to clipboard 
Print this post

Thanks Jim, Brilliant!  

Bill
Keep safe. Live long and prosper.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 04:49am 12 Jun 2023
Copy link to clipboard 
Print this post

Hi Jim,

Just having a few funnies with MMEDIT.

I have been working with MMBasic DOS and hadn't noticed before but some keywords are not being high-lighted. I added them to BOTH DOS tkn files and now they work but I'm sure they were OK before?
I added the last line.

  Quote  string string$ string$( system tab tab( tan tan( text time time$ timer to triangle ucase
ucase$ ucase$( val val( wedit xor
print local loop then until next for


Another thing, when I first start MMEdit hardly any keywords are high-lighted:



If I change the syntax all high-lighting returns

One more thing, it always seems to want to start up with the syntax set to 'Maximite' no matter what syntax I was using.

I hope I have explained that clearly enough.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 05:07am 12 Jun 2023
Copy link to clipboard 
Print this post

As part of supplying the two lists - true keywords and keywords+parameters,
I decided to scrape the source code to create the lists. This works reasonably well but there are many differences between the source code structures and I managed to miss a few keywords.
I found many of them but, as you have discovered, I managed to miss some.

To set the default keyword list, select it from the menu then select the last item "Set current syntax as default".
This should be working but I have to get it to tick the menu item (and show the correct menu list.

Jim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 05:22am 12 Jun 2023
Copy link to clipboard 
Print this post

I just set the default syntax to DOS and when restart MMEdit the syntax is set to MMB4W. I did it several times and it does it each time. Again, not many keywords are highlighted first up.

Set the default to CMM2 and when it is restarted it is set to Micromite. It seems to be almost as confused as me.  

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 05:57am 12 Jun 2023
Copy link to clipboard 
Print this post

I found a spot where I hadn't updated to account for the dual syntax menus
I think/hope I have fixed it now.

I will try and upload the fix later today but in the mean time,
remember that you can put the desired syntax directive in the first line of your program
 'Desk clock kw\picomite


Keyword file names with the trailing underscore are keywords only. Without the underscore, they include the parameters.

Jim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 06:26am 12 Jun 2023
Copy link to clipboard 
Print this post

Thanks Jim, Please, no rush, once you know it's only a click or two to fix.

For some reason I thought that the syntax remained at the last setting.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 06:59am 12 Jun 2023
Copy link to clipboard 
Print this post

MMEdit V5.1.7 has been uploaded.

It is a bug-fix version addressing the syntax file selection highlighted by Bill.

Jim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 04:19am 13 Jun 2023
Copy link to clipboard 
Print this post

Thanks Jim, That seems to work well now. Not the first time but it did the second time and thereafter, I guess it needed to change the tkn file.

When edited the DOS.tkn file earlier to add the missing keywords, I made a copy first. I noticed with this new version that there was a new item in the syntax selection 'DOS - Copy' I don't think it was there before. Anyway, I deleted the copied tkn file and that fixed that.

Thanks again.

Bill
Keep safe. Live long and prosper.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 03:29am 14 Jun 2023
Copy link to clipboard 
Print this post

Sorry Jim, but I've come across another 'funny' thing. I down loaded the program from this post, opened the zip and double clicked the .bas file (I have .bas associated with MMEdit). The file came up without any highlighting, the default syntax was DOS as I had set it but the little box down the bottom said 'txt'.

Clicking on syntax > DOS fixes it of course but it seems that opening a bas file from inside a zip confuses it a little.

I zipped one of my own Basic files and repeated the procedure and got the same result. Oddly enough SUB and FUNCTION are highlighted but the tkn files contain no entries to highlight.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 08:08am 14 Jun 2023
Copy link to clipboard 
Print this post

SUB and FUNCTION are sued for code folding so they will always appear as a keyword.

That's the easy one to answer.

I tried double clicking on the life.bas file from within the zip and it opened with my default syntax as it should.

I have found that I can't drag a uf2 file from a zip onto MMCC and have it update the firmware. I have to extract it first.

I expect the reason is the same - whatever that reason is.

What Windows are you running? I am on W11 but I can test on W10 as well.

Edit:

Try dragging 'life.bas' from the zip onto a Notepad++ desktop shortcut.
Computer says "NO"

Extract the file first and computer does what it is told.

Jim
Edited 2023-06-14 18:17 by TassyJim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 08:20am 14 Jun 2023
Copy link to clipboard 
Print this post

Thanks Jim, I’m using W10 still. Just dreading setting up the machine when I change. I have found that some other programs have trouble opening up files from within a zip.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 08:25am 14 Jun 2023
Copy link to clipboard 
Print this post

If you view the zip with WinRar, you can drag and drop and probably open the bas file correctly, just not when using the Windows builtin archive manager.

Jim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 08:35am 14 Jun 2023
Copy link to clipboard 
Print this post

Thanks Jim, it’s not something I would normally do. I didn’t know if it would even work. No problem.

Bill
Keep safe. Live long and prosper.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 12:03am 15 Jun 2023
Copy link to clipboard 
Print this post

I luv mmedit but can you get the mouse to open the full file name as I don't know which file I want
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 12:24am 15 Jun 2023
Copy link to clipboard 
Print this post

It does if you don't have too many files open.




Bill
Keep safe. Live long and prosper.
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 09:44am 15 Jun 2023
Copy link to clipboard 
Print this post

And... in the spirit of Bill!

With...(Bill Brewer,JanStuer,Peter Gurney,Peter Davey,Dan'l Whitton,'arry Hawke).bas

Greg
 
     Page 7 of 8    
Print this page
© JAQ Software 2024