Post by tsh73 on Jan 31, 2021 19:45:23 GMT
Sometimes JB own editor just not enough.
(and having working Ctrl-Z saves a lot of blood)
I myself use Notepad++ for big programs.
It's two panel editor - you can see two files side by side, or edit same file in two different places.
It does syntax highlighting.
You can set Language to VB - it gets pretty close.
in JB, I set in menu, Setup\Preferences\Reload file on Activate
so if I edit file in Notepad++, I press Ctrl-S for save - press Alt-Tab to get to JB - press Shift-F5 to run it.
(of cource problem is then you editing file in BOTH places...)
Now, there is customisation and plugins.
I have NPP Exec plugin set up with this script
I edit code in Notepad++, press F6 - it shows me this script, I press Enter, it saves current editor and runs it in JB. On program end JB quits too (on error it stays)
Notepad++ Compare plugin
allows to compare two files, highliting any differences. Great to see what changes folks did in that huge file.
There is Function List plugin
- it shows subs/functions, much like Alt-G in JB 2.0
You will get subs/functions if you set language to VB.
This LB forum thread
libertybasiccom.proboards.com/thread/952/notepad-syntax-file-liberty-basic?page=2&scrollTo=10238
has link to LB syntax file
sourceforge.net/projects/npplb/
and rules for Function List plugin, for that syntax file, with LABELS added.
(so I have
FUNCTION
SUBROUTINE
LABEL
tree at right, with expanding branches.
)
It' what I now use for files like Rod's chess program of 1000+ lines.
EDIT
just now (March 20 2021) had a hard time trying to make function list work
from install.txt of FunctionList
so %APPDATA% worked for me.
(and having working Ctrl-Z saves a lot of blood)
I myself use Notepad++ for big programs.
It's two panel editor - you can see two files side by side, or edit same file in two different places.
It does syntax highlighting.
You can set Language to VB - it gets pretty close.
in JB, I set in menu, Setup\Preferences\Reload file on Activate
so if I edit file in Notepad++, I press Ctrl-S for save - press Alt-Tab to get to JB - press Shift-F5 to run it.
(of cource problem is then you editing file in BOTH places...)
Now, there is customisation and plugins.
I have NPP Exec plugin set up with this script
npp_console off
npp_save
"C:\Program Files\Just BASIC v2.0\jbasic.exe" -r -a $(FULL_CURRENT_PATH)
I edit code in Notepad++, press F6 - it shows me this script, I press Enter, it saves current editor and runs it in JB. On program end JB quits too (on error it stays)
Notepad++ Compare plugin
allows to compare two files, highliting any differences. Great to see what changes folks did in that huge file.
There is Function List plugin
- it shows subs/functions, much like Alt-G in JB 2.0
You will get subs/functions if you set language to VB.
This LB forum thread
libertybasiccom.proboards.com/thread/952/notepad-syntax-file-liberty-basic?page=2&scrollTo=10238
has link to LB syntax file
sourceforge.net/projects/npplb/
and rules for Function List plugin, for that syntax file, with LABELS added.
(so I have
FUNCTION
SUBROUTINE
LABEL
tree at right, with expanding branches.
)
<Language name="Liberty BASIC" imagelistpath="">
<CommList param1="'" param2="" />
<CommList param1="rem" param2="" />
<Group name="FUNCTION" subgroup="" icon="0" child="0" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
<Rules regexbeg="^\s*function\s+" regexfunc="[\w_]+" regexend="\s*\(.*\)" bodybegin="" bodyend="\<end\s+function\>" sep="" />
<Rules regexbeg="^\s*function\s+" regexfunc="[\w_]+" regexend="" bodybegin="" bodyend="\<end\s+function\>" sep="" />
</Group>
<Group name="SUBROUTINE" subgroup="" icon="0" child="0" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
<Rules regexbeg="^\s*sub\s+" regexfunc="[\w_]+" regexend="\s*\(.*\)" bodybegin="" bodyend="\<end\s+sub\>" sep="" />
<Rules regexbeg="^\s*sub\s+" regexfunc="[\w_]+" regexend="" bodybegin="" bodyend="\<end\s+sub\>" sep="" />
</Group>
<Group name="LABEL" subgroup="" icon="0" child="0" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
<Rules regexbeg="^\s*\[" regexfunc="[\w]+" regexend="\]" bodybegin="" bodyend="" sep="" />
</Group>
</Language>
It' what I now use for files like Rod's chess program of 1000+ lines.
EDIT
just now (March 20 2021) had a hard time trying to make function list work
from install.txt of FunctionList
- Copy FunctionListRules.xml into
%APPDATA%/Notepad++/plugins/config
or if you didn't install with %APPDATA%
<notepad++ install dir>/plugins/config
so %APPDATA% worked for me.