Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 792  / 3 Years ago, fri, may 21, 2021, 2:08:47

I'm using c/c++ compiler on Ubuntu 14.04 and I've typed all the programs using Gedit text editor.



But the problem is that now I need to open them in Windows 8 with Notepad, but when I tried to open .c files that are created in Ubuntu in Notepad they are displaying like a paragraph but not line by line.



So I need the programs to be displayed line by line as in Gedit . The only method I found was to edit each and every line in the program as to be displayed as line by line.


More From » windows-8

 Answers
1

It's true that Notepad is not a good editor and that it's basically Notepad's fault. But the actual problem is this:
Line ends are stored differently among operating systems. Unix (Ubuntu) usually use the symbol "LF" and Windows (Notepad too, because of that) "CR+LF".
You can set the line ends to CR+LF in Gedit (you need to search the option yourself, you should find it somewhere) and Notepad will be happy.
But in the long term you'll be happier with Notepad++ or I think Geany runs on Windows too.


[#25156] Sunday, May 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
altybol

Total Points: 364
Total Questions: 138
Total Answers: 121

Location: France
Member since Thu, May 6, 2021
3 Years ago
;