PB IDE plugin : smart indent, remove spaces, autocompletions

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

WOW! Now it works! 8) 8) 8)
Thanks, thanks, thanks!
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

eddy wrote:[version v3.2b]
FIXED : saving parameters (v3.2) :oops:
It was my fault I broke my previous version because of only one line. :shock:
I can continue to add features now :lol:

btw, what kind of OOP precompiler did you test ?
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

eddy wrote:btw, what kind of OOP precompiler did you test ?
it's not a precompiler. it's a my class generator based on the macroses
POiNT.OF.PRESENCE group
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

Bug:

Code: Select all

ProcedureC Test()
ProcedureReturn 1
EndProcedure
No indentation
POiNT.OF.PRESENCE group
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

Another bug:

Code: Select all

Macro MyMacro1(a1, a2)
    Procedure test()
      Protected c
EndMacro

Macro EndMyMacro1
EndProcedure
EndMacro
MyMacro1 and EndMyMacro1 - Custom keywords
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

sorry the next release will take more time.
Im fighting with scintilla regex for word-spacing. :evil:
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[version v3.3]
ADDED : format word-spacing
FIXED : ProcedureC indent

Code: Select all

If TEST( 1,2,3 ) = 4
	x =x+ 1/2:START ()		  ;// result		
EndIf
:arrow: formatted code

Code: Select all

If TEST(1, 2, 3)=4
	x=x+1/2 : START()		  ;// result		
EndIf
[/code]
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

eddy wrote:[version v3.3]
ADDED : format word-spacing
good idea! 10x!

To wishlist:
I want to use '( 1,2 ,3) -> (1, 2, 3)' and I don't want to format 'x = x' to 'x=x' . But all variants -> single option... New tab? :)
POiNT.OF.PRESENCE group
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

This is great! :)

One thing: the CompilerIf, etc doesn't indent.
Also, I prefer x = y over x=y, could this be an option please?
Last edited by Foz on Mon May 19, 2008 8:26 am, edited 2 times in total.
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

SofT MANiAC wrote:
eddy wrote:[version v3.3]
ADDED : format word-spacing
good idea! 10x!
http://www.purebasic.fr/english/viewtop ... highlight= ;-)


Anyhow, great work eddy. BTW: Do you take use of a lexer like remi meiers one or do you get the token via stringfield()-like commands?
Check out OOP support for PB here!
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I used the scintilla regex function
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

Fatal Error seen :(

Press "Enter" at the end of a source code line and then Alt-Backspace !

Michael
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

Michael Vogel wrote:Fatal Error seen :(

Press "Enter" at the end of a source code line and then Alt-Backspace !

Michael
I dont confirm this error
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I can't reproduce this bug ???
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

eddy wrote:I can't reproduce this bug ???
I pressed the following keys (no spaces) after creating a new source:

a <enter> a <anter> a <enter> <up> <up> <end> <enter> <alt-backspace>

That's it!

But it has only problems, if you have all options but Format word-spacing on !

Michael
Post Reply