xtal
Junior Member
Posts: 61
|
Post by xtal on Sept 24, 2020 8:22:02 GMT -5
I tried to use DRBEDIT as a new editor , but obviously did something wrong, all I accomplished was to wipe out a 3000 line program, fortunately , I had it backed up....
I want to try this editor because it supports physical line numbering + more.
Also I could not figure out how to compile , other than save file , load LB and compile , which is rather crummy....
So what is the proper way to change editor , and will I be able to compile.
|
|
|
Post by Chris Iverson on Sept 24, 2020 13:19:12 GMT -5
Liberty BASIC does not have a separate compiler. It is part of the IDE, and can only be invoked as part of the LB IDE.
You CAN invoke it by calling the LB executable from the command line with a command line switch, but doing so does open the LB IDE to compile and execute the program.
There's a specific page in the LB helpfile, "Using A Different Code Editor".
And
|
|
|
Post by Carl Gundel on Sept 24, 2020 13:39:47 GMT -5
Liberty BASIC does not have a separate compiler. It is part of the IDE, and can only be invoked as part of the LB IDE. You CAN invoke it by calling the LB executable from the command line with a command line switch, but doing so does open the LB IDE to compile and execute the program. There's a specific page in the LB helpfile, "Using A Different Code Editor". And One way to do this is: 1) Start Liberty BASIC 2) Open the preferences and make sure that Reload File on Activate is turned on. 3) Open the file you want to work on in Liberty BASIC. 4) Now open the file again in your favorite editor. 5) When you are ready to compile, save it and switch to the Liberty BASIC editor window. It will load the latest saved version of the code. 6) Run/Debug/Make TKN file or whatever you need to do. 7) Go back to your favorite editor and make whatever changes. Rinse and repeat. I hope this makes sense.
|
|
xtal
Junior Member
Posts: 61
|
Post by xtal on Sept 25, 2020 8:37:26 GMT -5
Thanks all I have found some code by Alyce Watson [lbcac51.zip - CodaAChrome ] dated around 2011 for version 2 , which may do what I want if I can figure out what its doing. there has been a lot of changes from version 2. alycesrestaurant.com/Utilities.htm Liberty CodeAChrome - a code editor - Update December, 2011 It sure would be nice if some all knowing person would update this to work on LB v4.5.1 pro and Windows 10. Looking at the code I think the Editor has a RUN button that invokes and runs LB. This is the area I'm having problem with since every thing is not in the same directory. HAS ANYONE USED THE INFO: LIBERTY -R PROG.BAS --- Run PROG.BAS LIBERTY -T -A PROG.BAS --- Create a TKN file from PROG.BAS then exit LIBERTY -D PROG.BAS --- Run the debugger on PROG.BAS [ie] LIBERTY NON EXIST TRIED LBPRO -R 1-WireTest.bas and the last pgm the IDE used is loaded NOT 1-WireTest.bas........................ This indicates that any thing I do won't work............................. OK - can do from RUN statement NOT from CMD LINE.................. LOOKS LIKE changing lbpro.exe to Liberty.exe allows it to work... [open] displays your code with Line#'s [Run] starts LB with your code.. not perfect , but at least I have some line # reference when chasing code problems....... Add to [run] LibertyExe$ = "C:\Program Files (x86)\Liberty Basic Pro v4.5.1\Liberty.exe"
|
|