Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Does anyone have any experience with Notepad++?


  • Please log in to reply
5 replies to this topic

#1 rico_suave

rico_suave

  • Members
  • 23 posts
  • OFFLINE
  •  
  • Local time:02:02 PM

Posted 01 October 2009 - 06:37 PM

I've been trying out Notepad++ and so far I like it, but I can't figure out how to replace the found selection with both another character AND a CR/LF?


For example:

blah*blah*blahhhh~talk*talk*talk*talk~chat*chat*chat*chat~

I would like to find the ~ and replace it with the tilde and a CR/LF so that the resulting file looks like this:

blah*blah*blahhhh~
talk*talk*talk*talk~
chat*chat*chat*chat~

BC AdBot (Login to Remove)

 


#2 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,260 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:12:02 PM

Posted 01 October 2009 - 09:54 PM

You need to select the "Extended" search mode and enter \n as the replacement character:


Posted Image


PS
Notepad++ kicks ass!

Edited by Amazing Andrew, 01 October 2009 - 09:55 PM.


#3 rico_suave

rico_suave
  • Topic Starter

  • Members
  • 23 posts
  • OFFLINE
  •  
  • Local time:02:02 PM

Posted 02 October 2009 - 09:54 PM

Way cool! Where can I find a list of what all the extended codes are?

#4 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,260 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:12:02 PM

Posted 03 October 2009 - 12:15 AM

There doesn't seem to be much documentation on this feature, but here's what I've dug up so far:

\n = newline
\r = carriage return
\t = tab character
\b = backspace character (not sure how this works)
\f = form feed (not sure of this one either)
\0 = End of Line
\\ = Backslash

Edited by Amazing Andrew, 03 October 2009 - 12:42 AM.


#5 rico_suave

rico_suave
  • Topic Starter

  • Members
  • 23 posts
  • OFFLINE
  •  
  • Local time:02:02 PM

Posted 03 October 2009 - 05:35 AM

Thank you very much Andrew.

#6 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,260 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:12:02 PM

Posted 03 October 2009 - 12:00 PM

:thumbsup:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users