jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Jan 17, 2021 15:17:41 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.... Thank you so much! I will keep these updated as I see things missing or improvements.
VRML, X3D and A Frame are quite fun, they are like basic of 3D, specially aframe.
|
|
|
Post by tsh73 on Jan 18, 2021 6:40:26 GMT -5
Hello Jordi Have you any luck with Notepad++ FunctionList?
I have several different versions of Notepad++ installed on different machines, like 4 And it looks like they all have that functionality done differently (one big file, bunch of small files for each language, different language set in big file, different set of small files). I think it works on one old version in VB syntax, - one of 4, that's all. It nicely divides Subs from Functions - I am still to look into it to try get it to other instances.
Yesterday I spent long time trying to add it to VB on rather fresh install on Notepad++ using existing files for other languages as a base/model (it's "bunch of small files" case) End up completely frustrated I got list with subs/functions mixed, all I was able to get. - regExp is horror incarnate to me (even with comments in existing config files), with my changes, functions in list do appear/desappear (probably just quits then found error in config file) and sometimes changes work after switching tabs and sometimes needs full reload of Notepad++.
Hope someone does have more luck then me.
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Jan 18, 2021 8:33:43 GMT -5
Hello Jordi Have you any luck with Notepad++ FunctionList? I have several different versions of Notepad++ installed on different machines, like 4 And it looks like they all have that functionality done differently (one big file, bunch of small files for each language, different language set in big file, different set of small files). I think it works on one old version in VB syntax, - one of 4, that's all. It nicely divides Subs from Functions - I am still to look into it to try get it to other instances. Yesterday I spent long time trying to add it to VB on rather fresh install on Notepad++ using existing files for other languages as a base/model (it's "bunch of small files" case) End up completely frustrated I got list with subs/functions mixed, all I was able to get. - regExp is horror incarnate to me (even with comments in existing config files), with my changes, functions in list do appear/desappear (probably just quits then found error in config file) and sometimes changes work after switching tabs and sometimes needs full reload of Notepad++. Hope someone does have more luck then me. No sorry, I have not tried to implement them yet.
|
|
|
Post by tsh73 on Jan 18, 2021 13:37:23 GMT -5
|
|
|
Post by tsh73 on Jan 18, 2021 13:47:36 GMT -5
I have a suggestion Do you use Ctrl-Q key for toggling comments on/off? Your setup produces REMs
REM sub rect gr$, x,y,w,h REM #gr$ "place " ;x;" ";y REM #gr$ "box ";x+w;" ";y+h REM end sub
But if you change Comment&Number tab, Comment line style so (') goes in front (not last as now), it will produce
' sub rect gr$, x,y,w,h ' #gr$ "place " ;x;" ";y ' #gr$ "box ";x+w;" ";y+h ' end sub
Looks better, methinks.
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Jan 18, 2021 15:05:49 GMT -5
I have a suggestion Do you use Ctrl-Q key for toggling comments on/off? Your setup produces REMs REM sub rect gr$, x,y,w,h REM #gr$ "place " ;x;" ";y REM #gr$ "box ";x+w;" ";y+h REM end sub
But if you change Comment&Number tab, Comment line style so (') goes in front (not last as now), it will produce ' sub rect gr$, x,y,w,h ' #gr$ "place " ;x;" ";y ' #gr$ "box ";x+w;" ";y+h ' end sub
Looks better, methinks. Very good suggestion! I will incorporate it in the files. Yes it looks much better to put it in front. That way ' works for comments, and REM for those cases in which the user wants to mark a comment more explicitly. Thanks for the contribution!
|
|
|
Post by tsh73 on Jan 31, 2021 13:59:49 GMT -5
I an working on old project of mine - from 2010 - and it have ENORMOUS amount of labels So I modified config for Function List plugin, based off VB entry. (VB has Functions and Subs) I did use some RegExp explainer online to make it and it seems work - but I actually have little idea how. (Finction List plugin for Notepad++v.5.5+ v2.1) Be warned it's 32 bit plugin - will not work with Notepad++ 64 bit I use Notepad++v.7.5.6 32 bit For me, config file is at C:\progs\Notepad++\plugins\Config\FunctionListRules.xml
EDIT 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 (%APPDATA% worked for me on other machine, for Notepad++ 7.7.1 32 bit.)
*with Notepad++ closed!!!* do backup first then open that file, search for VB, and paste this near that block
<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>
Now then you run Notepad Function list will show subs, functions and labels.
Hope it could help someone.
|
|
|
Post by tsh73 on Jul 16, 2023 10:48:55 GMT -5
Points added in names of functions, subs, labels (to work with Walt's Open GL functions named like
FUNCTION FN.GetPixelFormat(WinHndl, BYREF Dc) ) Underscore removed from names of subs, labels
I was not able to make it recognize ordinary numerical labels, like 10 in
10 goto 10 Fixed that, too
<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="" /> <Rules regexbeg="^\s*" regexfunc="[\d]+" regexend="\s+|$" bodybegin="" bodyend="" sep="" /> </Group> </Language>
|
|