1 Reply Latest reply: Sep 19, 2014 12:10 PM by Peter Flynn (Adobe) RSS

    Save file formating

    CodeJoker Community Member

      Firstly I would like to ask if there is any way to get edge to format the saved html documents, javasript, or PHP files to look like they do in editor rather than everything on one line when I open it in notepad or gtext editor. E.G. I want the documents created in edge to have the proper indentation, line spacing etc. outside of edge so that those who work on them without this editor will be able to read them properly.  Is this possible with the current state of edge? If not then this question goes to developers of edge. Can you please add this as a default functionality? It not setting them up this way

        • 1. Re: Save file formating
          Peter Flynn (Adobe) Adobe Employee

          It sounds like what you're seeing is a problem with line endings.  The way line endings (newlines) are stored in a text file varies by OS.  Notepad, and a few other simple text editors, are only able to deal with the way Windows stores line endings.  Most editors, including Edge Code, can correctly understand line endings from any platform (Windows style or Mac/Linux style).  That explains the display difference.

           

          If you want to convert a file from Mac/Linux line endings to Windows line endings, there are various utility programs available that will let you do that, such as unix2dos.  Or you can write a little script file to make your own utility.

           

          - Peter