Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:30 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 3 of 4    
Author Message
KeepIS

Guru

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

I had a play with trying to get a Function List working, I got close.

I've got a full SUB() list working.

NOTE: You can only use this if you have all of the code unfolded, otherwise you can't jump to a SUB().

Could be handy if you're changing/jumping around a lot of code in various subs.

In NP++, click View and then select Function List.

A list of every SUB is shown on the right, click on a SUB to jump straight to it in the editor code.

USAGE:

Unzip and place in the same directory as Notepad++.exe, it will overwrite the existing file.

Function List for MM_BASIC

Mike.

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

Guru

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

  TassyJim said   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.


Yes that's a good idea if you have defined another languages and want to keep them.

The "userDefineLang.xml" that I sent can simply be renamed (if need be) and imported into NP++, Note that it will import duplicate entries with no harm but two will show in the "Define your language" selection list window.

Click "Language" -> "Define your language" -> "Import" navigate to the import file, either userDefineLang.xml (placed in separate directory if not renamed) or the renamed downloaded "UserDefinedLang.xml" file.

Close the "User defined language" window. "MM_BASIC" should now show towards the bottom of the Language list.

Just select "MM_BASIC" and it should be good to go.

Mike.


NOTE: The "functionList.xml" I uploaded (see my previous post) can safely overwrite the existing file as I made NO CHANGE to the existing function lists - I simply ADDED one new entry for MM_BASIC.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

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

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


Jim is correct changing EXT [.bas] to [bas] in "Define your Language"
fixes the .bas association and any 'bas file opened switches to MM_BASIC syntax.

I've also corrected the Language file and uploaded it again of those who are not sure about changing the settings.

Mike
Edited by KeepIS 2019-01-15
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
lizby
Guru

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

Auto completion now is working for me. I missed the part about having to go in to Settings, Preferences Auto-Completion and clicking Enable.

But I am unable to type in the field "From 1 th character". I type a "2", which appears as blank, and hit enter, and it still says "1". How did you change it to "2", Jim?

Thanks for this--it's helpful.
Edited by lizby 2019-01-15
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
KeepIS

Guru

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

FYI I can't change that either - but I'm sure I did it the other day and set it back to the 1st char.

Just tries a brand new install and still no go. , beeps and shows a blank. Can only be set to 1.

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

Guru

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

Two things to observe.
Yesterday I updated my version of N++ to 7.6.2
They did mention that there are some folder changes but everything seems to work.
This morning auto-completion didn't work.
I now have MM_BASIC.xml in:
"C:\Program Files (x86)\Notepad++\autoCompletion\MM_BASIC.xml"
and autocomplete works again.

To set it to two characters before showing, click on the "1", enter 2 into the box and press enter.
The box will disappear and the setting is updated.





Jim
VK7JH
MMedit
 
KeepIS

Guru

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

No not in mine, it reverts to 1 any number input is not shown in the box, box closes and 1 is redisplayed.

So that confirms that both installs modes have an autocomhplete directory from 7.62 onwards for anyone getting confused about versions and directories.

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

Guru

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

I just did a clean install on my laptop which hadn't seen N++ before.
I chose the 64bit version for a change and put the two files in the same location as on the main PC
"C:\Program Files\Notepad++\autoCompletion\MM_BASIC.xml"
and
"C:\Users\Jim\AppData\Roaming\Notepad++\userDefineLang.xml"

I was able to change the auto-complete to two without any problems.

Jim
VK7JH
MMedit
 
TassyJim

Guru

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

  Quote   Search "triggerFromNbChar=" (1 hit in 1 file)
C:\Users\Jim\AppData\Roaming\Notepad++\config.xml (1 hit)
Line 73: <GUIConfig name="auto-completion" autoCAction="1" triggerFromNbChar="2" autoCIgnoreNumbers="no" funcParams="yes" />


You might be able to edit the config file directly.

Jim
VK7JH
MMedit
 
