![]() |
Forum Index : Microcontroller and PC projects : Notepad++ and MM.Basic
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
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. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
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: AustraliaPosts: 1882 |
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 NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
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. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
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: AustraliaPosts: 6283 |
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: AustraliaPosts: 1882 |
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 NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
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: AustraliaPosts: 6283 |
You might be able to edit the config file directly. Jim VK7JH MMedit |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
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: AustraliaPosts: 1882 |
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: AustraliaPosts: 1882 |
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: AustraliaPosts: 1882 |
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. NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1097 |
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: AustraliaPosts: 1882 |
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: AustraliaPosts: 1097 |
Ok Mike, that works. Thanks Brian ChopperP |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
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: AustraliaPosts: 1097 |
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: AustraliaPosts: 1882 |
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: AustraliaPosts: 1097 |
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 ChopperP |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |