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: Edit timecode in subtitle-files (.srt) (SourceForge.net) 2. [notepad-plus - Help] RE: Background color (black) (SourceForge.net) 3. [notepad-plus - Plugin Development] RE: Edit timecode in subtitle-files (.srt) (SourceForge.net) 4. [notepad-plus - Help] function-list plugin problem (SourceForge.net) 5. [notepad-plus - Translation] RE: German translation for 4.8.5 (SourceForge.net) 6. [notepad-plus - Help] RE: Comment for Kix (SourceForge.net) 7. [notepad-plus - Plugin Development] RE: Edit timecode in subtitle-files (.srt) (SourceForge.net) 8. [notepad-plus - Help] RE: Go to File (as in Eclipse) (SourceForge.net) 9. [notepad-plus - Help] RE: Compiling Java (SourceForge.net) 10. [notepad-plus - Help] RE: Go to File (as in Eclipse) (SourceForge.net) 11. [notepad-plus - Help] RE: FTP Plugin problem (SourceForge.net) 12. [notepad-plus - Help] RE: Background color (black) (SourceForge.net) 13. [notepad-plus - Open Discussion] [FIX] Huge file opening - crash (SourceForge.net) ---------------------------------------------------------------------- Message: 1 Date: Sun, 20 Apr 2008 16:48:08 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] RE: Edit timecode in subtitle-files (.srt) 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=4916945 By: nobody I know excel can do that but it's too slow. Using notepad++ to open a subtitle file is much faster than using excel. ______________________________________________________________________ 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, 20 Apr 2008 19:15:20 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Background color (black) 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=4917074 By: nobody I was frustrated by lack of a concept of a default foreground and background color that you could globally change and would carry through all languages. In particular I want the default background to be black and the default foreground to be white. I did however find a solution. 1. open %appdata%\Notepad++\stylers.xml in notepad++ 2. ctrl+h to search and replace 3. replace: bgColor="FFFFFF" with bgColor="000000" 4. replace: fgColor="000000" with fgColor="FFFFFF" 5. save the file. 6. close and reopen notepad++ also for those of you looking to use emacs keybindings check out xkeymas at http://www.cam.hi-ho.ne.jp/oishi/indexen.html good luck! ______________________________________________________________________ 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: Mon, 21 Apr 2008 00:20:18 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] RE: Edit timecode in subtitle-files (.srt) 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=4917369 By: nobody Whatever, if you want to use Notepad++ for it but you _can't_... ______________________________________________________________________ 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, 21 Apr 2008 01:22:45 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] function-list plugin 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=4917459 By: nobody function list not work after last update v4.8.5 any *.php, *.js files utf-8 encoding ______________________________________________________________________ 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: Mon, 21 Apr 2008 02:20:43 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Translation] RE: German translation for 4.8.5 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=4917657 By: janschreiber Ah, you are right, thank you. New version: http://localhostr.com/files/9cd82d/German.xml ______________________________________________________________________ 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=558104 ------------------------------ Message: 6 Date: Mon, 21 Apr 2008 02:40:33 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Comment for Kix 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=4917686 By: nobody Hi I have the same "problem" and am also interested in a solution to this. Bye Andy ______________________________________________________________________ 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: Mon, 21 Apr 2008 03:22:12 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] RE: Edit timecode in subtitle-files (.srt) 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=4917737 By: nobody I've written such AWK script a lot of time ago. It can shift time in .srt subtitles, "compress" and "stretch" it. You can run AWK within Notepad++ using NppExec plugin. The command line must be similar to this: c:\progs\awk\awk95.exe -f srt_time.awk original_subtitles.srt Here is the AWK script (srt_time.awk): BEGIN { TIME_CORR_COEFF = 1.0427 # time multiplier for compression/stretching STR_TIME_CORR = "-00:00:00,800" # time shifting OUTFILENAME = "_srt_time.out" # output file CHAR_TIME_DIV = ":" CHAR_TIME_MS_DIV = "," STR_TIME_TO_TIME = "%s --> %s\n" STR_TIME_HMSMS = "%02d%c%02d%c%02d%c%03d" TIME_CORR_ACTION = substr(STR_TIME_CORR, 1, 1) split(substr(STR_TIME_CORR, 2), a, CHAR_TIME_DIV) TIME_CORR = hmsms_to_ms(a) } NR >= 1 { i = 0 if (i = (split($1, a, CHAR_TIME_DIV) == 3)) { s1 = CorrectTime(a) if (i = (split($3, a, CHAR_TIME_DIV) == 3)) { s2 = CorrectTime(a) printf(STR_TIME_TO_TIME, s1, s2) > OUTFILENAME } } if (!i) { if (int($0) == 0) { print $0 > OUTFILENAME } else { print int($0)-0 > OUTFILENAME } } } function hmsms_to_ms(a, vt) { h = int(a[1]) m = int(a[2]) vt = a[3] split(vt, a, CHAR_TIME_MS_DIV) s = int(a[1]) ms = int(a[2]) return (ms + 1000*(s + 60*(m + 60*h))) } function CorrectTime(a) { time = int(TIME_CORR_COEFF*hmsms_to_ms(a)) if (TIME_CORR_ACTION == "+") { time += TIME_CORR } else if (TIME_CORR_ACTION == "-") { time -= TIME_CORR } b[1] = int(time/3600000) time = time - b[1]*3600000 b[2] = int(time/60000) time = time - b[2]*60000 b[3] = int(time/1000) time = time - b[3]*1000 b[4] = time return sprintf(STR_TIME_HMSMS, b[1], CHAR_TIME_DIV, b[2], CHAR_TIME_DIV, b[3], CHAR_TIME_MS_DIV, b[4]) } ______________________________________________________________________ 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: 8 Date: Mon, 21 Apr 2008 03:27:13 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Go to File (as in Eclipse) 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=4917745 By: nobody Four days of silence? Oh great, it seems that everyone is busy bitching about that stupid boycott thing rather than actually helping people in 'Help' forum. Can anyone please answer my question? ______________________________________________________________________ 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, 21 Apr 2008 03:36:42 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Compiling Java 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=4917751 By: nobody Are you sure there is no such plugin? Please look closer. Look in the Plugins menu. (hint: Plugins -> NppExec -> Help/About..., and, PLEASE, don't be shamed to read the notes in the dialog you'll see) ______________________________________________________________________ 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: 10 Date: Mon, 21 Apr 2008 03:55:18 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Go to File (as in Eclipse) 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=4917782 By: harrybharry You cna try the explorer plugin, using the favorites option. I think it has a filter which should do what you want ______________________________________________________________________ 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: 11 Date: Mon, 21 Apr 2008 03:59:43 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: FTP Plugin 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=4917794 By: harrybharry Afaik, the ftp plugin _never_ opened the file from the actual server. This is in fact impossible considering you have to download the file first in order to see and edit it :). What could be the case is that you had set an alternate cache location on some other location on your drive, resembling the layout of your webserver. What oyu could try to do is make a new open in forefox/ie command, that only uses the current file name (not the path), and put a fully qualified web-address in front of it. That or, if you edit the same file(s), keep firefox/ie open and select refresh. ______________________________________________________________________ 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: 12 Date: Mon, 21 Apr 2008 04:01:34 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Background color (black) 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=4917800 By: harrybharry The next version of Notepad++ introduces a new function that should resemble what you want: change only the default background color and all the other styles will follow, but with a possible override (like for example javascript in HTML). Just sit tight and hold on :) ______________________________________________________________________ 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: 13 Date: Mon, 21 Apr 2008 04:05:01 -0700 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] [FIX] Huge file opening - crash 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=4917810 By: sasha_ponkratov Hi, Notepad++ crashes if you try to open huge file (280 mb log file in my case). In debug version Notepad++ shows Error message box and opnes only part of the huge file. In release build - just crashes with access violation os screen. As quick fix i suggest you to disable undo collection while opening files. It will use less memory and will skip unneeded "undo collection" steps. It works for me (of course it doesn't fix the error message issue in release version, but it allows opening files with less memory overhead). =) I can be done this way: //npp.4.8.5.src\PowerEditor\src\Notepad_plus.cpp, line 694 bool Notepad_plus::doOpen(const char *fileName, bool isReadOnly) ... ... // It's VERY IMPORTANT to reset the view _pEditView->execute(SCI_CLEARALL); //////Sasha: Add this line to disable undo collection _pEditView->execute(SCI_SETUNDOCOLLECTION, 0, 0); char data[blockSize]; size_t lenFile = fread(data, 1, sizeof(data), fp); bool isNotEmpty = (lenFile != 0); while (lenFile > 0) { lenFile = UnicodeConvertor.convert(data, lenFile); _pEditView->execute(SCI_ADDTEXT, lenFile, reinterpret_cast<LPARAM>(UnicodeConvertor.getNewBuf())); lenFile = int(fread(data, 1, sizeof(data), fp)); } fclose(fp); // 3 formats : WIN_FORMAT, UNIX_FORMAT and MAC_FORMAT (_pEditView->getCurrentBuffer()).determinateFormat(isNotEmpty?UnicodeConvertor .getNewBuf():(char *)("")); _pEditView->execute(SCI_SETEOLMODE, _pEditView->getCurrentBuffer().getFormat()); // detect if it's a binary file (non ascii file) //(_pEditView->getCurrentBuffer()).detectBin(isNotEmpty?UnicodeConvertor.getNe wBuf():(char *)("")); UniMode unicodeMode = static_cast<UniMode>(UnicodeConvertor.getEncoding()); (_pEditView->getCurrentBuffer()).setUnicodeMode(unicodeMode); if (unicodeMode != uni8Bit) // Override the code page if Unicode _pEditView->execute(SCI_SETCODEPAGE, SC_CP_UTF8); if (isReadOnly) (_pEditView->getCurrentBuffer()).setReadOnly(true); _pEditView->getFocus(); _pEditView->execute(SCI_SETSAVEPOINT); _pEditView->execute(EM_EMPTYUNDOBUFFER); //////Sasha: File is loaded, it's time to enable undo collection _pEditView->execute(SCI_SETUNDOCOLLECTION, 1, 0); ... ... ______________________________________________________________________ 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 ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ------------------------------ _______________________________________________ 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 23, Issue 60 *************************************************