jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 25, 2020 17:26:21 GMT -5
Hi,
I am using Notepad++ with Liberty Basic, and works great. Here is my syntax file attached. I use it with the kaki theme and looks nice. I also recommend to use a font like Consolas or Lucida Console.
I have tried to add many keywords, and colors that help to understand and work with it.
If I make more updates I will upload them too.
This may be useful for those who use Notepad++
To use this file you have to open your menu: Language/User Defined Language/Define your language... and then click the import button, select the file, and that's all
It will open bas files and use BASIC syntax coloring with them.
|
|
|
Post by sarossell on Feb 26, 2020 3:02:32 GMT -5
Very nice. I had a little trouble figuring out if you meant select the zip file or the file contained inside. When I decompressed it, the file had no extension. But I notice Notepad++ was looking for an xml extension. One I added the extension and imported it, everything fell into place.
Thanks for doing all the heavy lifting!
:@)
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 26, 2020 3:48:35 GMT -5
You are right! Here is the xml file.
By the way, I called it Basic because it can also be good to edit old basic code, or take source from langauges like rapidq, old trs basic, or commodore basic, or any basic, because Liberty Basic has the good thing of sharing most of the keywords with all of them, that is one of the features I love.
|
|
bart
New Member
Posts: 7
|
Post by bart on Feb 26, 2020 3:54:22 GMT -5
Nice! I use both Notepad++ and Liberty quite a lot, so I'm sure it'll come in handy.
|
|
|
Post by sarossell on Feb 26, 2020 12:46:44 GMT -5
Agreed. I really enjoy the fact that LB still allows line numbers so I can drop in an old program to see how it works.
:@)
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 26, 2020 14:05:38 GMT -5
Yes it's great specially for pasting old code and adapt it to new one.
|
|
|
Post by sarossell on Feb 26, 2020 16:08:36 GMT -5
Agreed. I have and old mathematics text book from the early 90s that includes BASIC programs to solve problems. It's a real treat to be able to type them in with just a little tweaking now and then. They stopped publishing textbooks with BASIC in them at the turn of the century. I often think they should go back to doing that. Even at my age, I was able to more clearly understand some concepts by being able to code the problem, debug and run it.
Hey Carl! A new math textbook with Just BASIC code? Whaddaya think?
:@)
|
|
|
Post by Carl Gundel on Feb 26, 2020 17:26:26 GMT -5
Agreed. I have and old mathematics text book from the early 90s that includes BASIC programs to solve problems. It's a real treat to be able to type them in with just a little tweaking now and then. They stopped publishing textbooks with BASIC in them at the turn of the century. I often think they should go back to doing that. Even at my age, I was able to more clearly understand some concepts by being able to code the problem, debug and run it. Hey Carl! A new math textbook with Just BASIC code? Whaddaya think? :@) It's a great idea. There used to be such a book using Liberty BASIC. You volunteering?
|
|
|
Post by sarossell on Feb 26, 2020 18:52:19 GMT -5
Ha! LOL. A challenge!
|
|
|
Post by Carl Gundel on Feb 27, 2020 8:35:59 GMT -5
I also have one of those old style BASIC programs for engineers books. Something like that would be cool, and one for video games, and one for business programs, and one for artificial intelligence concepts, and one for... name your favorite.
|
|
|
Post by Brandon Parker on Feb 27, 2020 8:40:32 GMT -5
I picked up the BASIC Programs for Scientists And Engineers by Alan R. Miller late last year. It is in great condition and has some fantastic work!
{:0)
Brandon Parker
|
|
|
Post by sarossell on Feb 27, 2020 14:14:05 GMT -5
It does get one to thinkin'...Hmmm...
I would love to see Liberty BASIC become THE goto (pun intended) language for something. I'm very curious to see where things can go with the Raspberry Pi, myself.
My grand-daughter just stole my old 3B+. Little jerk will probably build a Tesla out of it by next weekend. I showed her Python the other day and her response was priceless; "Meh." But when I told her she could run LB on the Pi, she was off and running.
:@)
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 27, 2020 15:55:46 GMT -5
Books of source code were nice. I have one of vrml, the vrml sourcebook. It was great because it had tips and tricks, and icons an colors, so reading was fun. I think a format like that may also be appealing today. Of course not long code listing, because almost everyone is too lazy to read and copy a lot of code. But small snippets with explanations is always good. I think Carl already did it with the "Beginning with Liberty Basic" book. I really enjoyed it. It is very fun to read, with code and explanations on why it is coded that way, tricks, and all that.
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Jan 17, 2021 9:35:31 GMT -5
I created a page for this at Sourceforge. Now the project is called NppLB. Here is the link: sourceforge.net/projects/npplb/I have added support for autocompletion inside Notepad++ for Liberty BASIC. I have other syntax projects there, like for A-Frame, VRML and X3D. You may also enjoy them. Those are all languages for 3D on web pages that output to text files, so making liberty basic programs related to them may also be cool, as LB is nice for manipulating text files.
|
|
|
Post by tenochtitlanuk on Jan 17, 2021 12:21:05 GMT -5
Works a treat, Thanks Jordi! ¡Muy bien hecho!
I've never got the LB native editor to print from LB in Linux- every symbol prints in black on a black backgound!
PS Your 3D work looks fun....
|
|