scite php code beautifier

89 views
Skip to first unread message

chenboye

unread,
Jun 27, 2008, 12:18:30 PM6/27/08
to scite-interest
I think scite is a powerful editor. I like it.
I want to know how can I use the phpcb.exe(php code beatifier) as well
as editplus work with phpcb.exe.
I specify the build menu item as below:
command.build.$(file.patterns.php)=$(SciteDefaultHome)\phpcb\phpcb.exe
--space-after-start-bracket --space-before-end-bracket --space-after-
if --optimize-eol --space-after-switch --space-after-while --space-
before-start-angle-bracket --space-after-end-angle-bracket --extra-
padding-for-case-statement --glue-amperscore --change-shell-comment-to-
double-slashes-comment --indent-with-tab --force-large-php-code-tag --
force-true-false-null-contant-lowercase --comment-rendering-style PEAR
--equal-align-position 50 --padding-char-count 1 $(FileNameExt)

So I can get the beautified code in the output area , not in the edit
area as editplus.

Neil Hodgson

unread,
Jun 28, 2008, 7:48:23 AM6/28/08
to scite-i...@googlegroups.com
chenboye:

> I want to know how can I use the phpcb.exe(php code beatifier) as well
> as editplus work with phpcb.exe.
> I specify the build menu item as below:

You can either find an option in phpcb to change the file in place
rather than writing it to standard output or use a script or command
line to do that. To have the file automatically reload in the editor,
it is easier to use a numbered command command.number.<filepattern>
and the command.is.filter.<number>.<filepattern> option. Here is a
similar type of command for C++:

command.name.0.$(file.patterns.cpp)=Indent
command.0.$(file.patterns.cpp)=astyle -tapOK -M8 $(FileNameExt)
command.is.filter.0.$(file.patterns.cpp)=1

Neil

Reply all
Reply to author
Forward
0 new messages