Quantcast

Jump to content


Photo

Notepad++ Questions


  • Please log in to reply
11 replies to this topic

#1 willytung

willytung
  • 53 posts


Users Awards

Posted 31 March 2014 - 01:36 PM

How can I delete the spaces at the end of lines?
Can I delete lines that contain a certain word without altering the order of the lines?



#2 KyloRen

KyloRen
  • Snoke says I'm special.



  • 5,124 posts


Users Awards

Posted 31 March 2014 - 01:43 PM

Here's a guide to a program made by one of our members which takes out all the spaces in the list.

http://www.neocodex....-list-helper-d/

 

Here's the actual program: 

http://dyn.kanojo.de/~eefi/listgen.php


Edited by Satsuki, 31 March 2014 - 01:44 PM.


#3 willytung

willytung
  • 53 posts


Users Awards

Posted 31 March 2014 - 02:03 PM

Is there no such function with Notepad++?



#4 Kway

Kway
  • Proud to be a Brony

  • 1,200 posts


Users Awards

Posted 31 March 2014 - 02:11 PM

Under Edit > Blank Operations, there is "Trim Trailing Space"

 

Removing lines containing a specific may require making a macro.



#5 ortin

ortin
  • I'm so l33k

  • 5,915 posts


Users Awards

Posted 31 March 2014 - 02:14 PM

Much faster to use Eefi's restock list helper :p



#6 Nonexistent

Nonexistent
  • 681 posts


Users Awards

Posted 02 April 2014 - 08:33 AM

could try using regex



#7 Charmender

Charmender
  • Awesome

  • 4,103 posts


Users Awards

Posted 12 April 2014 - 06:10 AM

CTRL + F -> click the "mark" tab, check "Bookmark line", search for the word you want to delete

then go Menu->search->bookmark-> removed bookmarked lines.



#8 Grandmaster

Grandmaster
  • 748 posts


Users Awards

Posted 30 April 2014 - 07:10 PM

There is no direct function for what you described for Notepad++. Have to use find or replace method in Notepad++. But the good thing is that Notepad++ allows you to replace blank spaces with extended functions like "\r, \n..".



#9 Pyro699

Pyro699
  • 1,398 posts


Users Awards

Posted 11 May 2014 - 02:46 PM

Dont use Notepad++
Look into an editor called Sublime Text, i use to use npp but found this at my job and its a lot better.

 

Also, the regex you want is replace: (^ +)



#10 Dan

Dan
  • Resident Know-It-All

  • 6,321 posts


Users Awards

Posted 11 May 2014 - 03:35 PM

Dont use Notepad++
Look into an editor called Sublime Text, i use to use npp but found this at my job and its a lot better.

 

Also, the regex you want is replace: (^ +)

 

That RegEx would only remove literal spaces at the end of lines, there's an escaped character for whitespace: "\s".

(^\s+)

The following makes use of carriage returns "\r" and newlines, too "\n".

(^[\r\n\s]+)


#11 Pyro699

Pyro699
  • 1,398 posts


Users Awards

Posted 11 May 2014 - 08:20 PM

He said spaces :p I was not concerned about newlines and return carriages.

Also, \s includes newlines and return carriages (since we seem to be in the business of correcting each-other).



#12 Dan

Dan
  • Resident Know-It-All

  • 6,321 posts


Users Awards

Posted 12 May 2014 - 08:35 AM

MC2wS.png




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users