Page 1 of 2

PB IDE plugin - Beautify code while typing

Posted: Mon Mar 18, 2013 4:23 am
by eddy
:arrow: new version for PB5.30 available here: Link

This tool provides the following features:
  • - Beautify current line code after keying some special characters: ( ) , ; :
    - Beautify previous lines code after keying RETURN
    - Beautifier features:
    • remove trailling spaces
    • write or extend comment block
    • code format on the fly
    • indent code on the fly
    • paste formatted and indented code
    - Modify caret tickness
    - code highlighting (like notepad++)
    - settings panel [TODO]
:arrow: Download zip: dropbox.com/.../PB_editor_extensions.zip
This zip file contains:
  • tool source code
  • tool project file
  • tool EXE and DLL (win - 64bit version)
    If you want a 32bit version, open the project file .pbp and click on menu: compiler > build all targets

:arrow: Demo Video of old version: http://www.screencast.com/users/rineddy ... f7280bb9d8
:arrow: Link to old version: http://www.purebasic.fr/english/viewtop ... 27&t=31689

How to configure this tool:
  • For loaded files
    Image
  • For created files
    Image

Re: PB IDE plugin - Beautify code while typing

Posted: Tue Mar 19, 2013 2:33 pm
by Thunder93
Good tool eddy! any way to have this format an already existing project?

Re: PB IDE plugin - Beautify code while typing

Posted: Wed Mar 20, 2013 5:55 pm
by eddy
Auto Format
Image

Comment block helper
Image Image Image Image

Re: PB IDE plugin - Beautify code while typing

Posted: Wed Mar 20, 2013 7:19 pm
by Thunder93
Good stuff! Keep up the good work on here Eddy!

Re: PB IDE plugin - Beautify code while typing

Posted: Thu Mar 21, 2013 6:58 pm
by eddy
[Updated]
- feature added : code formatting while typing
- project updated : new function SciAutoFormat

Re: PB IDE plugin - Beautify code while typing

Posted: Thu Mar 21, 2013 7:21 pm
by Thunder93
Nice job eddy! And much appreciation.

Re: PB IDE plugin - Beautify code while typing

Posted: Fri Mar 22, 2013 4:28 am
by Alireza
TX eddy, have good times :D

Re: PB IDE plugin - Beautify code while typing

Posted: Fri Mar 22, 2013 6:13 am
by Alireza
can you make it for quit whit pb-editor close Simultaneously؟

Re: PB IDE plugin - Beautify code while typing

Posted: Sat Mar 23, 2013 3:00 am
by eddy
[Updated]
- improvement : tool auto-close
- feature added : paste formatted code
- feature added : formating current line
- project updated : new function SciCommitPaste

Paste formatted and indented code
Image Image

Re: PB IDE plugin - Beautify code while typing

Posted: Sat Mar 23, 2013 10:33 am
by Alireza
that's useful tool, thanks man :D

Re: PB IDE plugin - Beautify code while typing

Posted: Mon Mar 25, 2013 2:05 am
by eddy
[Updated]
- feature added : paste indented code
- feature added : indent after keying SPACE

WARNING: This indentation system is experimental.
I don't like this solution. I'll remove or replace it in a futur version.
In this version, the tool selects your code and simulate a accelerator keystroke ( CTRL+I )

Re: PB IDE plugin - Beautify code while typing

Posted: Sat Mar 30, 2013 8:24 am
by eddy
[Updated]
Added : new indentation code (splitted line supported)
Removed : old indentation code using keystrokes CTRL+I

Re: PB IDE plugin - Beautify code while typing

Posted: Sat Mar 30, 2013 4:18 pm
by Alireza
very useful :D tx

Re: PB IDE plugin - Beautify code while typing

Posted: Sun Mar 31, 2013 2:26 am
by sec
Thanks,
Could add feature : when click to selected name /variable/func,.. It will highlight same name around?
Same in notepad++

Re: PB IDE plugin - Beautify code while typing

Posted: Mon Apr 01, 2013 1:47 pm
by yrreti
Hi eddy

I have it set up as shown, but it still does not close when exiting the PureBasic IDE.
I always have to manually close it after closing the IDE. Is there a change in settings that
needs to be done?