jaPBe 3.13.4 [IDE for PB 4 and PB 5]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

i know this request isn't so easy for gnozal.

you can use ;{ just after the If statement
and ;} after the Endif.

Code: Select all

If test ;{
  
  ; your code
  
EndIf ;}
if works in jaPBe and the official IDE as it is a Scintilla feature.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Yes, Flype is right.
And you could write a jaPBe plugin that automatically adds ;{/;} after If/EndIf in a source file :wink:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
mknjc
New User
New User
Posts: 4
Joined: Sun Oct 15, 2006 11:08 am

Post by mknjc »

Good idea but why its not so easy.

Now i must check how to build a jaPBe Plugin.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

The PB IDE can do it. You can define any word to start/end a fold.
The ";}" is not a Scintilla feature. The PB IDE implements it simply as another keyword.
You could just as easily use ";WHATEVER" if you like.
quidquid Latine dictum sit altum videtur
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

@freak

+1

and it's true that your 'folding option' dialog is piece of cake. 8)
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

mknjc wrote:Good idea but why its not so easy.
because jaPBe was initiated/developped by GPI but no more.
gnozal continue the development - fortunately jaPBe is opensource.
very thanks to him for the big effort he do.

maybe freak will laught when reading this,
but i discuss with gnozal in the past about this folding feature and gnozal said me how it is complex to modify/extends the folding keywords list.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Flype wrote:
mknjc wrote:Good idea but why its not so easy.
because jaPBe was initiated/developped by GPI but no more.
gnozal continue the development - fortunately jaPBe is opensource.
very thanks to him for the big effort he do.

maybe freak will laught when reading this,
but i discuss with gnozal in the past about this folding feature and gnozal said me how it is complex to modify/extends the folding keywords list.
Yes, it's quite difficult to modify someone else's code without messing things up. In jaPBe, the folding is 'hard coded' and embedded in the coloring code ; changing this would mean to change all the folding/syntax coloring code in jaPBe. Some coders tried, and it worked somehow but was not perfect (missing features, random bugs).
This feature is not critical to me, so it's very low on my priority list. But I will probably do it some day.
I am myself totally jaPBe addicted, but Fr34k did an amazing job on the PB IDE, so give it a try.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

Feature-request to make JaPBe compatible to versioning-systems:

Can you add an option to projectoptions that moves JaPBe's footprint(FoldLines=,Executable= a.s.o.) to an external file?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Dummy wrote:Feature-request to make JaPBe compatible to versioning-systems:
Can you add an option to projectoptions that moves JaPBe's footprint(FoldLines=,Executable= a.s.o.) to an external file?
If it is for version/build handling, you only need the version info and not the all the footprint, correct ?
Would it be sufficient to create an extra file (like 'MyProject.pb.version') containing the version information (the 'File Version' information in the Project Options 'Version' tab) ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

gnozal wrote:
Dummy wrote:Feature-request to make JaPBe compatible to versioning-systems:
Can you add an option to projectoptions that moves JaPBe's footprint(FoldLines=,Executable= a.s.o.) to an external file?
If it is for version/build handling, you only need the version info and not the all the footprint, correct ?
Would it be sufficient to create an extra file (like 'MyProject.pb.version') containing the version information (the 'File Version' information in the Project Options 'Version' tab) ?
Ok concrete request:
Add one option to Project settings (gets stored as additional Footprint thingy, but that's ok) that makes these changes:

Remove:
jaPBe Version=

Remove or move to external file:
FoldLines=
FirstLine=
CursorPosition=

Make paths relative at all costs:
Manual Parameter=
Working Directory=
Icon=
Executable=

After some minutes of wondering I think this will be better than moving everything into an external file as I need some of the stored information and some things are different for every projectmember.

The external file could be simply ignored by the versioning-system (eg. svn) but if it contains any valuable information I can't ignore it...[/code]
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Dummy wrote:Remove:
jaPBe Version=
Why ?
Dummy wrote:Remove or move to external file:
FoldLines=
FirstLine=
CursorPosition=
You will loose any folding information !
Dummy wrote:Make paths relative at all costs:
Manual Parameter=
Working Directory=
Icon=
Executable=
Relative to source directory ?

Something I don't understand : if you are going to parse the source file anyway looking for this footer information, why not ignore the information you want me to remove like you will ignore the code ?
Go to the footer (first line is '; jaPBe Version=' you want me to remove !), read any line until the end of file, and use the information you need.
Doesn't this sound reasonable ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

gnozal wrote:
Dummy wrote:Remove:
jaPBe Version=
Why ?
Dummy wrote:Remove or move to external file:
FoldLines=
FirstLine=
CursorPosition=
You will loose any folding information !
Dummy wrote:Make paths relative at all costs:
Manual Parameter=
Working Directory=
Icon=
Executable=
Relative to source directory ?
gnozal wrote: Something I don't understand : if you are going to parse the source file anyway looking for this footer information, why not ignore the information you want me to remove like you will ignore the code ?
Go to the footer (first line is '; jaPBe Version=' you want me to remove !), read any line until the end of file, and use the information you need.
Doesn't this sound reasonable ?
It's not me who parses that data! It's an external program called "SVN"(subversion). It's something like "CVS"(Current Version System). So if I change folding and compile the file afterwards it is marked as changed for SVN. That's why I want that data to be (re)moved from sources.
Also I need paths relative to source directory(following same rules as the PB compiler does) because SVN is for sharing Sources and different people might have their working copies in different directories ;)
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

Some\Quelques questions

1-
Is there a skin which permits to have the same skin of PB IDE ?
Y a til une apparence qui permet d'avoir la même apparence que l'IDE de PB ?

2-
Does JaPBe manage projects ?
Est ce que JaPBe gère les projets ?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Progi1984 wrote:1-Is there a skin which permits to have the same skin of PB IDE ?
Y a til une apparence qui permet d'avoir la même apparence que l'IDE de PB ?
I don't know what you mean with skin?
You can define all the colors in jaPBe like in the PB IDE, although the toolbar icons are different.
Progi1984 wrote:2- Does JaPBe manage projects ?
Est ce que JaPBe gère les projets ?
You may consider the file lists (*.pbfl) as projects (you can define a main file in a file list). For example, the jaPBe sources (one main pb and several pbi's) are saved as a file list (### jaPBe ###.pbfl).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

Ok thanks for answers !
Post Reply