Send Notepad-plus-plus mailing list submissions to
        notepad-plus-plus@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Notepad-plus-plus digest..."


Today's Topics:

   1. [notepad-plus - Plugin Development] RE: REQ.      Plugin for
      custom code prototypes? (SourceForge.net)
   2. [notepad-plus - Open Discussion] N++ 4.9.2,       behaviour for
      undo action (SourceForge.net)
   3. [notepad-plus - Open Discussion] RE:      [HighlightReq] Smarty
      (SourceForge.net)
   4. [notepad-plus - Help] Style config. doesn't       accept new file
      ext. (SourceForge.net)
   5. [notepad-plus - Help] Data virtualization /       Redirection
      problem (SourceForge.net)
   6. [notepad-plus - Help] US Icon (SourceForge.net)
   7. [notepad-plus - Help] Templates inserting missing
      (SourceForge.net)
   8. [notepad-plus - Help] Unable to switch back to    English
      version (SourceForge.net)
   9. [notepad-plus - Debug] Drag and Drop of   ShortCutFile (K.Y)


----------------------------------------------------------------------

Message: 1
Date: Sun, 18 May 2008 07:04:22 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] RE:
        REQ.    Plugin for custom code prototypes?
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4970298
By: donho

Thanks to Harry, the feature you asked will be included in version 5.0. 
It'll not be a plugin but a build-in feature.

Don

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=482781



------------------------------

Message: 2
Date: Sun, 18 May 2008 08:31:53 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] N++
        4.9.2,  behaviour for undo action
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4970405
By: lore77

Hi,

I'm having a strange behaviour when using the undo action (CTRL+Z) in N++ 4.9.2
(it was present in 4.9.1 also); these are the steps to reproduce the issue:

1. open a new empty document;
2. write something like abc;
3. double click on abc to select the whole word and press a; the text should
be replaced by a;
4. press CTRL+Z to perform an undo.

The text a should be reverted to abc, instead what I get is an empty document;
then, if I press CTRL+Z again, I get the abc text. To sum up:

- Write 'abc' and replace it with 'a';
- first CTRL+Z: from 'a' to '';
- second CTRL+Z: from '' to 'abc'.

Does anyone else have this behaviour? Is there any option to have the old style
behaviour? In my opinion the old style behaviour is the correct one, because
I perform a single action (replace text) so I shouldn't press 2 times CTRL+Z
to undo TWO actions (while I performed a single action).
Thanks and regards,
Lore

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331753



------------------------------

Message: 3
Date: Sun, 18 May 2008 08:36:58 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        [HighlightReq] Smarty
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4970408
By: marclaporte

Thank you Don, 

I would much appreciate if that file and the following one were bundled in a
default install of NotePad ++:
http://notepad-plus.sourceforge.net/commun/apiFiles/smarty.api

Best regards,

M ;-)

http://marclaporte.com
http://tikiwiki.org/marclaporte

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331753



------------------------------

Message: 4
Date: Sun, 18 May 2008 10:19:38 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] Style config.
        doesn't accept new file ext.
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4970530
By: geertvc

Hi,

I want to add the files with the extensions .tk and .itcl to the TCL language.
Therefore, I added those two extensions in the "User ext." field (I filled in
"tk itcl", without the double quotes).

After adding those extensions, the colour scheme for TCL is not taken into 
account
for those new extensions.

Does it work anyhow?  Or what am I doing wrong by simply adding those two file
extensions to the "User ext." field?  Should I do more?

Best rgds,

--Geert

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 5
Date: Sun, 18 May 2008 13:16:46 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] Data virtualization
        /       Redirection problem
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4970757
By: yakumo-unr

Notepad++ 4.9.2 and earlier runs in 'Data Virtualization' mode on Vista (also
known as 'Data Redirection')

The problem with this, is if you attempt to edit a file that you do not have
access permission to, and save, rather than having a warning about no write
permission, ir just saves the file to
C:\Users\(UserName)\AppData\Local\VirtualStore\(path copy)

The big problem with this is :

1. You then have 2 copies of the same file.
2. if it's a file that requires interaction with another application, like a
config or ini file, where the app it controls does NOT use Data Virtualization
then your edits only ever show in notepad++ or other virtualized apps.

ie. This was a real pain for me when editing my apache config as I couldn't
see why edits were not showing up after rebooting my dev server until I realised
and found n++ was only editing
C:\Users\(Username)\AppData\Local\VirtualStore\Program Files\Apache Software
Foundation\Apache2.2\httpd.conf

You can disable virtualization per session in task manager, but this is
suboptimal.

"An application that is marked with a run level in its manifest or that is a
natively compiled 64-bit app is assumed to not require virtualization, so data
redirection is disabled for that app. " (
https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=724064&SiteID=1 )

I don't expect a 64bit notepad++ any time soon, but could the manifest
be altered?

more info : http://technet.microsoft.com/en-us/magazine/cc160980.aspx

Cheers.



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 6
Date: Sun, 18 May 2008 13:21:15 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] US Icon
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4970762
By: siniz

Hi,

I just opened a textfile. There are these icons saying "US" (same style as LF
icons). I know that there should be another char in this place. How do I display
the proper chars? It's just comon chars like # and !


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 7
Date: Sun, 18 May 2008 16:05:24 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] Templates inserting
        missing
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4970963
By: jantar2461

Hi, I didn't find any solution with Npp (using 4.9.2) for inserting templates
from text files into the current document at the current cursor position. I
tried various plugins, I searched the forum, but no success.

That's why I made following:
1. I created a Run command, which copies the template file content to the 
windows's
clipboard (using cliptext)
2. I created a Macro, which executes the item from Run menu, which I created
above and after that which makes a SCI_PASTE command as following:

Shortcuts.xml:
    <Macros>
        <Macro name="Insert Addresses" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="2" message="0" wParam="86537" lParam="0" sParam=""
/> <!-- Call 2. item from Run menu -->
            <Action type="0" message="2179" wParam="0" lParam="0" sParam=""
/>  <!-- SCI_PASTE -->
        </Macro>
    </Macros>
    <UserDefinedCommands>
        ..
        <Command name="Addresses" Ctrl="no" Alt="no" Shift="no" Key="0">cmd
/k cliptext from &quot;$(NPP_DIRECTORY)\templates\Addresses.txt&quot; &amp;&amp;
exit</Command>
    </UserDefinedCommands>  <!-- 2. item of Run menu -->


So far, so good.

But there are some problems and questions:
1. The Run command is executed via ::ShellExecute() and doesn't wait for end
of execution. That's why the clipboard is not filled correctly, but the Paste
command is already executed. As solution I patched the code with a ::Sleep()
as dirty hack.

2. Using the ActionType 2 (mtMenuCommand) with wParam="86537" for executing
the Run command number 2, I resolved the parameter value with the debugger only.
Is there any description using the ActionTypes 2 and its parameters? How are
counted the menu items?

3. How can I call a user defined Run command from a macro via a user defined
shortcut (e.g. CTRL-SHIFT-0)? Unfortunately the macro recorder doesn't work
in this context.


Does anybody know a better solution? 


Thanks and sorry for my english.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 8
Date: Sun, 18 May 2008 12:08:16 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] Unable to switch
        back to English version
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="UTF-8"


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4970674
By: runsun

I have been using NP++ installed in English version for a while. About 2 version
back, I decided to try the Chinese version to see how it works.

So I choose 'Chinese' (traditional) when prompted in the first step of 
upgrading.

After a while I decided to switch back to English.

But since then every installations are in Chinese, even I choose 'English' 
during
installation.

How can I get it back to the English version? 



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=331754



------------------------------

Message: 9
Date: Mon, 19 May 2008 11:02:35 +0900
From: "K.Y" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Debug] Drag and Drop of
        ShortCutFile
