NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Auto beautify, of the code.
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
I would love a function that could clean up the code and make it stan beautiful with correct indents etc.

I have seen this i other EDI's
You define how many indents, if brackets should be placed like

class something {
}

or

class something
{
}

And the conde beautifier will clean up the code for you. Nice tool.
View user's profileFind all posts by hgrSend private message


Joined: 08 Feb 2007
Posts: 67
Reply with quote
Tools > Settings > Editor > Editor settings ?


And for the code beautifier:

- Right-click on file
- Click "Format text with PolyStyle"

You can edit the PolyStyle settings by running - {phpedInstallDirectory}\polystyle\polystyle.exe
View user's profileFind all posts by nothsaSend private message
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
FANTASTIC......

This editor is unbeatable.
View user's profileFind all posts by hgrSend private message
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
Hmm it apears to be an external tool, and a trial version too.

What is the catch, Will you have to purchase a license or is one included in the PHPEd ?
View user's profileFind all posts by hgrSend private message


Joined: 16 Oct 2006
Posts: 29
Reply with quote
This is an external tool, so you need to buy a separate license.
View user's profileFind all posts by MiguelSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
you may integrate your own script formatting your code, like suggested there:
http://forum.nusphere.com/some-useful-scripts-for-phped-t1989.html
general idea is described there: http://forum.nusphere.com/howto-use-a-php-script-for-my-editing-t753.html

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Auto beautify, of the code.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic