How and where mighty publish new plugin for testing. This plugin is for script automation for N++.Script use very usefull scripts PHP language version 5. It contains full set of command for comunication to and from NPP ,Full NPP Menu commads, command from and to Scintilla module and full very rich commans set of PHP. PHP is very beatifull tools not only for produce HTML service, this is power tool for any use.
To Plugin build easy serwer WWW to comunication NPP < -> server < -> You Browser.(tested for IE and Mozilla).
TODO -> serwer temporary not use Cookies and Sessions <-TODO
This is very userfull tool to NPP and Programers Practices.
I do not know it or was can test version somewhere place in service sourceforge ?.
enjoj
sorry my english, In my age he is not already necessary. :-)
AK
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Very very Thanks for help me :-). I send to You link to install binary files and readme.txt, small manual.
Best regards
AK
for info readme text :
This Package Contains dll (plugins) and remote files for automation PHP scripts
language for Motepad++. Unpack and execute installation and use plugin.
Instalation folders structure :
Notepad++ (folder)
- Plugins (folder)
+ AutomationPHP.dll /plugin/
- Config (folder)
+ PHPOptions.xml (store data options file)
+ Aliases (Store data for aliases httm server)
- PHP (folder)
++++ minimum files for run PHP
- MYSQL (folder)/* example not necesary/
++++ minimum files for run MYSQL Database
- WWW (folder)/* example not necesary/
++++ example root folder for http,php ... files
After install in menu N++ place menu items :
PHP Script
- Run PHP Scripter F9/shortcut key/
- Options
In formular option set for you property :
Output result for standard output (eg: echo and print PHP commands):
--------------------------------------------------------------------
* New File /always result open new window for print result /
* Open File /you select output file/
* Shell execute you default browser / output as file:/// protocol/
* Execute script to browser by build in server
Handle PHP errors :
--------------------
* Errors as html messages
* Errors as showbox messages /Todo Jump to error line/
Specify file and default view for output result (for option "Open File")
------------------------------------------------------------------------
Specify Default root folder and port for http protocol
------------------------------------------------------
Buttons :
* Open to edit standard PHP ini file
* add new Alias folder for server
* Open to edit Aliases store xml file
( root folder without last '\' slash, aliases with last '\' slash added automatically)
Options property is stored in xml file, you can this edit and correct manually.
Short use manual :
Script write as normal php or mixed html+php file. If in current open file is
php script then press F9 for run.
For fast probe is not necessary save file before execute (example):
Open new document "new 1", type and execute(F9)
---------------------------------------------------------begin script--------
<?
print "Hello world";
?>
---------------------------------------------------------end script--------
If you execute and use output via server this formular be displays in you default
browser. This is interactive work mode. Use Post or Get method to send data to N++.
small example :
For action : print_r(get_extension_funcs("NPP_PHP_internal")); you see for all
adding to PHP commands and functions to interaction with N++.
[0] => delphi_date result is actally date in integer format
[1] => npp_extract_file_dir extract directory from full path passed as argument
[2] => npp_extract_file_drive extract drive from full path passed as argument
[3] => npp_extract_file_name extract filename from full path passed as argument
[4] => npp_extract_file_ext extract fileext from full path passed as argument
[5] => npp_show_message show standard windows message box
[8] => npp_str_date result actally date as string
[9] => npp_Get_System_Directory info path system windows directory
[10] => npp_input_box show standard input box arguments ("title","prompt",$default value)
[12] => nppMenuExec group commands for N++ menu commands arguments constant name as string eg: nppMenuExec("IDM_ABOUT");
[14] => nppUserCommand group commands for specify N++, commands arguments constant name as string eg: nppUserCommand("NPPM_ACTIVATEDOC",int $view,int $docid);
[15] => sciGetText Get all text from current document;
[16] => nppGetOpenFiles Open List all opened documents, result as array
[17] => sciText group commands for Scintilla text operations, commands arguments constant name as string eg: sciText("SCI_SETTEXT",string $text);
[18] => sciOvertype group commands for Scintilla overtype operations, commands arguments constant name as string eg: sciOvertype("SCI_COPYRANGE",int $StartPos, int $StopPos);
[19] => sciErrorHandle group commands for Scintilla Error status operations, commands arguments constant name as string eg: sciErrorHandle("SCI_GETSTATUS");
[20] => SciUndoRedo group commands for Scintilla Redo Undo operations, commands arguments constant name as string eg: SciUndoRedo("SCI_UNDO");
[21] => SciSelectInfo group commands for Scintilla Selection and Info operations, commands arguments constant name as string eg: SciSelectInfo("SCI_SELECTALL");
[22] => SciScroll group commands for Scintilla Scroll operations, commands arguments constant name as string eg: SciScroll("SCI_LINESCROLL", int column, int line);
[23] => SciWhiteSpace group commands for Scintilla White Space operations, commands arguments constant name as string eg: SciWhiteSpace("SCI_SETWHITESPACEBACK", bool $useWhitespaceBackColour, int $colour);
[24] => SciLineEnding group commands for Scintilla Line Ending operations, commands arguments constant name as string eg: SciLineEnding("SCI_SETVIEWEOL",bool $visible)",
[25] => SciStyle group commands for Scintilla Style operations, commands arguments constant name as string eg: SciStyle("SCI_SETSELBACK",bool $useSelectionBackColour, int $colour);
[26] => SciMargins group commands for Scintilla Margins operations, commands arguments constant name as string eg: SciMargins("SCI_SETMARGINLEFT", int $pixels);
[27] => SciOtherSetings group commands for Scintilla Other Settings operations, commands arguments constant name as string eg: SciOtherSetings("SCI_SETCODEPAGE",int $codePage);
[28] => SciTabsIdents group commands for Scintilla Tab and Idents operations, commands arguments constant name as string eg: SciTabsIdents("SCI_SETTABWIDTH",int $widthInChars);
[29] => SciMarkers group commands for Scintilla Markers operations, commands arguments constant name as string eg: SciMarkers("SCI_MARKERADD",int $line, int $markerNumber);
[30] => SciIndicators group commands for Scintilla for Indicators operations, commands arguments constant name as string eg: SciIndicators("SCI_INDICSETFORE",int $indicatorNumber, int $colour)
[31] => SciAutocompletion group commands for Scintilla Autokompletion operations, commands arguments constant name as string eg: SciAutocompletion("SCI_AUTOCSHOW","one\ntwo\nhundred\n");
[32] => SciCalltips group commands for Scintilla Other Settings operations, commands arguments constant name as string eg: SciCalltips("SCI_USERLISTSHOW","one\ntwo\nhundred\n"):
[33] => SciKey group commands for Scintilla Key Press operations, commands arguments constant name as string eg: SciKey("SCI_LINEEND");
Full list Scintilla commands is available on Scintilla documentation ....
Best Regards, full satisfaction and Enjoy
sorry for linguistic errors, my english is not good :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry thi is my first plugin.
How and where mighty publish new plugin for testing. This plugin is for script automation for N++.Script use very usefull scripts PHP language version 5. It contains full set of command for comunication to and from NPP ,Full NPP Menu commads, command from and to Scintilla module and full very rich commans set of PHP. PHP is very beatifull tools not only for produce HTML service, this is power tool for any use.
To Plugin build easy serwer WWW to comunication NPP < -> server < -> You Browser.(tested for IE and Mozilla).
TODO -> serwer temporary not use Cookies and Sessions <-TODO
This is very userfull tool to NPP and Programers Practices.
I do not know it or was can test version somewhere place in service sourceforge ?.
enjoj
sorry my english, In my age he is not already necessary. :-)
AK
my post delivery return bad address , you post is ( don dot h at free dot fr ) or maybe ( don dot ho at free dot fr ) ???
AK
Just send me ( don dot h at free dot fr ) the zipped binary+readme then I will upload to project page for those who want to test it.
Don
Very very Thanks for help me :-). I send to You link to install binary files and readme.txt, small manual.
Best regards
AK
for info readme text :
This Package Contains dll (plugins) and remote files for automation PHP scripts
language for Motepad++. Unpack and execute installation and use plugin.
Instalation folders structure :
Notepad++ (folder)
- Plugins (folder)
+ AutomationPHP.dll /plugin/
- Config (folder)
+ PHPOptions.xml (store data options file)
+ Aliases (Store data for aliases httm server)
- PHP (folder)
++++ minimum files for run PHP
- MYSQL (folder)/* example not necesary/
++++ minimum files for run MYSQL Database
- WWW (folder)/* example not necesary/
++++ example root folder for http,php ... files
After install in menu N++ place menu items :
PHP Script
- Run PHP Scripter F9/shortcut key/
- Options
In formular option set for you property :
Output result for standard output (eg: echo and print PHP commands):
--------------------------------------------------------------------
* New File /always result open new window for print result /
* Open File /you select output file/
* Shell execute you default browser / output as file:/// protocol/
* Execute script to browser by build in server
Handle PHP errors :
--------------------
* Errors as html messages
* Errors as showbox messages /Todo Jump to error line/
Specify file and default view for output result (for option "Open File")
------------------------------------------------------------------------
Specify Default root folder and port for http protocol
------------------------------------------------------
Buttons :
* Open to edit standard PHP ini file
* add new Alias folder for server
* Open to edit Aliases store xml file
( root folder without last '\' slash, aliases with last '\' slash added automatically)
Options property is stored in xml file, you can this edit and correct manually.
Short use manual :
Script write as normal php or mixed html+php file. If in current open file is
php script then press F9 for run.
For fast probe is not necessary save file before execute (example):
Open new document "new 1", type and execute(F9)
---------------------------------------------------------begin script--------
<?
print "Hello world";
?>
---------------------------------------------------------end script--------
If you execute and use output via server this formular be displays in you default
browser. This is interactive work mode. Use Post or Get method to send data to N++.
small example :
---------------------------------------------------------begin script--------
<?
if ($_POST["submit"]=="php_info") { phpinfo(); };
if ($_POST["submit"]=="open new document") {
nppMenuExec("IDM_FILE_NEW");
$filearr=nppGetOpenFiles();
$txt=print_r($filearr,true);
sciText("SCI_SETTEXT",$txt);
};
?>
<html>
<body>
<center><h3>Demo <?php print time(); ?></h3></center><br />
<form action="index.php" method="POST">
<input name="tx1" type="text" value="hello world" /><br />
<textarea name="ta" cols="50" rows="10" wrap="physical">This is example text</textarea><br />
<input name="submit" type="submit" value="php info" /><br />
<input name="submit" type="submit" value="open new document" /><br />
</form>
<?php
print "<pre>\n";
print "GET enviroment variables\n";
print_r($_GET);
print "POST enviroment variables\n";
print_r($_POST);
print "SERVER enviroment variables\n";
print_r($_SERVER);
print_r(get_loaded_extensions());
print_r(get_extension_funcs("NPP_PHP_internal"));
print "</pre>\n";
?>
</body>
</html>
---------------------------------------------------------end script--------
For action : print_r(get_extension_funcs("NPP_PHP_internal")); you see for all
adding to PHP commands and functions to interaction with N++.
[0] => delphi_date result is actally date in integer format
[1] => npp_extract_file_dir extract directory from full path passed as argument
[2] => npp_extract_file_drive extract drive from full path passed as argument
[3] => npp_extract_file_name extract filename from full path passed as argument
[4] => npp_extract_file_ext extract fileext from full path passed as argument
[5] => npp_show_message show standard windows message box
[8] => npp_str_date result actally date as string
[9] => npp_Get_System_Directory info path system windows directory
[10] => npp_input_box show standard input box arguments ("title","prompt",$default value)
[12] => nppMenuExec group commands for N++ menu commands arguments constant name as string eg: nppMenuExec("IDM_ABOUT");
[14] => nppUserCommand group commands for specify N++, commands arguments constant name as string eg: nppUserCommand("NPPM_ACTIVATEDOC",int $view,int $docid);
[15] => sciGetText Get all text from current document;
[16] => nppGetOpenFiles Open List all opened documents, result as array
[17] => sciText group commands for Scintilla text operations, commands arguments constant name as string eg: sciText("SCI_SETTEXT",string $text);
[18] => sciOvertype group commands for Scintilla overtype operations, commands arguments constant name as string eg: sciOvertype("SCI_COPYRANGE",int $StartPos, int $StopPos);
[19] => sciErrorHandle group commands for Scintilla Error status operations, commands arguments constant name as string eg: sciErrorHandle("SCI_GETSTATUS");
[20] => SciUndoRedo group commands for Scintilla Redo Undo operations, commands arguments constant name as string eg: SciUndoRedo("SCI_UNDO");
[21] => SciSelectInfo group commands for Scintilla Selection and Info operations, commands arguments constant name as string eg: SciSelectInfo("SCI_SELECTALL");
[22] => SciScroll group commands for Scintilla Scroll operations, commands arguments constant name as string eg: SciScroll("SCI_LINESCROLL", int column, int line);
[23] => SciWhiteSpace group commands for Scintilla White Space operations, commands arguments constant name as string eg: SciWhiteSpace("SCI_SETWHITESPACEBACK", bool $useWhitespaceBackColour, int $colour);
[24] => SciLineEnding group commands for Scintilla Line Ending operations, commands arguments constant name as string eg: SciLineEnding("SCI_SETVIEWEOL",bool $visible)",
[25] => SciStyle group commands for Scintilla Style operations, commands arguments constant name as string eg: SciStyle("SCI_SETSELBACK",bool $useSelectionBackColour, int $colour);
[26] => SciMargins group commands for Scintilla Margins operations, commands arguments constant name as string eg: SciMargins("SCI_SETMARGINLEFT", int $pixels);
[27] => SciOtherSetings group commands for Scintilla Other Settings operations, commands arguments constant name as string eg: SciOtherSetings("SCI_SETCODEPAGE",int $codePage);
[28] => SciTabsIdents group commands for Scintilla Tab and Idents operations, commands arguments constant name as string eg: SciTabsIdents("SCI_SETTABWIDTH",int $widthInChars);
[29] => SciMarkers group commands for Scintilla Markers operations, commands arguments constant name as string eg: SciMarkers("SCI_MARKERADD",int $line, int $markerNumber);
[30] => SciIndicators group commands for Scintilla for Indicators operations, commands arguments constant name as string eg: SciIndicators("SCI_INDICSETFORE",int $indicatorNumber, int $colour)
[31] => SciAutocompletion group commands for Scintilla Autokompletion operations, commands arguments constant name as string eg: SciAutocompletion("SCI_AUTOCSHOW","one\ntwo\nhundred\n");
[32] => SciCalltips group commands for Scintilla Other Settings operations, commands arguments constant name as string eg: SciCalltips("SCI_USERLISTSHOW","one\ntwo\nhundred\n"):
[33] => SciKey group commands for Scintilla Key Press operations, commands arguments constant name as string eg: SciKey("SCI_LINEEND");
Full list Scintilla commands is available on Scintilla documentation ....
Best Regards, full satisfaction and Enjoy
sorry for linguistic errors, my english is not good :-)