Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29277 Discussions

Cannot copy and paste code - carriage return/line feeds missing or not present

anthonyrichards
New Contributor III
1,488 Views

Why, when I tried to copy a blockof posted code (from Paul Curtis on the Excel - from - Fortran thread)and paste it intoa new file opened in DevStudio, it failed to produce anything ?

If I copied a smaller portion, when pasted I get a single record with no line breaks.

Is there a way round this?

0 Kudos
5 Replies
jimdempseyatthecove
Honored Contributor III
1,488 Views

Anthony,

Try pasting into Wordpad. Then save as DOS Text file.

Jim Dempsey

0 Kudos
anthonyrichards
New Contributor III
1,488 Views

Thanks Jim, that worked fine!

It's a hellava thing to have to do that to be able to extract posted code though, Steve?

0 Kudos
Steven_L_Intel1
Employee
1,488 Views
Yeah, this bugs me too. I'll bring it up to the maintainers.
0 Kudos
jimdempseyatthecove
Honored Contributor III
1,488 Views

>>It's a hellava thing to have to do that to be able to extract posted code though

It is annoying. This is an IDE thing (VS). VS should be able to handle pasting in HTML and converting to text. (MS problem).

I can see the finger pointing now...

Sometimes NOTEPAD will work, WordPad seems to work all the time.

Jim

0 Kudos
Steven_L_Intel1
Employee
1,488 Views
It seems to depend on how you pasted the code into the post. I've seen this happen elsewhere with code displayed on a web page. It looks ok but if you copy and paste it you lose line breaks.

Theoretically if you use the "Paste Code from Clipboard" (C++ button!) it should work better but Firefox complains that clipboard access is not allowed for security...
0 Kudos
Reply