D
D
Danillab2011-01-25 16:48:13
PHP
Danillab, 2011-01-25 16:48:13

Notepad++ and executing PHP code

Hello!

Please tell me

How can I execute PHP code and get the result in a convenient editor Notepad ++

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
Borro, 2011-01-25
@Borro

F5 -> php "$(FULL_CURRENT_PATH)"
From the documentation:

You can use the browse button to search for your program. The drop down list provides recently run programs. The command line arguments can also be based on the status of the current document, and are always enclosed in $(...), where … can be:
FULL_CURRENT_PATH
the fully qualified path to the current document.
CURRENT_DIRECTORY
The directory the current document resides in.
FILE_NAME
The filename of the document, without the directory.
NAME_PART
The filename without the extension.
EXT_PART
The extension of the current document.
NPP_DIRECTORY
The directory that contains the notepad++.exe executable that is currently running.
>CURRENT_WORD
The currently selected text in the document.
CURRENT_LINE
The current line number that is selected in the document (0 based index, the first line is 0).
CURRENT_COLUMN
The current column the cursor resides in (0 based index, the first position on the line is 0).
For example, "$(NPP_DIRECTORY)\notepad++.exe" -multiInst "$(FULL_CURRENT_PATH)"
would start a new instance of Notepad++ opening the current file. Remember to put quotes around paths if it can contain spaces. For the Notepad++ command line options, see Command Line.

I
Ivan Trofimov, 2011-01-25
@cbone

It seems to me that it's easier for you to use a full-featured IDE rather than trying to turn the editor into an IDE. I am using eclipse

O
olololog, 2011-01-25
@olololog

habreffect.ru/files/9f1/87e0634ac/screenshot2.png NppExec
plugin. And if you need to execute the code remotely, sculpt a batch file (with pscp and plink, for example).

K
kurtov, 2011-01-25
@kurtov

I can't answer the question specifically, but Notepad++ can be an FTP client at the same time. When saving an edited php file, the plugin automatically uploads the file to the server via FTP. This has already been written on Habré.

B
baroleg, 2011-01-25
@baroleg

In my opinion, it's easier to set up your server, for example, taking a ready-made Denver set, and watch through a browser.
Notepad++ is good as an editor, but as an IDE it doesn't seem to be very good.
Although there may be modules, but I have not seen them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question