PB IDE plugin:autocomplete string & comment, code beautifier

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

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by eddy »

[Updated]
- restored : download link
- minor fixup: cursor placement of comment block
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

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by eddy »

[Updated]
- more formating rules
- custom colors for word highlighting

Image

Image

Image
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by ostapas »

Really handy tool. Many thanks. Would you mind adding an option to set different colouring for linked lists and maps? We could finally distuingish them from procedures.

P.S. Still noticed one drawback: plugin significantly slows down loading of larger projects(2000+ lines). Also slows down folding of code blocks :(
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by eddy »

ostapas wrote: P.S. Still noticed one drawback: plugin significantly slows down loading of larger projects(2000+ lines). Also slows down folding of code blocks :(
I'm using the WindowsHook API to run this plugin. This is far from the best way to code integrated plugin. :?
Even with only hook code , the file loading is slower. With text processing and other workarounds, it's worse.
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

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by eddy »

Updated
- improve file loading time

Tell me if it's better.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by uwekel »

Really great tool! Unfortunately Windows only :-(
This should become part of the PB IDE with cross-platform support :-)
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by ostapas »

Hey, it became perhaps 50% faster! Many thanks again, your tool is real time saver!
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by ostapas »

uwekel wrote:Really great tool! Unfortunately Windows only :-(
This should become part of the PB IDE with cross-platform support :-)
+77
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 281
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by oreopa »

One little issue I notice with this plugin:

Multiple repeated pasting with CTRL + V is a pain... It seems that you must release and re-press CTRL to acheive this... which is annoying :P

I assume its due to the way you are polling for PASTE or CTRL or sth... would be great if you can fix this...

To replicate:

Code: Select all

I WANT TO PASTE THIS TWICE <- SELECT THIS WITH MOUSE, THEN PRESS CTRL + V TWICE; PASTING OVER SELECTION

Code: Select all

Expected output:

I WANT TO PASTE THIS TWICE
I WANT TO PASTE THIS TWICE

Code: Select all

Actual output:

I WANT TO PASTE THIS TWICE <- FIRST PASTE WORKS
v <- SECOND PASTE DOES NOT, AS IF CTRL IS NO LONGER STILL PRESSED WHEN IT ACTUALLY IS
Hope I've explained it clearly enough.

EDIT: I just noticed it only happens with left CTRL + V... right CTRL + V works as expected...
Proud supporter of PB! * Musician * C64/6502 Freak
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by eddy »

Here is the project source code: http://goo.gl/1lPdn6
Last edited by eddy on Sat Dec 06, 2014 6:54 pm, edited 1 time in total.
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

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by eddy »

[updated]
- fix broken multi-paste (CTRL keypress)
- CTRL+ENTER shortcut to insert newline constant

Image

Todo:
- add missing compiler option $CURRENT_HOUR
- autocomplete floating point zero
- autocomplete split comment
- fix string parser
Last edited by eddy on Sun Dec 07, 2014 9:47 pm, edited 5 times in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
missile69
User
User
Posts: 25
Joined: Mon Feb 21, 2011 12:15 pm

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by missile69 »

Really useful tool, Eddy! Thanks for sharing it.
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 281
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by oreopa »

Many many thanx for fixing the Left CTRL + V issue.
Proud supporter of PB! * Musician * C64/6502 Freak
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by eddy »

[updated]
- autocorrect floating point zero
- autocomplete split comment
Image
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

Re: PB IDE plugin:autocomplete string & comment, code beauti

Post by eddy »

[Updated]
- autocomplete string insertion
- autocomplete string cut
Image
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Post Reply