KeepIS

Guru

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

  TassyJim said   I just did a clean install on my laptop which hadn't seen N++ before.
I chose the 64bit version for a change and put the two files in the same location as on the main PC
"C:\Program Files\Notepad++\autoCompletion\MM_BASIC.xml"
and
"C:\Users\Jim\AppData\Roaming\Notepad++\userDefineLang.xml"

I was able to change the auto-complete to two without any problems.

Jim


I totally agree, it's stupid, I also did a clean install - still no go? I only noticed it when a previous poster had a problem and I knew that it worked before.????

Anyway I've got a new PC to put together so I'll be away for the rest of the day.

Mike.


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

Guru

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

  TassyJim said  
  Quote   Search "triggerFromNbChar=" (1 hit in 1 file)
C:\Users\Jim\AppData\Roaming\Notepad++\config.xml (1 hit)
Line 73: <GUIConfig name="auto-completion" autoCAction="1" triggerFromNbChar="2" autoCIgnoreNumbers="no" funcParams="yes" />


You might be able to edit the config file directly.

Jim


Just reread your post, yes will do that, I had a quick search but the new PC arrival has put that on the back burner

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

Guru

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

Yes that works, set it to 2 and you still can't change it from the settings.

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

Guru

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

Got the new NUC PC going and everything setup, first thing I did was get the Function List showing Functions AND Procedures.



New Download:

Function List


Mike

EDIT: Well almost, it won't list a sub or function name with a "$" char in it,

e.g. SUB Remove$(...) Dam so close. Edited by KeepIS 2019-01-17
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1097
Posted: 05:44am 20 Jan 2019
Copy link to clipboard 
Print this post

Hi Mike

I'm only getting 4 of the 30 or so Sub routines listed in the prog I am testing. None have a "$" in the name.

Tried another prog with 10 subs. Nothing coming up at all.

Brian
ChopperP
 
KeepIS

Guru

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

  Chopperp said   Hi Mike

I'm only getting 4 of the 30 or so Sub routines listed in the prog I am testing. None have a "$" in the name.

Tried another prog with 10 subs. Nothing coming up at all.

Brian


My Procedures and Functions all use parenthesis after the name for clarity: Could that be the reason?

I have 37 Subs / Functions in one file, and lust loaded a small program with 4, all show up perfectly.

Mike.

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

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1097
Posted: 08:46am 20 Jan 2019
Copy link to clipboard 
Print this post

Ok Mike, that works.

Thanks

Brian
ChopperP
 
KeepIS

Guru

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

Great to hear Brian, I've just got used to using them over the years, especially when referring to SUB's in my code:

CheckDir() is obviously not a variable but CheckDir could be assumed to be when quickly trolling through code looking for errors.

If I get the time I'll see if I can modify finding declared SUB's without needing them.

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

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1097
Posted: 09:09am 20 Jan 2019
Copy link to clipboard 
Print this post

OK.

Quick question. Can the colours be changed?
The comments are too hard for me to read & I don't like the colour of the brackets ()
I did try using the Style Configurator with limited success

Brian
ChopperP
 
KeepIS

Guru

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

  Chopperp said   OK.

Quick question. Can the colours be changed?
The comments are too hard for me to read & I don't like the colour of the brackets ()
I did try using the Style Configurator with limited success

Brian


Everything can be changed: Language -> Define your language.

Select the language, then all colours can be changed, add or remove keywords, change grouping of keywords and so on.

Mike.

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

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1097
Posted: 11:28am 20 Jan 2019
Copy link to clipboard 
Print this post

OK.

Got somewhere but can't get all the end brackets the desired colour (black).
Also, can't find where to change the Number colours



Brian

Edit

Found the Number Styler.

(Somehow while playing around, I managed get a red no 8. More playing required).

Edit 2

Fixed the red 8 & the end bracket
Edited by Chopperp 2019-01-21
ChopperP
 
     Page 3 of 4    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025