NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
php Beautifier (phpedits version)


Joined: 21 Mar 2004
Posts: 3
Reply with quote
Can anyone help.

I am trying to run the command line version of phpCB on a win2k platform. I can run it fine through the shell (dos cmd) directly, but when I try to use the customisation feature in phpED it will not let me add the PEAR 50 and 4 options.

"C:\Program Files\CODE Beautifier\phpCB" -space-after-if -space-after-switch -space-before-start-angle-bracket -space-after-end-angle-bracket -one-true-brace-function-declaration -glue-amperscore -change-shell-comment-to-double-slashes-comment -force-large-php-code-tag -force-true-false-null-contant-lowercase -align-equal-statements -comment-rendering-style PEAR -equal-align-position 50 -padding-char-count 4 @FName@ Crying or Very sad

when I run the command through phpED customisation I get the following error in the top of my script:

An option ("-comment-rendering-style") has been found, but no handler has been defined for it.
An option ("PEAR") has been found, but no handler has been defined for it.
An option ("-equal-align-position") has been found, but no handler has been defined for it.
An option ("50") has been found, but no handler has been defined for it.
An option ("-padding-char-count") has been found, but no handler has been defined for it.
An option ("4") has been found, but no handler has been defined for it.

Does anyone know the correct format to enter the options through phpED customisation?????

_________________
ON
View user's profileFind all posts by roneillSend private message
php Beautifier (phpedits version)


Joined: 21 Mar 2004
Posts: 3
Reply with quote
Solved it myself!

--comment-rendering-style PEAR --equal-align-position 50 --padding-char-count 4

options with out an option start with -

optionw with options start --

_________________
ON
View user's profileFind all posts by roneillSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
So I assume it works fine now ?
View user's profileFind all posts by dmitriSend private messageVisit poster's website
php Beautifier (phpedits version)


Joined: 21 Mar 2004
Posts: 3
Reply with quote
Yes,

1 tip for anyone else using this with phpED.

There is an option which is not documented, but very necessary.

-optimize-eol

add this option and your code and it will be beautified perfectly (Very Fast)

Hope this helps someone

_________________
ON
View user's profileFind all posts by roneillSend private message
php Beautifier (phpedits version)
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