Jump to content

Recommended Posts

Essentially notepad++ is adding extra lines every other,

where as standard notepad for windows does not.

 

The difficulty is that when debugging line # x in notepad++ does not = the correct line number, but in standard notepad i have no line numbers to go off.

 

any ideas?

 

attached is a file for example.

here is a link to the two next to each other

 

(i accidentally cut off the line numbers in notepad++, but you get the idea)

 

MsCUH.png

 

 

 

 

[attachment deleted by admin]

The file is saved with \r\n (Windows) newlines while Notepad++ is thinking Unix newlines - thus \r\n becomes two newlines.

Unless you can tell Notepad++ to use Windows-style newlines, you'll have to pick which editor you like better.

 

But seriously, you're using rocks to carve Rushmore. There are way better tools available. Ditch both of those and try something else.

The file is saved with \r\n (Windows) newlines while Notepad++ is thinking Unix newlines - thus \r\n becomes two newlines.

Unless you can tell Notepad++ to use Windows-style newlines, you'll have to pick which editor you like better.

 

But seriously, you're using rocks to carve Rushmore. There are way better tools available. Ditch both of those and try something else.

 

notepad++ is beautiful though.  :) 

what would you recommend that would both work, and resolve my current issue?

Obviously using notepad to determine a line number by physically counting is out of the option.

Any ideas?

 

The file is saved with \r\n (Windows) newlines while Notepad++ is thinking Unix newlines - thus \r\n becomes two newlines.

Unless you can tell Notepad++ to use Windows-style newlines, you'll have to pick which editor you like better.

 

But seriously, you're using rocks to carve Rushmore. There are way better tools available. Ditch both of those and try something else.

 

i did find how to tell notepad++ to replace \r\n , however do you have any recommendations still on a extremely light weight program for php, ccs, xml editing?  I edit 10's of 1000's of line of log files at my work, so notepad++ seemed to be a good way to go for all.

 

in case anyone finds this thread:

Search -> Replace -> (bottom left) click on Extended -> \r\n -> replace (leave the replace line blank)

i did find how to tell notepad++ to replace \r\n , however do you have any recommendations still on a extremely light weight program for php, ccs, xml editing?  I edit 10's of 1000's of line of log files at my work, so notepad++ seemed to be a good way to go for all.

So you do want something lightweight. I figured you were editing these files as if to spend a bunch of time writing code. Sure, Notepad++ is fine, but it doesn't seem to have a way to open files using different kinds of newline characters - you actually have to search/replace everything.

 

Years ago I used to use something called EditPlus. Otherwise Google is your friend.

Otherwise Google is your friend.

 

yea, thats why I asked.  Never found any editor better then ++ that Google has recommended. 

Seems to me Ill have to start just replacing all /r/n.

Thank you for pointing me into the right direction for replacing that code.

  • 11 months later...

I know this thread is more than a year older, but just to let everyone know (who needs an answer):

 

Notepad++ 5.8.6 has an Edit -> EOL Conversion option that does the line breaks for you. I guess it was introduced before, but I don't have an older version at hand.

 

Also, Notepad++ is the best choice for lightweight source code editing..  ;)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.