This is a migrated thread and some comments may be shown as answers.

DEMOS - Code Window copy and paste loose \r\n

2 Answers 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ken Lassesen
Top achievements
Rank 2
Ken Lassesen asked on 16 Jun 2011, 08:03 PM
I was just looking at some demos, looked at code and decided to do a copy and paste to Visual Studio 2010.

I was surprised to see all of the code render onto ONE LINE.

Using JustCode Reformat -- semi-fixed it... at least until the first comment line... repeated until the code was across.

It would be nice to have:
  • Copy Code button on the demo page... which keeps the formatting...
  • Have the ability to copy selections while retaining formats.
Thanks!

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 22 Jun 2011, 07:08 AM
Hello Ken,

Thank you for writing.

Indeed, your suggestion is quite reasonable. We will consider implementing such functionality in one of our future releases. For the time being you can use the the C# and VB.NET projects, offered with our demo application. The projects allow you see the implementation of the demos and also copy code pieces, without losing their formatting.

Once again, thank you for your suggestion. Should you have any other questions or feedback, do not hesitate to contact us.
 
All the best,
Stefan
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Stefan
Telerik team
answered on 21 Nov 2011, 05:13 PM
Hello Ken,

I hope you are well.

I am writing to inform you that in our latest release, we have introduced the "Copy Code" button in our Demo application. So now, you can use this button in order to copy the code from the example and keep its formatting at the same time.
 
Best wishes,
Stefan
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
General Discussions
Asked by
Ken Lassesen
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or