PB IDE plugin : smart indent, remove spaces, autocompletions

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[released]
- FIXED : indent (for non-bold keywords)
- ADDED : custom indent tags ;< and ;> like JAPBE
- ADDED : indent start..stop PB commands

Code: Select all

ProcedureCDLL DUMMY(param.l)
   ;///// STRUCTURE
   Structure TEST
      a.l
      b.s
      StructureUnion
         x.l
         y.l
      EndStructureUnion
   EndStructure
	
   ;///// START-STOP PB FUNCTIONS
   StartDrawing()
		If a>1
			Select a
				Case 10
				Case 20
				Default
					Debug "POP"
			EndSelect
		ElseIf Not a=0
			;> indent
				Debug "POP"
			;< unindent 
		Else
			FillArea(x, y, 1, 0)
		EndIf    
   StopDrawing()
EndProcedure

DataSection
	NumericalData:
	Data.l 100, 200, -250, -452, 145
EndDataSection 
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 »

[released v2.5]
- ADDED : autocomplete end keyword ( by pressing RETURN key like JAPBE )
- UPDATED : configuration panel with tooltip

Image
Last edited by eddy on Wed Apr 09, 2008 1:06 am, edited 1 time in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

thank you.
the only thing is still these *.ini files flying around :lol:
could you maybe live with the following? :
if such a file is found in the program dir of the tool, it will be used and no other ini is created somewhere else. if the program dir doesn't contain that ini file it will create them in the source directories like it's doing it now. (but maybe one more checkbox is even simpler)


for the other people:
try the tool, it's great!
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

It would be simplier if all parameters are stored inside the source code.
( if possible )
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:It would be simplier if all parameters are stored inside the source code.
( if possible )
Good point - but putting the ini into the local directory should be also ok!
using the function GetPathPart(ProgramFilename()) will do so or something like...

Ini.s=ProgramFilename()
Ini=left(ini,len(ini)-3)+"ini"

Michael
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

oops! I misunderstood! I'm tired :shock: ... In my mind, you wanted a INI file in each source directory. :lol:

<edit>
Ok, I'll fix this INI problem.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Booger
Enthusiast
Enthusiast
Posts: 134
Joined: Tue Sep 04, 2007 2:18 pm

Post by Booger »

Nice tool, thanks.

Saves me alot of time so others may read my code.

Now you need to make an advanced remark creator. Kinda like we select a block, type in our remark, and walla, a nice formatted block with a remark.

Thanks for the tool man.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin : smart indent, remove spaces, autocomp...

Post by eddy »

[released v2.6]
- ADDED : quick installer (double-click on EXE file)
- FIXED : save single INI file
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

perfect for me now, thanks :D
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[released v2.7]
- ADDED : autocomplete comment block
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
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 »

works fine here, thanks
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
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

Nice
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

Code: Select all

works fine here, thanks
Good

There's no more option to add.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

Works well here, very handy tool :P
Thanks...
Windows 7 & PureBasic 4.4
Booger
Enthusiast
Enthusiast
Posts: 134
Joined: Tue Sep 04, 2007 2:18 pm

Post by Booger »

Rather annoying bug.

When you select a large block, then right click, then click on insert comments:

IDE crash, general Exception.

Purebasic 4.10

I comment large blocks when looking at differences between OpenGl and Directx rendering often.

Thanks.
Post Reply