![]() |
Forum Index : Microcontroller and PC projects : Notepad++ and MM.Basic
![]() ![]() |
|||||
Author | Message | ||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
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: AustraliaPosts: 1097 |
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: AustraliaPosts: 1667 |
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... |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
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: AustraliaPosts: 1667 |
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: AustraliaPosts: 1882 |
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: AustraliaPosts: 1882 |
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 KingdomPosts: 1646 |
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: AustraliaPosts: 6283 |
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: AustraliaPosts: 1882 |
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 KingdomPosts: 1646 |
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: AustraliaPosts: 1882 |
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 KingdomPosts: 1646 |
That would be ideal...Thank you ![]() Regards, Craig |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
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 KingdomPosts: 1646 |
Well that was totally painless...worked first time ![]() Many, many thanks, Mike ![]() Regards, Craig |
||||
jwettroth![]() Regular Member ![]() Joined: 02/08/2011 Location: United StatesPosts: 79 |
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 StatesPosts: 66 |
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 StatesPosts: 79 |
Thanks for taking the time. I'll give it a go. John Wettroth |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |