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 »

ok i'll fix it in the next version
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.8]
- FIXED : crash with long comment block
- ADDED : autocomplete Start..Stop PB functions
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 »

Awesome work. No more crashes yet.

Thanks alot for fixing, I can now use it.

Nice tool.
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

The program gets better and better, thanks!

Some ideas for the program...

- (sometimes) it can take a while until a long source is formated - a button (in the option menu) to format the whole source would be fine

- the "do you want TO install the tool?" questions seems to have been interpreted as a code, because the "TO" has a capitalized "T"

- it would be fine to see the version number in the "install" message above

- I would like to be able to disable the splash screen as well

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

Post by eddy »

Michael Vogel wrote:- (sometimes) it can take a while until a long source is formated - a button (in the option menu) to format the whole source would be fine
Oh I planned to add an option to format whole source at each loading
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.9]
- ADDED : splashscreen option
- ADDED : format whole source after loading
- UPDATED : installer

If you have time to test it with a big source file, give me your feedback and report me any problems.

remark : 'last opened files' are not formatted, I have to fix that. :?

Image
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 »

wow! :)
POiNT.OF.PRESENCE group
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

It's soooo cool! Thanks

Just one small point (.), the IDE window is not active when your tool gets started automatically at startup (even without splash screen), that means one addition mouse click after starting the IDE...

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

Post by eddy »

[released v3.0]
- FIXED : editor focus at start
- FIXED : source formatting (multi-files opening) *

* I can't format any files loaded at the start of editor.
Because the editor launches external tools after loading all files. :?

TODO Idea :
- remove extra empty lines
- format spaces
- compilerIf..Endif margin marks
- translation files
- lexer constant file
- tooltip to preview hidden folded content
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 »

constructions like

Code: Select all

Macro Ca (cname)
  Structure d#cname
  ; a.w
EndMacro

Macro Ca2 (cname)
  Structure d#cname
  ; a.w
EndMacro
makes your tool crazy:

Code: Select all

Macro Ca (cname)
  Structure d#cname
    ; a.w
  EndMacro
  
  Macro Ca2 (cname)
    Structure d#cname
      ; a.w
    EndMacro
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 »

Also "Folding" settings ignored
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

SofT MANiAC wrote:Also "Folding" settings ignored
I can't reproduce this problem.

For the moment I'll fix the MACRO problem.
Last edited by eddy on Thu May 08, 2008 8:03 pm, edited 1 time in total.
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:
SofT MANiAC wrote:Also "Folding" settings ignored
I can't reproduce this problem
IDE -> "Preferences" -> Folding
it would be good to add option "Indent Folding Keywords"
Just I don't know another way to indent custom keywords

For example:

Code: Select all

; now (PureBasic Editor Extension v3.0)
MyKeyword
<some code>
EndMyKeyword

; must be
MyKeyword
  <some code>
EndMyKeyword
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[released v3.1]
- FIXED : macro indent
- ADDED : remove empty lines
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 »

Data File Host wrote:Invalid file ID.
can't download

greetings
Thomas
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
Post Reply