The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> html file saving anomalies, How to save files without disrupting code
Liberty Felix
post May 6 2012, 11:58 AM
Post #1





Group: Members
Posts: 1
Joined: 6-May 12
Member No.: 17,063



I am having trouble saving html code in Notepad, as it strips line feeds and some white space, jamming lines together in unexecutable code.
Particularly, a PHP call running into an include() function statement continued to save incorrectly upon multiple attempts to re-insert a space and line feed.

What editor should I try to avoid this or is there a methodology that I'm missing in using Notepad.
I was recommended Notepad++ on another forum and it worked once, but did not upon an additional try.

I was recommended Wordpad, which seems to work, but I have to force the file type, which is not intuitively offered in the file type saving form feed fields.

Can anyone explain to me what is happening with the faulty code stripping saves in Notepad~? sad.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 6 2012, 12:24 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



I don't think Notepad strips anything. Are you talking about line breaks you make with the keyboard or the HTML tag BR?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 6 2012, 12:33 PM
Post #3


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



Maybe it's the FTP program (or its settings) that causes this? Compare http://www.editpadpro.com/tricklinebreak.html

In any case there are lots of good text editors, just try them and see which one(s) you prefer.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 6 2012, 02:15 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



None of them should strip anything though. I forgot to ask when and where you notice this has happened. Surely not when you save the file and still view it in Notepad?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 06:02 PM