Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

So basically there is 3 types of newline characters according to operating system: Windows, MAC and Linux. Gedit is using Linux by default, but I'd like it to use Windows, so I can open the same text file in Windows and not get the whole text on just one line.

Is there any way to configure gedit to use Windows newline character?

Thank you!

share|improve this question

marked as duplicate by Takkat, karel, Eric Carvalho, Eliah Kagan, Ask Mar 3 at 6:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
It doesn't answer the question, but it is possible to get gedit (and most Linux programs) on Windows, which would mean that you wouldn't need to worry about line endings. –  evilsoup Feb 26 at 21:55

1 Answer 1

up vote 5 down vote accepted

There are an option in the "save as" window that do that you want.

File >> Save As >> Line Ending

Select "Windows" from the dialog. Next time you open the file for editing it will detect what line ending is present and automatically save it that way.

enter image description here

source

share|improve this answer
    
Outstanding, thank you very much! –  aroll605 Feb 26 at 22:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.