Send Notepad-plus-plus mailing list submissions to
[email protected]
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 - Help] RE: Can you alias file language types?
(SourceForge.net)
2. [notepad-plus - Help] RE: replace chars with special chars
[CR][LF] (SourceForge.net)
3. [notepad-plus - Plugin Development] PHP QuickText goodness.
(SourceForge.net)
4. [notepad-plus - Plugin Development] RE: NppExec Suggestion
(SourceForge.net)
5. [notepad-plus - Plugin Development] RE: NppExec Suggestion
(SourceForge.net)
----------------------------------------------------------------------
Message: 1
Date: Fri, 10 Aug 2007 03:52:53 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Can you alias
file language types?
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=4458185
By: nobody
> In your case, there's no way to apply the syntax highlighter automatically
since Notepad++ detect > the file extension to recognize the language of type.
> It's hard coding for the case of makefile.
I'm having the same problem with shell/perl scripts : some have a .*sh or .pl
extension but many of them don't.
All these scripts named without extension have a header like "#!/bin/ksh" or
"#!C:\perl\bin\perl.exe" for example.
Header-based detection, like in NEdit for example, could be an interesting
feature
!
______________________________________________________________________
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: 2
Date: Fri, 10 Aug 2007 04:56:11 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: replace chars
with special chars [CR][LF]
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=4458294
By: nobody
The flaw I seem to dealing with is that for the file I am working on each line
ends with a CR LF, however do to problems with the source I also have several
lines with just a LF.
I want to remove the LF's but not the CR LF's, there appears to be no way to
work with these tokens properly. The sad thing is that notepad, yes generic
old windows notepad actually functions the best regarding this problem but it
can only handle a tenth of the file at a time without locking up.
I find it extremely disappointing that no text editor out there seems to have
better functionality then windows notepad.
______________________________________________________________________
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: 3
Date: Fri, 10 Aug 2007 05:04:29 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] PHP
QuickText goodness.
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=4458306
By: codenexus
Here is some PHP goodness for QuickText. Note that it has a mixture of PHP
and HTML as well since I use it most often in this context. It should be able
to be copy and pasted into the top of your QuickText.ini file. Let me know
if it is useful and/or if there are any changes needed. I might also work on
a CSS one if it is deemed necessary.
[1]
php=<?php\n$\n?>\n$
if=if ($)\n{\n $\n}\n$
ifelse=if ($)\n{\n $\n}\nelse\n{\n $\n}\n$
elseif=elseif ($)\n {\n $\n }\n$
while=while ($)\n {\n $\n }\n$
do=do\n {\n $\n }\nwhile ($);\n$case=case $: $\n$
default=default $: $\n$
else=else\n{\n $\n}\n$
elseif=else if ($)\n{\n $\n}\n$
for=for ($;$;$)\n {\n $\n }\n$
foreach=foreach ($ as $)\n {\n $\n }\n$
func=function $($)\n{\n $\n return $;\n}\n$
function=function $($)\n{\n $\n return $;\n}\n$
inc=include ('$');\n$
include=include ('$');\n$
req=require ('$');\n$
require=require ('$');\n$
include_once=include_once ('$');\n$
require_once=require_once ('$');\n$
inc1=include_once ('$');\n$
req1=require_once ('$');\n$
switch=switch ($)\n {\n case $:\n $\n break;\n }\n$
case=case $:\n $\n break;\n$
comment=/*****\n $\n*****/\n$
query=\$query = "$";\n\$result = mysql_query(\$query) or die ("Query failed:
".mysql_error());\n$
black=#000000
blue=#0000FF
cyan=#00FFFF
green=#00FF00
grey=#C0C0C0
mangenta=#FF00FF
orange=#FF9900
red=#FF0000
white=#FFFFFF
yellow=#FFFF00
htmlcomment=<!-- $ -->\n$
html=<html>\n <head>\n <title>$</title>\n $\n
</head>\n <body>\n $\n </body>\
n</html>\n$
head=<head>\n $\n</head>\n$
title=<title>$</title>\n$
body=<body>\n $\n</body>\n$
b=<b>$</b>$
i=<i>$</i>$
p=<p>$</p>\n$
br=<br />\n$
form=<form name="$" action="$">\n $\n</form>\n$
h1=<h1>$</h1>\n$
h2=<h2>$</h2>\n$
h3=<h3>$</h3>\n$
h4=<h4>$</h4>\n$
h5=<h5>$</h5>\n$
h6=<h6>$</h6>\n$
img=<img src="$" alt="$" />\n$
input=<input type="$" name="$" />\n$
li=<li>$</li>\n$
link=<a href="$">$</a>$
ol=<ol>\n <li>$</li>\n $\n</ol>\n$
pre=<pre>$</pre>\n$
span=<span>$</span>$
table=<table>\n <tr>\n <td>$</td>\n $\n </tr>\n
$\n</table>\n$
td=<td>$</td>\n$
tr=<tr>\n $\n</tr>\n$
ul=<ul>\n <li>$</li>\n $\n</ul>\n$
______________________________________________________________________
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: Fri, 10 Aug 2007 05:55:47 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] RE:
NppExec Suggestion
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=4458383
By: dv__
Number of system environment variables varies which each version of Windows,
so there is one possible solution I see: to add a global variable such as $(SYS)
which will be an array of system variables e.g. $(SYS[PATH]), $(SYS[TEMP]),
$(SYS[SYSTEMROOT]) etc. Such environment variables can be extracted with
GetEnvironmentVariable() API function. But I am not sure it will handle
user-defined
variables such as ANT_HOME. I'll think about it.
Talking about key assignment, I have no obvious solution for it - the best idea
so far, IMHO, is to implement shortcut keys inside the plugin's Execute Dialog.
______________________________________________________________________
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: 5
Date: Fri, 10 Aug 2007 06:00:56 -0700
From: "SourceForge.net" <[EMAIL PROTECTED]>
Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] RE:
NppExec Suggestion
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=4458390
By: lynchem
Rather than storing all these somewhere (and thereby creating the need to
support
specific variables) could you wait until you are parsing the line you are about
to execute, and then if it isn't one the ones you recognise (the NPPExec
specific
ones) you then call the GetEnvironmentVariable() API. That way any user defined
variable will be accessible.
______________________________________________________________________
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
------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
------------------------------
_______________________________________________
Notepad-plus-plus mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus
End of Notepad-plus-plus Digest, Vol 15, Issue 23
*************************************************