PB IDE plugin : smart indent, remove spaces, autocompletions

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

I don't suppose it would be possible to make all operators (+, -, *, /) and comparisons (<, >, <>, <=, >=, =) formatted, or at least disable the auto formatting for them.

For instance, I currently get:

Code: Select all

If (StarField(i)\X>=-1 And StarField(i)\X<640)
x + ((i-1)*#LetterSpacing)
personally I prefer:

Code: Select all

If (StarField(i)\X >= -1 And StarField(i)\X < 640)
x + ((i - 1) * #LetterSpacing)
Of course this throws up issues with "=", when do you add spaces around it, and of course the "-" which may or may not require a space dependent on if it's being preceeded by a comparison operator.

I don't know if this is possible to implement, but if not, what would be best options for disabling it?
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

One more thing: I've just tried to install it on a new install of PureBasic, but there was a previous version, and it isn't picking up the install location correctly.

Could you add an override location please :)
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

Hi, will there be anything new in the next time?
Otherwise I'll be able to make a short holiday trip with my new car :lol:

Michael
rw
User
User
Posts: 27
Joined: Mon Sep 04, 2006 9:55 pm

Post by rw »

Hello,

Great tool!

I have the same problem like Foz above.

When i try to install the tool on a new install of Pure Basic, it picks
the install path of a previous an old Pure Basic installation.

Fine if you could fix this one.


rw
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

A really good tool!

Could you add the option that assignments via "=" will be on the same horizontal pos on following lines.

like

Code: Select all

Enumeration
  #dejehhej = 2
  #djduejj = 1
  #sjeidjjjdj = 5
  #oehdbnbdz = 3
EndEnumeration
will become ...

Code: Select all

Enumeration
  #dejehhej   = 2
  #djduejj    = 1
  #sjeidjjjdj = 5
  #oehdbnbdz  = 3
EndEnumeration
maybe thats already on the list and I didn't catch it ...
Check out OOP support for PB here!
somic
User
User
Posts: 66
Joined: Sun Jun 29, 2008 9:11 am
Location: Italy
Contact:

PureEditorExtension: Installation problems

Post by somic »

Eddy,
I've just downloaded your PureEditorExtension.exe (v 3.8) but I've problems installing it.

I get a form report with 5 messages: "ERROR: failed to write file!"

I don't know how too change the PureEditorExtension installation directory that for me is different from the default (c:\program files\purebasic).

Any suggestion?

Many thanks in advance.
Carlo
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 345
Joined: Sat Dec 25, 2004 2:37 pm

Post by thyphoon »

I have the same problem
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I'll take a look.

I don't know exactly how PB configuration works.
I used a snippet to code this part. :roll:

For the moment, it uses a windows registry entry.
I can add a path browser to fix this issue.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
wmorton
User
User
Posts: 81
Joined: Fri Jul 25, 2003 5:39 pm

Post by wmorton »

Hi, I installed it from my desktop to test it out (it's great!) but now when I try to install from another location (tidier), when I load PB it complains it can't find the icons that were on the desktop... can I change the location it is looking for manually? Or is there a way to do a clean uninstall and reinstall of the formatter? Thanks!
User avatar
Pforzheimer
User
User
Posts: 21
Joined: Thu Sep 25, 2008 7:12 am
Location: Germany
Contact:

Post by Pforzheimer »

Hi eddy, you programed the tool i always wanted to do on my own :-)
Keep on working on it!
eddy wrote:I don't know exactly how PB configuration works.
I used a snippet to code this part. :roll:

For the moment, it uses a windows registry entry.
I can add a path browser to fix this issue.
Let's see if i can help you...

Your installer looks for the path in
HKCU\Software\Classes\Applications\PureBasic.exe\shell\open\command
and
HKCR\Applications\PureBasic.exe\shell\open\command

But when they both will be "NOT FOUND" you must give the user the chance to choose the path.

I don`t know the official registry-positions for the PB-path (aks the developers),
but the two that you check are not always present
(is it possible that your program deletes one or both of them?).
I had the same problem, installing your tool a second time
(first time was okay, but i wanted to move the position on my hardisk)
and so i tried to find the error - succesfull :D
I deinstalled ALL of PB and reinstalled it, to find the error,
but still couldnt install your tool.

There is another registry-key you could use, this one seems to be always present
HKCR\PureBasic.exe\shell\open\command

But, as i said - better ask the programers...

Greetings from
Pforzheimer

P.S. This was my first post in this forum :P

----------------------------------
forget about my typos and mistakes :-)
sospel
User
User
Posts: 16
Joined: Wed Sep 17, 2008 3:34 pm

smart indent eddy

Post by sospel »

Hello !

after having downloaded PureBasic DEMO V4.2, I've also downloaded this morning Pure Editor Extension, V3.8 and placed it in PureBasic directory. But I've same diag. as somic : "5 messages: "ERROR: failed to write file!" ( I work under Windows XP) :((
So, can you write a little "README" to explain how install it ?

Thanks for answer !
Cordially
SosPel
User avatar
Tomi
Enthusiast
Enthusiast
Posts: 270
Joined: Wed Sep 03, 2008 9:29 am

Post by Tomi »

Hello
How can do remove plugin as full and install again? :?:



Edit:
it solved now
by uninstall and install again of PB :D
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I'll post some screenshots if you want to install it manually.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

Hi,

great tool! I love it, but the latest download does not work for me!
When I try to install, the pb-programm-directory-path in your tool is empty.
Then the tool crashes.

Any recommendations to fix this? Thanks.
cheers,

bembulak
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post by kawasaki »

*Bumping the Installation Error for latest version of Purebasic*
Post Reply