Jump to content
xisto Community
Sign in to follow this  
Albus Dumbledore

Problem With My Coding

Recommended Posts

Ok, i am about tired of the problem i am having because it makes things very un-organizedi use notepad to code my websites, and for some reason whenever i download a back-up of everything through my FTP the HTML documents get screwed up (see the attached image) look next to the red squares there are those squares and i dont want those there.another thing is that when i have those there, after i remove them and re-save the document, if i go into the file and do Word Wrap on it and then take the word wrap off, all of the HTML gets put into one or more big lines that go on as far as they can until it wraps to the next line..any idea how to stop all this?post-16756-1178516567_thumb.png

Share this post


Link to post
Share on other sites

meh, i wanted to avoid getting a real editor because notepad loads nice and quick and easy where as editors take years to load XD but i'll check it out

Share this post


Link to post
Share on other sites

meh, i wanted to avoid getting a real editor because notepad loads nice and quick and easy where as editors take years to load XD but i'll check it out

If you want a pretty good program that loads quick, you can try out PSPAD. I use it in Windows, and it's pretty good.

Share this post


Link to post
Share on other sites

kk thnx haslip and truefusion, i have downloaded haslip's program thingy and used it and it fixes it, i will download your's truefusion and see which one i like feature wise and design wise (im pickey XD)

Share this post


Link to post
Share on other sites

Just to add something, the problem appears to be the classic disagreement between Unix and Windows having different ways to do new lines in text files. This is why readme files often appear on one massive line if they have been written in Unix or Linux. Notepad, being made by Microsoft, only accepts the Windows way of doing things. As for me, I use Notepad++ as it is fast and lighweight, yet also has quite a few nice features.

Share this post


Link to post
Share on other sites

another thing is that when i have those there, after i remove them and re-save the document, if i go into the file and do Word Wrap on it and then take the word wrap off, all of the HTML gets put into one or more big lines that go on as far as they can until it wraps to the next line..

Sorry to say, but this isn't a bug. Word wrap prevents a line from stretching into those huge lines. You'll want to keep word wrap on when you're editing, but when you're getting ready to paste into a file or whatever, turn it off. It's for the sake of readability, but it will mess with your lines if you're not careful.

And I use Notepad too. There's no need to get another editor if it's not affecting how your code turns out. If the red squares are, however, messing with your coding, THEN you can look into another editor, but it's not something that's a flaw of the program itself.

Share this post


Link to post
Share on other sites

The reason you get those wierd symbols is because Unix and Windows have different line delimiters. If you have a linux machine, you can use the dos2unix command to switch a windows delimited file to a unix delimited file. To do vica versa call unix2dos. Otherwise, you have to have a text editor that actually has some brains in order to realize that the delimiters are not from the native os. For my web development i use the Eclipse IDE with the PHP and HTML plugins. The reason is that it keeps the code color coded so its easy to see errors, you can work on multiple projects at once, there is a preview window, and it will mark all the lines that have errors in them on the fly so you can quickly fix them. Plus, it gives suggestions on how to fix the errors which is nice. Plus i do Java programming and i can do that at the same time if needed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.