tek0011 Posted September 26, 2011 Share Posted September 26, 2011 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) [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
requinix Posted September 26, 2011 Share Posted September 26, 2011 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. Quote Link to comment Share on other sites More sharing options...
tek0011 Posted September 26, 2011 Author Share Posted September 26, 2011 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? Quote Link to comment Share on other sites More sharing options...
tek0011 Posted September 26, 2011 Author Share Posted September 26, 2011 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) Quote Link to comment Share on other sites More sharing options...
requinix Posted September 26, 2011 Share Posted September 26, 2011 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. Quote Link to comment Share on other sites More sharing options...
tek0011 Posted September 26, 2011 Author Share Posted September 26, 2011 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. Quote Link to comment Share on other sites More sharing options...
gandablond Posted August 31, 2012 Share Posted August 31, 2012 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.. Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 31, 2012 Share Posted August 31, 2012 I like Textpad for what you're doing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.