426 posts
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • United Kingdom
SimpleSites4U says

Hey folks

just curious if anyone has experienced anything like this before

I use notepadd++ and up untill very recently iv loved it, but im noticing some strange behaviour and cant work out whats causing it

Basically, when i finish a file, say a plugin or wp theme, when i upload it it changes all on its own (adding lines here and there) so by the time i re download the file it looks weird and has a lot of lines added which in turn cause some errors (header already sent etc)

I cant fix them by removing the lines but does anyone know whats going on and how i can get round it? am i doing something wrong?

iv used it for over a year but its only start this over the last few days

639 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
  • Haiti
Crakken says

Not trying to make you hate Notepad++, but you should absolutely try Sublime Text 2:
http://www.sublimetext.com/
Mac and PC
Edit: I got Notepad++ but I never had this problem with it… It’s been a long long time since I used it (Because of Sublime Text 2) so it may be a version bug, did you update to the last version?

317 posts
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Exclusive Author
  • Portugal
vtimbuc says

I had a similar issue too on Windows when I saved a html file with notepad++.

426 posts
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • United Kingdom
SimpleSites4U says

Iv used sublime and its nice n all, but it struck me as bit costly for no benefits at all

I think you may be onto something about the updates Crakken, ill see if an older version still has this

Its a shame really as i have themes floating around the web and I cant be sure the code is the same as when I originally hit ‘save’

47 posts
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Exclusive Author
  • Referred between 10 and 49 users
  • Has been a member for 4-5 years
  • Portugal
eduvoindo says

I had the same problem once, and it’s probably the same thing I had. Nothing to do with notepad++ and instead is your ftp client. Try uploading your files in BINARY mode instead of TEXT mode. (Also check if there is an AUTO option, and force it as always BINARY , because AUTO may be using TEXT when uploading php/html files)

That solved my problem ;)

309 posts No! It's not a 5 minute job!
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Microlancer Beta Tester
  • Contributed a Tutorial to a Tuts+ Site
+8 more
WebFactory says

As eduvoindo said – 98% it’s a FTP client issue.

426 posts
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • United Kingdom
SimpleSites4U says

Wehay!!!

thanks eduvoindo that appears to have solved it!!

Thanks for your reply! im really glad I posted now as my faith in np++ has been fully restored :D

47 posts
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Exclusive Author
  • Referred between 10 and 49 users
  • Has been a member for 4-5 years
  • Portugal
eduvoindo says

Wehay!!!

thanks eduvoindo that appears to have solved it!!

Thanks for your reply! im really glad I posted now as my faith in np++ has been fully restored :D

NP++ is still (and always will be) the best free code editor, never loose faith ;)

426 posts
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • United Kingdom
SimpleSites4U says

ok so im having more beef

it became apparent whilst i was trying to upload a theme to the wp.org repository

basically something is still somehow off with np+, in this case the text in my style.css file looks fine in np+ but if i open up the file in say windows notepad some of the line where showing as on huge line, rather than neatly on separate lines as it looks in np++

anyone else experienced this kind of problem, if so how did you get round it?

47 posts
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Exclusive Author
  • Referred between 10 and 49 users
  • Has been a member for 4-5 years
  • Portugal
eduvoindo says

Well most of my (np++) files when opened with windows notepad they look like you say. But hey, who cares about windows notepad anyway? If you try to open your files on a decent code editor, they will all look ok.

Reason must be, because windows notepad handles tabs (and other stuff) in a different way.

Still, why bother with windows notepad? try dreamweaver, you’ll see everything is cool :)

by
by
by
by
by
by