Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:44 02 Aug 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 : Notepad++ and MM.Basic

     Page 2 of 4    
Author Message
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1003
Posted: 05:08am 12 Jan 2019
Copy link to clipboard 
Print this post

I seem to have it working.
I had to import the language file from menu item Language/Define your language before it became an availabel selection. I also seemed to have to select it a couple of time before the Auto Complete came to life.

Gerry
Latest F4 Latest H7 FotS
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 05:16am 12 Jan 2019
Copy link to clipboard 
Print this post

  disco4now said   I seem to have it working.
I had to import the language file from menu item Language/Define your language before it became an availabel selection. I also seemed to have to select it a couple of time before the Auto Complete came to life.

Gerry


Well at least that's a start in the right direction. I mentioned on a brand new install that you may have to select a couple of times, so glad to hear it's working.

I assume that when you open NP++ now that it always works first go as mine does.

Mike.


EDIT updated the Auto-Complete ZIP.

Edited by KeepIS 2019-01-13
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:21am 12 Jan 2019
Copy link to clipboard 
Print this post

I chose to use my existing installation.
Copied the two files into the 'roaming' folder and started Notepad++
MM_Basic was there and appears to work well.

There are a few autocompletes not showing up. I will play some more and report back.
I will try with your updated Auto-Complete

Jim


VK7JH
MMedit
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 06:26am 12 Jan 2019
Copy link to clipboard 
Print this post

Thanks Jim, if and when you get time can you tell me the name of just one so I can have a look, there are a few that I have not filled in as yet and a few empty ones that have to be removed. I added around 6 biggish commands to the latest file.

Mike.

NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:52am 12 Jan 2019
Copy link to clipboard 
Print this post

One that was missing was I2C.
I2C2 was there.

I am having trouble getting it to associate MMBasic with .bas files.


Jim

VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:05am 12 Jan 2019
Copy link to clipboard 
Print this post

