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 - Help] RE: replace unique text     in file with
      words from (SourceForge.net)
   2. [notepad-plus - Help] RE: replace unique text     in file with
      words from (SourceForge.net)
   3. [notepad-plus - Open Discussion] RE: Notepad++    v5.1.2 comes
      out (SourceForge.net)
   4. [notepad-plus - Help] RE: replace unique text     in file with
      words from (SourceForge.net)
   5. [notepad-plus - Help] RE: replace unique text     in file with
      words from (SourceForge.net)
   6. [notepad-plus - Help] RE: Please confirm a bug    for me
      (SourceForge.net)
   7. [notepad-plus - Open Discussion] RE: Notepad++    v5.1.2 comes
      out (SourceForge.net)
   8. [notepad-plus - Open Discussion] Date Insert      shortcut missing
      in N++ v5.1.1 (SourceForge.net)


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

Message: 1
Date: Tue, 16 Dec 2008 04:29:45 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: replace unique
        text    in file with words from
To: nore...@sourceforge.net
Message-ID: <5821623.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=5821623
By: gadrin

I don't think Notepad++ is that sophisticated. However I might be wrong. Some
of the plug-ins might be able to handle it.

I know vb can handle it. copy the lines between the ------------------- into
a file called Rewrite-Links-File.vbs

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

const ForReading = 1, ForWriting = 2
dim fso, f, daHTML, daLinks, editfile, outfile, replacementfile

'       get the filename from the command line...
editfile = WScript.Arguments.item(0)
replacementfile = WScript.Arguments.item(1)
'msgbox editfile,,replacementfile

'WScript.Quit

'       now take the input file and read it into a variable the close the 
file...
Set fso = CreateObject("Scripting.FileSystemObject")
Set f   = fso.OpenTextFile(editfile, ForReading)
daHTML  =  f.ReadAll
f.Close()

'       now get all the replacement links...
Set f   = fso.OpenTextFile(replacementfile, ForReading)
daLinks  =  f.ReadAll
f.Close()

dim LinksArray, i
LinksArray = split(daLinks, vbcrlf)

'       now open the edit file for output to place all the changes into...
Set outfile = fso.CreateTextFile(editfile, True)

'       get rid of all the ????? with a link
for i = 0 to UBound(LinksArray)-1
        if LinksArray(i) <> "" then daHTML = Replace(daHTML, "?????", 
LinksArray(i),
1, 1)
next    
'       write out the new file and close it up...       
outfile.write(daHTML)
outfile.Close()

'       close all the object handles...
Set f = Nothing
Set fso = Nothing
Set outfile = Nothing
--------------------------------------------------------------------------------
----------

Then create two files: Original.txt which looks like...

abc ?????
123456
xyz ????? efg ????? lmnop ?????
6789
1234
abc ????? efg ????? hij ?????
?????
?????
?????
end of the file
no more links!

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

and Links.txt (make sure you have an extra blank line after the last link:

--------------------------------------------------------------------------------
----------
Link-1
Link-2
Link-3
Link-4
Link-5
Link-6
Link-7
Link-8
Link-9
Link-10

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

Then you call the .vbs file from the dos cmd line (or the RUN box)

rewrite-links-file.vbs Original.txt Links.txt

and Original.txt will change to ...

abc Link-1
123456
xyz Link-2 efg Link-3 lmnop Link-4
6789
1234
abc Link-5 efg Link-6 hij Link-7
Link-8
Link-9
Link-10
end of the file
no more links!

The Replace() command in VBScript can handle incremental changes, as it changes
the 1st, then that bumps up all the others in the script by 1 for each loop,
until there are none left.

>





______________________________________________________________________
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: Tue, 16 Dec 2008 04:36:46 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: replace unique
        text    in file with words from
To: nore...@sourceforge.net
Message-ID: <5821651.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=5821651
By: gadrin

I was editing 200+ HTML files using another VBScript so it was a cinch to 
convert,
I was killing all the <a href= changing them to <a nohref= and inserting a 
<style>img
{display:none;}</style> to hide all the empty IMGs.

By the way, that script and the others need to reside in the same folders 
otherwise
you'll need full paths for each.

>

______________________________________________________________________
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: Tue, 16 Dec 2008 06:28:13 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Notepad++       v5.1.2 comes out
To: nore...@sourceforge.net
Message-ID: <5822035.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=5822035
By: jenslorenz

Hi Don,

currently there is no issue known with version 1.8.1. Please add this plugin
into next releases of Notepad++.

Best Regards
Jens

______________________________________________________________________
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: Tue, 16 Dec 2008 06:56:00 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: replace unique
        text    in file with words from
To: nore...@sourceforge.net
Message-ID: <5822162.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=5822162
By: cirrrocco

Holy ciow.. Let me check it out..Thanks for the detailed explanation..

______________________________________________________________________
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: Tue, 16 Dec 2008 07:09:54 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: replace unique
        text    in file with words from
To: nore...@sourceforge.net
Message-ID: <5822221.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=5822221
By: cirrrocco

wow, thanks for the very detailed explanation and also thanks so much for 
writing
the vbs script. It worked like a charm. Thank you again so much...

______________________________________________________________________
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: Tue, 16 Dec 2008 07:39:54 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Please confirm
        a bug   for me
To: nore...@sourceforge.net
Message-ID: <5822341.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=5822341
By: david111

Bump.  

Anyone got 30 seconds?  Just let me know if URLs appear in a different font
with Settings... Preferences... Misc... Clickable link setting enabled.

______________________________________________________________________
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: Tue, 16 Dec 2008 09:18:38 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE:
        Notepad++       v5.1.2 comes out
To: nore...@sourceforge.net
Message-ID: <5822815.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=5822815
By: jenslorenz

Hello Don,

Find In Files still crashes on my system. I removed all plugins to be sure this
issue happens only in Notepad.
I can avoid a crash in Find In Files when I close the second view!

Best Regards
Jens

______________________________________________________________________
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: Tue, 16 Dec 2008 09:47:56 +0000
From: "SourceForge.net" <nore...@sourceforge.net>
Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] Date
        Insert  shortcut missing in N++ v5.1.1
To: nore...@sourceforge.net
Message-ID: <5822974.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=5822974
By: glenf777

Hi, 
I have noticed that my favourite and often used shortcut, insert short date,
Ctrl+F5, is missing from v5.1.1 Portable (Portable Apps version). Ctrl+F5 was
a valid shortcut key for Insert Short Date in v4.2.2.
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



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

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

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

_______________________________________________
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 32
*************************************************

Reply via email to