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
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

It work with F5, F6 and F7 :wink:

Codepage and Compileroption must be set!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Post by RichardL »

Thanks gnozal.

As I have said before...

and will probably say again...

jaPBe is what makes PB fly :D
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

We are spoilt with IDEs.

JaPBe is awesome.

The new IDE is young, though, and it is catching up on JaPBe features and surpassing in some areas. Give it a little more time ... :)
@}--`--,-- A rose by any other name ..
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- added folding for Import[C]/EndImport
- fixed combobox height in 'jaPBe - Preferences' dialog 'Skin' tab
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- changed DefType to Define
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Good work Gnozal. Thank you again.

Please, can you add folding for 'Macro / EndMacro' ?
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:Please, can you add folding for 'Macro / EndMacro' ?
Done !
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- new folding style options in Files\Preferences\Style/Editor, with plus/minus boxes and circles like in the PB IDE (if activated, source loading takes more time).
It was difficult to implement, because jaPBe's coloring routines don't handle all the scintilla markers needed for this, I had to add some markers of my own...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Well done !
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 »

Update

Changes :
- some fixes
- source loading with new folding options enabled is now much faster
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Post by RichardL »

Hi Gnozal,

I am one of jaPBe greatest fans. It is a tool that makes it so much easier to focus on the goal I'm trying to acheive than having to focus on the tool I'm using to acheive the goal. I appreciate your efforts in making this excellent tool even better.

I have a suggestion that would make jaPBe even better; I realise jaPBe not your main concern, but if its not a difficult addition how about this feature?

To tidy up a block of hastily written code we currently highlight it and press Cntrl+TAB... everything gets indented to follow the structure of the program. This is one of jaPBe great strengths.

If I press SHIFT/Cntrl/TAB the same thing happens but all the comments on lines with source code are indented to match the comment of the first line of the block.

For me this would be productive because I often ghost out a new new bit of code by typing the functions as comments and then put the code in afterwards.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

@RichardL : sorry, I don't understand what you mean.
Could you provide a code example (in forum code tags), before and after code reformating by your requested feature ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Post by RichardL »

Hi gnozal,

Here is an example of what I mean...

Code: Select all


; Untidy code
For x = 1 To 100    ; Do 100 times
  a.f = Sqr(x) ; Find the root        
  If a < 5 
     Beep_(1000,10) 
   EndIf
      Next ;Loop
End
 
; After highlighting and pressing Cntrl+TAB. Standard jaPBe feature
For x = 1 To 100    ; Do 100 times
  a.f = Sqr(x) ; Find the root        
  If a < 5 ; Small enough?
    Beep_(1000,10)  
  EndIf
Next ;Loop
End
  
; After highlighting and pressing SHIFT+Cntrl+TAB. Nice to have!
; All comments on lines with code are set to same column  as the first line
For x = 1 To 100    ; Do 100 times
  a.f = Sqr(x)      ; Find the root        
  If a < 5          ; Small enough?
    Beep_(1000,10)  
  EndIf
Next                ; Loop
End
I am a great beleiver in 'tidy looking code'. I have to maintain code that is several years old and a tidy layout is a great help to 'getting back into' old code.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Ok, I will see what I can do.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- new autoindent alternative [Ctrl+Shift+Tab] : like Ctrl+Tab but all comments on lines with code are set to same column as the first line

Example :

Before

Code: Select all

; Untidy code 
For x = 1 To 100  ; Do 100 times 
a.f = Sqr(x) ; Find the root        
If a < 5 
Beep_(1000,10) 
EndIf 
Next                ;Loop 
End ; End
After Crtl+Tab

Code: Select all

; Untidy code 
For x = 1 To 100  ; Do 100 times 
  a.f = Sqr(x) ; Find the root        
  If a < 5 
    Beep_(1000,10) 
  EndIf 
Next                ;Loop 
End ; End
After Ctrl+Shift+Tab

Code: Select all

; Untidy code 
For x = 1 To 100  ; Do 100 times 
  a.f = Sqr(x)    ; Find the root        
  If a < 5 
    Beep_(1000,10) 
  EndIf 
Next              ;Loop 
End               ; End
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply