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
        notepad-plus-plus-requ...@lists.sourceforge.net

You can reach the person managing the list at
        notepad-plus-plus-ow...@lists.sourceforge.net

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] External      Lexer Plugins
      (SourceForge.net)
   2. Re: [notepad-plus - Open Discussion] RE:  Notepad++v5.1.3 new
      release (Thell Fowler)
   3. [notepad-plus - Plugin Development] RE:   External Lexer
      Plugins (SourceForge.net)
   4. [notepad-plus - Open Discussion] RE: Notepad++    v5.1.3 new
      release (SourceForge.net)
   5. [notepad-plus - Open Discussion] RE: Notepad++    v5.1.3 new
      release (SourceForge.net)
   6. [notepad-plus - Open Discussion] Problems Compiling &
      Debugging Notepad++ (SourceForge.net)
   7. [notepad-plus - Open Discussion] RE: Problems     Compiling &
      Debugging Notepad++ (SourceForge.net)
   8. [notepad-plus - Open Discussion] RE: Notepad++    v5.1.3 new
      release (SourceForge.net)


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

Message: 1
Date: Mon, 29 Dec 2008 17:51:53 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development]
        External        Lexer Plugins
To: nore...@sourceforge.net
Message-ID: <5926355.482...@sourceforge.net>
Content-Type: text/plain; charset="UTF-8"


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

Hello!

We, some folks from the #Powershell channel on freenode, have been working hard
to make our lexer plugin work merrily with the NPP 5.1 unicode release.  We
have a release out now that works with 5.1.2 and would like to be able to update
our notepad++ without breaking the plugin.  Unfortunately, since the change
over to unicode, a patch needs to be applied for external lexers to work.  We
are including the patched binaries with the plugin which isn't ideal; how are
other external lexer projects handling this issue?

almostautomated

______________________________________________________________________
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: Mon, 29 Dec 2008 18:11:14 +0000 (UTC)
From: Thell Fowler <th...@almostautomated.com>
Subject: Re: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Notepad++v5.1.3 new release
To: notepad-plus-plus@lists.sourceforge.net
Message-ID: <82877cf44a2858cb37c5addbe...@news.gmane.org>
Content-Type: text/plain; charset=iso-8859-1; format=flowed

Glad to see this patch being discussed! It is needed.

Don, what do you mean by: ' "GetLexerName" and "GetLexerStatusText" on the 
lexer side should be always the same. '?

On the lexer side, since implementing the patch, our plugin now has three 
exported functions relating to Name and StatusText:

GetLexerName = GetLexerName
GetLexerNameW = GetLexerNameW
GetLexerStatusTextW = GetLexerStatusTextW

With three constants defined for use by them:
const TCHAR LEXER_NAME[]  = TEXT("PowerShe11");
const char sciLEXER_NAME[] = "PowerShe11";
const TCHAR LEXER_DESC[]  = TEXT("PowerShell Script File");

and are processed like so:

void EXT_LEXER_DECL GetLexerName(unsigned int Index, char *name, int buflength){
        // Index for lexer starts at zero.
        if (buflength > 0 && Index == 0) {
                buflength--;
                int n = (int)strlen(sciLEXER_NAME);
                if (n > buflength)
                        n = buflength;
                memcpy(name, sciLEXER_NAME, n), name[n] = '\0';
        }
}
// Modified to allow for ExternalLexer patch change to handle unicode
void EXT_LEXER_DECL GetLexerNameW(unsigned int Index, TCHAR *name, int 
buflength){
        // Index for lexer starts at zero.
        if (buflength > 0 && Index == 0) {
                buflength--;
                int n = (int)_tcsclen(LEXER_NAME);
                if (n > buflength)
                        n = buflength;
#ifdef UNICODE
                wmemcpy(name, LEXER_NAME, n), name[n] = '\0';
#else
                memcpy(name, LEXER_NAME, n), name[n] = '\0';
#endif
        }
}

void EXT_LEXER_DECL GetLexerStatusTextW(unsigned int Index, TCHAR *name, 
int buflength){
        if (buflength > 0 && Index == 0) {
                buflength--;
                int n = (int)_tcsclen(LEXER_DESC);
                if (n > buflength)
                        n = buflength;
#ifdef UNICODE
                wmemcpy(name, LEXER_DESC, n), name[n] = '\0';
#else
                memcpy(name, LEXER_DESC, n), name[n] = '\0';
#endif
        }
}






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

Message: 3
Date: Mon, 29 Dec 2008 18:09:00 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] RE:
        External Lexer Plugins
To: nore...@sourceforge.net
Message-ID: <5926484.482...@sourceforge.net>
Content-Type: text/plain; charset="UTF-8"


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

https://sourceforge.net/forum/message.php?msg_id=5926340

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: 4
Date: Mon, 29 Dec 2008 18:11:34 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Notepad++       v5.1.3 new release
To: nore...@sourceforge.net
Message-ID: <5926502.331...@sourceforge.net>
Content-Type: text/plain; charset="UTF-8"


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

I've noticed that if you use multiple instances, the session.xml file saves
only the data about the last one that you close. Is it possible to have N++
store all the sessions? Because if you have a "big" one with many files open
and a "small" one with just one file, you have to remember to close the small
one first, and the big one afterwards, or else you'll lose your precious session
(including, for example, bookmarks). It would be great if Notepad++ could
automatically load different sessions when multiple instances are used, or if
it asked you which one you want to load when you run it.

I'm not sure it's VERY useful, but it would be at least a bit.

Anyway, as always, thank you for your work!

______________________________________________________________________
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: 5
Date: Mon, 29 Dec 2008 18:33:44 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Notepad++       v5.1.3 new release
To: nore...@sourceforge.net
Message-ID: <5926665.331...@sourceforge.net>
Content-Type: text/plain; charset="UTF-8"


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

"GetLexerStatusText" is a NPP construct. It doesn't exist in the scintilla
source.
"GetLexerName" returns the lexer name like "C++", "Makefile" and so on.
"GetLexerStatusText" returns "C++ source file", the text which will get 
displayed
in the status bar when having the lexer active.
Therefore they return different strings.

Please note that scintilla also uses those two functions but defined with char
instead of TChar (widechar). Therefore my patch requires two additional 
functions
in the unicode external lexer: "GetLexerNameW" and "GetLexerStatusTextW" which
returns the same string as their nonW equivalents but as widechar.

Thanks for working on this problem.

______________________________________________________________________
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: 6
Date: Mon, 29 Dec 2008 18:34:56 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] Problems
        Compiling & Debugging Notepad++
To: nore...@sourceforge.net
Message-ID: <5926674.331...@sourceforge.net>
Content-Type: text/plain; charset="UTF-8"


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

Hi,

I'm using Visual Studio to compile and debug NP++. While I do compile 
successfully,
I can't get it to debug. When I start debugging it says "Load langs.xml  
failed!",
and after that it says "Can not load the dynamic library", and then finally
the third error that appears says "Scintilla.init is failed!".

I figured this was simply a matter of setting my debug working directory, but
I'm not sure. What can I do to resolve these problems? Thanks.

______________________________________________________________________
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: 7
Date: Mon, 29 Dec 2008 18:50:20 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Problems        Compiling & Debugging Notepad++
To: nore...@sourceforge.net
Message-ID: <5926790.331...@sourceforge.net>
Content-Type: text/plain; charset="UTF-8"


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

After a bit of debugging I managed to figure out the following:

1) The first error could not find "langs.xml" because it was not in the forced
working directory. I renamed src/langs.model.xml to langs.xml and moved that
to the "Debug" intermediate directory.

2) The second error, regarding the dynamic library, seems to be because _hLib
is NULL, which is only set by a call to LoadLibrary() for SciLexer.dll. Simply
put I need to find the dependent DLL files for Notepad++ so I can debug it.

I haven't looked into the third error yet.

______________________________________________________________________
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: 8
Date: Mon, 29 Dec 2008 19:14:27 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Notepad++       v5.1.3 new release
To: nore...@sourceforge.net
Message-ID: <5926926.331...@sourceforge.net>
Content-Type: text/plain; charset="UTF-8"


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

> Therefore my patch requires two additional functions in the unicode external
lexer:
> "GetLexerNameW" and "GetLexerStatusTextW" which returns the same string as
> their nonW equivalents but as widechar.

That's what I want to discuss :
In your lexer, you should keep the same name for both ANSI / Unicode version,
since this function uses the generic type variable "TCHAR" as out result.

Define/non define "UNICODE" symbol let you compile your lexer as ANSI/Unicode
compliant binary.

So in the code of Notepad++, "GetLexerName" and "GetLexerStatusText" won't be
change.
The rest things to do is (in the case of Unicode mode) convert these 2 variables
to char * in order to pass to scintilla (just like in your patch, but I'll use
internal existing functions).

If you are ok with that, I'll do the modification, then send you the binary
to test.

Let me know if you have any question.

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=331753



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

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


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

_______________________________________________
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 31, Issue 58
*************************************************

Reply via email to