This is my list of keywords for the H7.
where the keyword ends in $ or ( I usually include without as well to suit MMEdit
"str str$ str$(" instead of just "str$("I noticed that there are some without that happening.

2019-01-12_170213_armH7_5.05.03.zip

Sorry, I don't have the syntax help for the later devices.

The first group are Commands or Functions.
The second and third groups are parameters. I haven't decided if I will treat them differently in MMEdit.

What is the significance of the different groups in your XML file?

Jim
VK7JH
MMedit
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 07:06am 12 Jan 2019
Copy link to clipboard 
Print this post

  TassyJim said   One that was missing was I2C.
I2C2 was there.

I am having trouble getting it to associate MMBasic with .bas files.

Jim


Thanks yes a lot to add as I go along, like I said this was only for my own use so I just added thing as I went along. If you want to add a entries I can tell you of the pitfalls and catches (only a few) when adding them if anyone is interested, just might save you some time.

When ever I open a new file I have to select the Language.

If I open a visual basic file, NP++ it does not select VB language and I can only assume that there are a number of variation of basic all using the .bas extension.

There is an option in settings to select and add a new file extension association but it does not allow you to actually add it.

Mike.
Edited by KeepIS 2019-01-13
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 07:19am 12 Jan 2019
Copy link to clipboard 
Print this post

  TassyJim said   This is my list of keywords for the H7.
where the keyword ends in $ or ( I usually include without as well to suit MMEdit
"str str$ str$(" instead of just "str$("I noticed that there are some without that happening.

2019-01-12_170213_armH7_5.05.03.zip

Sorry, I don't have the syntax help for the later devices.

The first group are Commands or Functions.
The second and third groups are parameters. I haven't decided if I will treat them differently in MMEdit.

What is the significance of the different groups in your XML file?

Jim


Hi Jim,

Thanks for the list as it will help check for ones I've missed.

When I first got code folding and colour syntax to work I had no time to go through all the commands, so I just quickly tried to get the keywords I was using in different groups for colour coding, something I've been meaning to go through.

The language file is an old one I've been using for a year or so, but I posted it anyway to give an idea on code folding working.

The Auto Complete file is the focus as I have only started to get serious with it due of being limited in movement by a serious accident, so I had to find something to do.

Mike.

NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:26am 12 Jan 2019
Copy link to clipboard 
Print this post

  KeepIS said   I have only started to get serious with it due of being limited in movement by a serious accident, so I had to find something to do.

Mike.


My problem is too much movement. One hand is just about useless for typing and I spend more time correcting than thinking.

It takes the fun out of it.

Luckily I haven't started spilling my whiskey yet.

Jim
VK7JH
MMedit
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 08:36am 12 Jan 2019
Copy link to clipboard 
Print this post

The way I'm going I feel like taking up whiskey. BTW I've been meaning to look in my old QSO logs to see if I ever ran in to you on the bands, been off the air for years but still keep the licence, had it for for over 40 years.

Mike.

EDIT: I was thinking that it might be an idea to define a few MM_BASIC entries in the User language file, at least one for the newer processors with some added or expanded commands over the MM+, so just for the MM+, ARMmite H7 and others similar in the command set and one for older or other devices not using graphics, SD cards or reduced language functionally etc. Would be simple to do but don't know if it's worth it.

Reason is I don't want commands, incorrect syntax or keywords to be highlighted that are not applicable to the processor that I'm coding for. Edited by KeepIS 2019-01-13
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 02:55pm 12 Jan 2019
Copy link to clipboard 
Print this post

With notepad++ installed with the normal Windows installation, I have the language working after clicking "Language", "Define your language", "Import" and navigating to "userDefineLang.xml". (And then selecting "Language", "MM_BASIC".)

I haven't been able to get the auto-complete to work. There was no "AutoCompletion" folder, so I made one and copied "MM_BASIC.xml" into it. That didn't give me auto-complete. Any ideas?

I like the collapsing function.

PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 10:38pm 12 Jan 2019
Copy link to clipboard 
Print this post

  lizby said   With notepad++ installed with the normal Windows installation, I have the language working after clicking "Language", "Define your language", "Import" and navigating to "userDefineLang.xml". (And then selecting "Language", "MM_BASIC".)

I haven't been able to get the auto-complete to work. There was no "AutoCompletion" folder, so I made one and copied "MM_BASIC.xml" into it. That didn't give me auto-complete. Any ideas?

I like the collapsing function.


Hi Glad to hear it's working, I mentioned in the post with the pictures that you can't just create the directory, previous versions of NP don't have that directory and the file goes in a different location, the latest version under a windows installer might be different.

TassyJim would be able to tell exactly where he put the file / files. However check the version as it may be different.

[Quote] TassyJim I chose to use my existing installation.
Copied the two files into the 'roaming' folder and started Notepad++
MM_Basic was there and appears to work well. [/quote]

Keep in mind that the Colour Syntax file is not complete and that I'm continuing to update the AutoComplete file as I add to it, posted a newer update last night, size is now around 150K.

Edited by KeepIS 2019-01-14
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 10:47pm 12 Jan 2019
Copy link to clipboard 
Print this post

Mike,
remove the dot from the file extension.
That should have MM_Basic automatically selected.

  Quote  TassyJim would be able to tell exactly where he put the file / files. However check the version as it may be different.

Both file were placed in the sam folder.
"C:\Users\Jim\AppData\Roaming\Notepad++\*.xml"

I am running v7.5.9

If you have other user defined syntax's, I think that replacing the "userDefineLang.xml" file will overwrite them. I think you have to import but it is not something I have tried lately.

I am not sure how much luck I am having with autocomplete now. It was working yesterday.

Jim


VK7JH
MMedit
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 11:11pm 12 Jan 2019
Copy link to clipboard 
Print this post

Also running v7.5.9. I put MM_BASIC.xml in the AppData\Roaming\Notepad++ directory, but after closing and re-opening Notepad++, still have no auto-complete.

PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 12:16am 13 Jan 2019
Copy link to clipboard 
Print this post

I've just updated the Autocomplere file MM_BASIC.zip.

I can't rename the ZIP file to indicate version as there is no way to edit the post I did with links in it. So the name stays the same, otherwise links will break.

FYI: When the scrollable Auto Complete list is open, any command with no usage after it will not have a hint window.

The following listing will have NO Hint in the editor:

abs(number) 'Returns absolute........

The following listing will have a hint window:

adc-close

A Hint window Will open showing the complete usage syntax and description for ADC CLOSE.

Typing * after these commands (as displayed) will open the Hint window.

Open hint by:

pressing enter, which inserts command into the editor and then typing * after it

or

Typing: adc-close*


NOTE:

adc-close cannot be displayed in the Autocomplete list as "ADC CLOSE" because:

1: You can't have a true space between words.

2: It has to have lower case for the first part of the word or it will not show in LARGE lists correctly.

For me the simplest way to do this was adc-close, because the "-" char is not used in any MM Basic command syntax, so there should be no brain fade down the track when using the command without looking at the command hint information.

Be aware that some of the single line commands (no hint) WILL use a hidden space char anywhere in the one line info where there is a space. You will know as the syntax highlighting won't work (if you press enter and insert the command as displayed into the editor) the hidden space has to be removed after inserting the command, of course if you typed the command there is no problem.

I'm thinking on reflection that I should convert small single line keywords into hint entries as well.


NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 12:19am 13 Jan 2019
Copy link to clipboard 
Print this post

  lizby said   Also running v7.5.9. I put MM_BASIC.xml in the AppData\Roaming\Notepad++ directory, but after closing and re-opening Notepad++, still have no auto-complete.


Look for the file actionscript.xml - when you find it that is the location where you put MM_BASIC.xml.

actionscript.xml is a file that is part of NP++

Mike.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:33am 13 Jan 2019
Copy link to clipboard 
Print this post

This looks better.

For a standard install, I now have:
"C:\Program Files (x86)\Notepad++\plugins\APIs\MM_BASIC.xml"
and
"C:\Users\Jim\AppData\Roaming\Notepad++\userDefineLang.xml"

How autocomplete partially worked before, I don't know.
Perhaps the file association was stuck on one of the other basics and when I got file-association working, it broke the auto-complete.

I have changed my auto-complete to requiring 2 characters before it starts. I find that less intrusive.

Jim

VK7JH
MMedit
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 02:08am 13 Jan 2019
Copy link to clipboard 
Print this post

Thanks Jim,

That may help others. Yes the "plugins" directory was in the previous version, it was removed in the latest version, BUT perhaps that's only applicable to the standalone version.

I also turn off "Word completion" as I guess you have also, otherwise it's very confusing - well it is for me anyway

Just finished adding a lot more to the Autocomplete file, so I'm done for a week or so, I'll upload in around 5 hours from now.

Mike

Edited by KeepIS 2019-01-14
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
karjo238
Regular Member

Joined: 12/10/2018
Location: New Zealand
Posts: 60
Posted: 03:50am 13 Jan 2019
Copy link to clipboard 
Print this post

Just stumbled onto this. Many thanks guys for all this. I've used Notepad++ a bit, and found it useful for MMBasic, but lacking in one or two areas. This makes it

Joseph.
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 04:34am 13 Jan 2019
Copy link to clipboard 
Print this post

  karjo238 said   Just stumbled onto this. Many thanks guys for all this. I've used Notepad++ a bit, and found it useful for MMBasic, but lacking in one or two areas. This makes it

Joseph.


Thanks glad it worked, it's a Work in progress at the moment.

I'm done for a week or two, I just uploaded the updated Autocomplete hint file.

175 kb length.

Always the same link - here it is again:

AutoComplete ZIP

Existing Language ZIP

Same language file as before, needs work but it covers what I'm doing at the moment and will get things going.

Mike.

NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
     Page 2 of 4    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025