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

Guru

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

Most of the colour syntax is simple once you get the hang of it. Others try to fold "FOR NEXT" loops and "DO LOOP" in code, doing so will work "some" of the time but it eventually creates a mess in complex code IMHO.

As I pointed out at the start, this was just my quickly thrown together Language entry, I had planned to add a lot more and to rearrange a few things but got busy with project construction and coding instead, but it fulfilled my needs at the time.

As I only use two types of hardware, MM+ and the ARMmite H7, this is reflected in the Autocomplete file and to some extent, the Language file.

Mike.


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

Guru

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

Thanks Mike.

Getting the hang of it may take me a bit of time .

I didn't realise that NP++ was so complex, complicated etc etc. I haven't used it much at all.

Regards

Brian
ChopperP
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 09:32pm 23 Jan 2019
Copy link to clipboard 
Print this post

Excellent work,

Can appreciate the effort as I've played about myself with varied outcomes.

What I am seeing though, is only Functions in the Function list; No Subs.

I can see how to resolve it by changing my code style,
from

[code]Sub DoMenu
to
Sub DoMenu()
or
Sub DoMenu ()[/code]

But that would require editing a lot of code files.


My attempts at the function list did find my subs,
BUT, it also list all the End Subs & Exit Subs, bit painful, but I ignored it. Didn't understand the Parsers well enough to have success.


Haven't tried the auto complete yet, but looking forward to that.


Cheers

Phil.

Edit,

Here's the function list I played with; around lines 1300; was a modification of the vb_function Parser.

2019-01-24_074033_2017-05-12_070330_functionList.zip

But note it didn't work right as it listed the ends...

Edited by Phil23 2019-01-25
 
KeepIS

Guru

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

Hi Phill,

Been away so just found your post.

Interestingly the standalone download does not have VB in the supplied FunctionList.xml, I'll have a look at it when I get time, yes it's gets quite elaborate in some of the languages when you compare it to my tiny Parser code, the problem is simply finding a way to set a rule for the sub that requires it to have no space or tab before SUB and to stop at the end of the line, ignoring any comments.

BUT!! As I always declared my Procedures as SUB Name() I don't have a problem, and searching for the opening "(" and closing ")" solves all problems of other "End SUB" or "Exit SUB" or "EXIT/END Function" showing in Procedure / Function list.

BTW in my syntax file I realised I had the "next" keyword in the wrong category and it should be in with "for".

Would you believe that I did not use a single FOR NEXT in over 3,000 lines of code, so I never noticed it before.

Mike.






NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 10:20pm 25 Jan 2019
Copy link to clipboard 
Print this post

  KeepIS said  Would you believe that I did not use a single FOR NEXT in over 3,000 lines of code, so I never noticed it before.


That's what I noticed, I'd have it working fine on my code, but then when I looked at friends some Subs etc were missing.

Might try merging both function lists into the file & see if I can switch between them by changing from my "MMbasic" to your "MM_BASIC"


Phil.
 
KeepIS

Guru

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

I've been doing a lot of coding in the past few days, the wrong colour for "next" is the only thing that needed to be changed in the colour syntax file, that took all of 3 seconds. Everything else displays perfectly.

The only way a Function won't show is if there is some strange way they are being formatted, every Sub and Function in every program I have here always displays unless there are characters that are not allowed by NP++ in the XML file and in function or sub name. Obviously the "()" are needed with SUB.

I've tried to purposely make them not show and I really have to do things I would normally not do in coding to make that happen.

Mike.


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

Guru

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

I forgot to mention again that the Function / Procedure list is something I really never use as Code Folding in the main editor window is way better.

With Code folding you don't need to modify and Sub decelerations and it's easier to navigate by only unfolding the relevant functions or procedures that you are moving between. Just a few mouse clicks.

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

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 07:08am 02 Jun 2020
Copy link to clipboard 
Print this post

Greetings, MM-ers

I wonder if someone can do me a huge favour and ZIP the required folders/files and post the ZIP so that I can get Notepad++ up and running?

Mike's file-links give me Error 403

I'm looking for a quick solution because I'm on-site and really under the gun.

All the best,

Craig
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:30am 02 Jun 2020
Copy link to clipboard 
Print this post

Do you want a link to Notepad++ or the MMBasic extras?

Notepad++ https://notepad-plus-plus.org/

Jim
VK7JH
MMedit
 
KeepIS

Guru

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

Only got back to the PC now, so a bit late now to be of any any help. Wondering why you didn't download Notepad from their site, unless it's the language files you wanted?  

Those links in my post have been changed somehow?, they now point to Notepad.org site???????  

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

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 09:05am 02 Jun 2020
Copy link to clipboard 
Print this post

Hi Mike and Jim,

@Mike. I pretty much just get a Error 403 with all those links.

Yeah, I have had Notepad++ for years. I use it for RFO-BASIC (interpreted) for Android programming.

It's the MM Basic stuff that I'm looking for, please. But I don't have time to be experimenting with which file goes in which folder because I have a client breathing down my neck and so I need to at least look like I know what I'm doing  

Regards,

Craig
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 09:30am 02 Jun 2020
Copy link to clipboard 
Print this post

I can zip my complete NP++ directory and give you a link to grab it if you like.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 09:59am 02 Jun 2020
Copy link to clipboard 
Print this post

  KeepIS said  I can zip my complete NP++ directory and give you a link to grab it if you like.


That would be ideal...Thank you

Regards,

Craig
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1882
Posted: 10:12am 02 Jun 2020
Copy link to clipboard 
Print this post

Hi, here is the link to the zipped directory, you might have to install the latest version of Notepad first and then replace it with this, I'm sure you know what to do.

LINK

Mike
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 10:24am 02 Jun 2020
Copy link to clipboard 
Print this post

  KeepIS said  Hi, here is the link to the zipped directory, you might have to install the latest version of Notepad first and then replace it with this, I'm sure you know what to do.

LINK

Mike


Well that was totally painless...worked first time

Many, many thanks, Mike  

Regards,

Craig
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 79
Posted: 01:50pm 17 Jul 2022
Copy link to clipboard 
Print this post

I had all this cool language template stuff working on a previous machine but due to an unfortunate series of events, I am trying to re-enable it.  I followed though the thread and downloaded the files, etc.  There have been some minor changes to the file structure of Notepad++ and also some changes in the dialogs where the mods are made.  I have this working mostly but its not solid.  It will sometimes revert back to some old style or forget what MMBASIC is.  I would really appreciate any help that someone is on top of this could lend.

Thanks in advance.
Edited 2022-07-17 23:52 by jwettroth
John Wettroth
 
tgerbic
Regular Member

Joined: 25/07/2019
Location: United States
Posts: 66
Posted: 12:17am 18 Jul 2022
Copy link to clipboard 
Print this post

This is what I use with mmbasic on my laptop. Seems to be readable and alerts for the deprecated keywords I am aware of that might be in older programs.


mmbasic_notepad.zip
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 79
Posted: 03:01pm 19 Jul 2022
Copy link to clipboard 
Print this post

Thanks for taking the time.  I'll give it a go.
John Wettroth
 
     Page 4 of 4    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025