Copy from IDE no carriage return

warwound

Expert
Licensed User
Longtime User
I've been meaning to ask this for a few weeks now.

When i copied code from the IDE into Windows Notepad it always used to copy 'properly' - each line from the IDE correctly pasted into Notepad on it's own line.

At some point pasting code from the IDE into Notepad now pastes the code as a single line - all lines from the IDE concatenated into a single line in Notepad.

Imagine copying a linux text document into a windows text editor - has the IDE started using a linux end of line character sequence instead of a windows end of line character sequence?

I noticed this shortly after upgrading to Windows 8 from Windows 7 and half assumed that the Windows 8 Notepad has started using a different line ending character sequence - but that sounds rather unlikely.

Notepad has no settings to choose end of line character sequence so is the problem with the IDE or elsewhere?

Martin.
 

warwound

Expert
Licensed User
Longtime User
OK i downloaded and installed Notepad++.

Pasted some code from the IDE into Notepad++ and it pastes correctly, though i don't see anywhere in Notepad++ that tells me the line ending being used.

Pasting the exact same clipboard contents into Notepad pastes it all as a single line.

I was just thinking - this problem appeared at the same time that i installed the windows version of gedit. I doubt that the gedit installation modified any windows files BUT it is possible.
So i ran the windows System File Checker and tried pasting into Notepad again - it still pastes the code as a single line.

Martin.
 

netchicken

Active Member
Licensed User
Longtime User
I paste into word 2012/2013 with no problems. I suspect that it's something new that you have done, but its really an odd problem.
 

agraham

Expert
Licensed User
Longtime User
I also get a single line when pasting IDE code into Notepad.

Saving it from Notepad and looking at it with a Hex Editor shows that each line is terminated by a single LF (x09) character. Loading it into Notepad++ shows Unix line endings.

If you paste it directly into Notepad++ it will convert it to the current line ending format. For a new document in Notepad++ this is Dos\Windows.
 

warwound

Expert
Licensed User
Longtime User
@agraham - which version of Windows are you using?

Martin.

[edit]I'm using 64 bit Windows 8[/edit]
 
Last edited:

warwound

Expert
Licensed User
Longtime User
I've been using the windows version of gedit as an alternative to Notepad - it better supports various other programming types of files.

But i think i'll give Notepad++ a try instead - gedit is awfully slow to start and probably has little to recommend it over Notepad++.

Martin.
 
Last edited:

MikeH

Well-Known Member
Licensed User
Longtime User
Is there a B4A language file I can download from someone please?

I`ll also ask in the relevant thread, but are there plans for a standalone b4a compiler so Notepad++ could be used as an ide?
 
Top