To: <notepad-plus-plus@lists.sourceforge.net>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-2022-jp"

Hi

I tried a bugfix of Drag and Drop

bug : when ShortCutFile Drag and Drop to NotePad++,
       Opened ShortCutFile(.lnk).

Sincerely yours

-----------------------------------------------

modefied point : NotePad_plus.cpp(ver 4.9.2)

1. add include file : #include <Shlobj.h>
2. mod function     : dropFiles(...)
3. mod function     : init(...)

void Notepad_plus::dropFiles(HDROP hdrop)
{
 
//---------------------------------------------------------------------------------------------------------
 // A 16.05.2008 ( K.Y ) // Convert ShortCutFile Path (.lnk) ->  Target File 
Path IShellLink  *psl; IPersistFile *ppf; WIN32_FIND_DATA wfd; HRESULT   
hResult; WCHAR   wcPathDropped[MAX_PATH+2]; char   TargetFile[MAX_PATH]; 
//---------------------------------------------------------------------------------------------------------
 if (hdrop) {  // Determinate in which view the file(s) is (are) dropped  POINT 
p;  ::DragQueryPoint(hdrop, &p);  //HWND hWin = ::ChildWindowFromPoint(_hSelf, 
p);  HWND hWin = ::RealChildWindowFromPoint(_hSelf, p);  if (!hWin) return;  if 
((_mainEditView.getHSelf() == hWin) || (_mainDocTab.getHSelf() ==hWin))   
switchEditViewTo(MAIN_VIEW);  else if ((_subEditView.getHSelf() == hWin) || 
(_subDocTab.getHSelf() ==hWin))   switchEditViewTo(SUB_VIEW);  else  {   
::SendMessage(hWin, WM_DROPFILES, (WPARAM)hdrop, 0);   return;  }  int 
filesDropped = ::Dr
 agQueryFile(hdrop, 0xffffffff, NULL, 0);  for (int i = 0 ; i < filesDropped ; 
++i)  {   char pathDropped[MAX_PATH];   ::DragQueryFile(hdrop, i, pathDropped, 
sizeof(pathDropped));   
//---------------------------------------------------------------------------------------------------------
   // A 16.05.2008 ( K.Y )   // Convert ShortCutFile Path (.lnk) ->  Target 
File Path   CoInitialize(NULL);   hResult = CoCreateInstance( CLSID_ShellLink, 
NULL, CLSCTX_INPROC_SERVER,IID_IShellLink, (void **)&psl );   if ( S_OK == 
hResult )   {    hResult = psl->QueryInterface( IID_IPersistFile, (void **)&ppf 
);    if ( S_OK == hResult )    {     MultiByteToWideChar( CP_ACP, 0, 
pathDropped, -1, wcPathDropped,MAX_PATH );     hResult = ppf->Load( 
wcPathDropped, STGM_READ );     psl->GetPath( TargetFile, MAX_PATH, &wfd, 
SLGP_UNCPRIORITY ); // GetTarget File     if( S_OK == hResult )     {      
memcpy(pathDropped,TargetFile,(MAX_PATH));     }     ppf->Release();    }    
psl->Release();   }   CoUni
 nitialize();   
//---------------------------------------------------------------------------------------------------------
   doOpen(pathDropped);            
//setLangStatus(_pEditView->getCurrentDocType());  }  ::DragFinish(hdrop);  // 
Put Notepad_plus to forefront  // May not work for Win2k, but OK for lower 
versions  // Note: how to drop a file to an iconic window?  // Actually, it is 
the Send To command that generates a drop.  if (::IsIconic(_hSelf))  {   
::ShowWindow(_hSelf, SW_RESTORE);  }  ::SetForegroundWindow(_hSelf); }}void 
Notepad_plus::init(HINSTANCE hInst, HWND parent, const char 
*cmdLine,CmdLineParams *cmdLineParams){ Window::init(hInst, parent); WNDCLASS 
nppClass; nppClass.style = CS_BYTEALIGNWINDOW | CS_DBLCLKS;//CS_HREDRAW | 
CS_VREDRAW; nppClass.lpfnWndProc = Notepad_plus_Proc; nppClass.cbClsExtra = 0; 
nppClass.cbWndExtra = 0; nppClass.hInstance = _hInst; nppClass.hIcon = 
::LoadIcon(_hInst, MAKEINTRESOURCE(IDI_M30ICON)); nppClass.hCursor = 
::LoadCursor(NULL, 
 IDC_ARROW); nppClass.hbrBackground = 
::CreateSolidBrush(::GetSysColor(COLOR_MENU)); nppClass.lpszMenuName = 
MAKEINTRESOURCE(IDR_M30_MENU); nppClass.lpszClassName = _className; 
//---------------------------------------------------------------------------------------------------------
 // A 16.05.2008 ( K.Y ) // Convert ShortCutFile Path (.lnk) ->  Target File 
Path IShellLink  *psl; IPersistFile *ppf; WIN32_FIND_DATA wfd; HRESULT   
hResult; WCHAR   wcPathDropped[MAX_PATH+2]; char   TargetFile[MAX_PATH]; 
//---------------------------------------------------------------------------------------------------------
 if (!::RegisterClass(&nppClass)) {  systemMessage("System Err");  throw 
int(98); } RECT workAreaRect; ::SystemParametersInfo(SPI_GETWORKAREA, 0, 
&workAreaRect, 0); const NppGUI & nppGUI = 
(NppParameters::getInstance())->getNppGUI(); if (cmdLineParams->_isNoPlugin)  
_pluginsManager.disable(); _hSelf = ::CreateWindowEx(     WS_EX_ACCEPTFILES | 
(_isRTL?WS_EX_LAYOUTRTL:0),\   
   _className,\     "Notepad++",\     WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,\   
  // CreateWindowEx bug : set all 0 to walk arround the pb     0, 0, 0, 0,\     
_hParent,\     NULL,\     _hInst,\     (LPVOID)this); // pass the ptr of this 
instantiated object                                   // for retrive it in 
Notepad_plus_Procfrom                                   // the 
CREATESTRUCT.lpCreateParamsafterward. if (!_hSelf) {  systemMessage("System 
Err");  throw int(777); } // In setting the startup window position, take into 
account that thelast-saved // position might have assumed a second monitor 
that's no longer available. POINT newUpperLeft; newUpperLeft.x = 
nppGUI._appPos.left + workAreaRect.left; newUpperLeft.y = nppGUI._appPos.top + 
workAreaRect.top; // GetSystemMetrics does not support the multi-monitor values 
on Windows NTand Windows 95. if ((_winVersion != WV_95) && (_winVersion != 
WV_NT)) {  int margin = ::GetSystemMetrics(SM_CYSMCAPTION);  if (newUpperLeft.x 
> ::G
 etSystemMetrics(SM_CXVIRTUALSCREEN)-margin)   newUpperLeft.x = 
workAreaRect.right - nppGUI._appPos.right;  if (newUpperLeft.x + 
nppGUI._appPos.right <::GetSystemMetrics(SM_XVIRTUALSCREEN)+margin)   
newUpperLeft.x = workAreaRect.left;  if (newUpperLeft.y > 
::GetSystemMetrics(SM_CYVIRTUALSCREEN)-margin)   newUpperLeft.y = 
workAreaRect.bottom - nppGUI._appPos.bottom;  if (newUpperLeft.y + 
nppGUI._appPos.bottom <::GetSystemMetrics(SM_YVIRTUALSCREEN)+margin)   
newUpperLeft.y = workAreaRect.top; } ::MoveWindow(_hSelf, newUpperLeft.x, 
newUpperLeft.y, nppGUI._appPos.right,nppGUI._appPos.bottom, TRUE); if 
(nppGUI._rememberLastSession && !cmdLineParams->_isNoSession) {  
loadLastSession(); }    if (cmdLine)    {  char currPath[MAX_PATH];  
::GetCurrentDirectory(sizeof currPath, currPath);  
::SetCurrentDirectory(currPath);  LangType lt = cmdLineParams->_langType;  int 
ln = cmdLineParams->_line2go;  if (PathFileExists(cmdLine))  {   
doOpen(cmdLine, cmdLineParams->_isReadOnly);   if (lt !=
  L_TXT)    _pEditView->setCurrentDocType(lt);   if (ln > 0)                
_pEditView->execute(SCI_GOTOLINE, ln-1);  }  else  {   FileNameStringSplitter 
fnss(cmdLine);   char *pFn = NULL;   for (int i = 0 ; i < fnss.size() ; i++)   
{    pFn = (char 
*)fnss.getFileName(i);//---------------------------------------------------------------------------------------------------------//
 A 16.05.2008 ( K.Y )    // Convert ShortCutFile Path (.lnk) ->  Target File 
Path    CoInitialize(NULL);    hResult = CoCreateInstance( CLSID_ShellLink, 
NULL, CLSCTX_INPROC_SERVER,IID_IShellLink, (void **)&psl );    if ( S_OK == 
hResult )    {     hResult = psl->QueryInterface( IID_IPersistFile, (void 
**)&ppf );     if ( S_OK == hResult )     {      MultiByteToWideChar( CP_ACP, 
0, pFn, -1, wcPathDropped, MAX_PATH );      hResult = ppf->Load( wcPathDropped, 
STGM_READ );      psl->GetPath( TargetFile, MAX_PATH, &wfd, SLGP_UNCPRIORITY ); 
// GetTarget File      if( S_OK == hResult )      {       // memcpy(
 pFn,TargetFile,(MAX_PATH));       doOpen((const char *)TargetFile, 
cmdLineParams->_isReadOnly);      }else{       doOpen((const char *)pFn, 
cmdLineParams->_isReadOnly);      }      ppf->Release();     }     
psl->Release();    }else{     doOpen((const char *)pFn, 
cmdLineParams->_isReadOnly);    }    CoUninitialize();// D   doOpen((const char 
*)pFn, 
cmdLineParams->_isReadOnly);//---------------------------------------------------------------------------------------------------------
    if (lt != L_TXT)     _pEditView->setCurrentDocType(lt);    if (ln > 0)     
_pEditView->execute(SCI_GOTOLINE, ln-1);   }  }  // restore the doc type to 
L_TXT  //(NppParameters::getInstance())->setDefLang(L_TXT);    } 
::GetModuleFileName(NULL, _nppPath, MAX_PATH); 
setTitleWith(_pEditView->getCurrentTitle()); if (nppGUI._tabStatus & 
TAB_MULTILINE)  ::SendMessage(_hSelf, WM_COMMAND, 
IDM_VIEW_DRAWTABBAR_MULTILINE, 0); // Notify plugins that Notepad++ is ready 
SCNotification scnN; scnN.nmhdr.code = NP
 PN_READY; scnN.nmhdr.hwndFrom = _hSelf; scnN.nmhdr.idFrom = 0; 
_pluginsManager.notify(&scnN); if (!nppGUI._menuBarShow)  ::SetMenu(_hSelf, 
NULL); ::ShowWindow(_hSelf, nppGUI._isMaximized?SW_MAXIMIZE:SW_SHOW); if 
(cmdLineParams->_isNoTab || (nppGUI._tabStatus & TAB_HIDE)) {  
::SendMessage(_hSelf, NPPM_HIDETABBAR, 0, TRUE); }}
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

------------------------------

_______________________________________________
Notepad-plus-plus mailing list
Notepad-plus-plus@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus


End of Notepad-plus-plus Digest, Vol 24, Issue 51
*************************************************

Reply via email to