When pasting in source code, e.g., som HTML fragment, in a Kona conversation, it would be great if the formatting was actually preserved. Perhaps one could mark certain sections with something like the <Pre/> construct in HTML?
16 comments
-
Deb Fitzgerald Anders - Curious if you have tried to do the copy/paste into the Notes and reference it in your conversation. I've done that with some things that were more formatting-sensitive and it's helped me. Don't know if it's the ideal solution but thought I'd mention it as a posisble workaround for you to try.
-
Christine Boermeester Hi Anders,
Thank you for the feedback. Losing the formatting can happen from all different programs when it's not a straight Microsoft to Microsoft, for example. It's a good feature suggestion though. I hope Deb's suggestion would be a good workaround for you in the meantime.
Christine
-
Christine Boermeester Hi Anders,
Pasting in source code appears to be saving the formatting now in Kona. If this is not happening for you, please open a support ticket so we can investigate further.
Thank you,
Christine
-
Martin Dawids Hi Christine,
I am having the same issue. Did Anders open a support ticket?
Pasting plain text (e.g. source code) into a comment in Kona seems to delete all leading text consequently destroying the formatting/indenting of the text.
/Martin
-
Christine Boermeester Hi Martin,
Anders did not open a support ticket for this issue so perhaps Deb's method worked for him or he uses attachments.
We do have defects entered in regards to pasting comments destroying the leading text. That issue is separate from the pasted text being source code. If you would like to open a support ticket to have us investigate this issue further, please do. It would also help if you could include some screenshots showing what you are running into.
Thanks,
Christine
-
Martin Dawids Sorry, it probably works in notes like Deb suggested, but I want to be able to paste a code snippet into a conversation. Please see attached screen shot of code where all leading space has been incorrectly stripped off.
/Martin
-
Martin Dawids Hmm, this example wasn't that illustrative. Let's have a look at this one. It is part of a unified diff, but everything has been flushed to the left stripping important indentation.
/Martin
-
Christine Boermeester Hi Martin,
Thank you for the examples. I am able to reproduce this and I've logged it as a defect with development for correction in a future release.
Christine
-
Martin Dawids Great, thanks for your help.
/Martin
-
Karen Palino Christine Can you add to this ticket that formatting like Bold etc. does not stay when you paste. It keeps line feeds only it seems. I have tried in IE9 and Chrome.
-
Christine Boermeester Hi Karen,
I have updated the ticket for development with this information.
Thanks,
Christine
-
Jakob Lyng Petersen This feature-request has the status of "Done". But I don't see it working. Do I need to do something special to make it work?
-
Christine Boermeester Hi Jakob,
I just tested this again and it looks like source code can be pasted into a comment successfully in that it keeps all the tags, but it is still showing as very indented so that formatting is lost. We still have an open defect ticket for the indenting.
Christine
-
Martin Dawids Hi Christine,
Could you please post the ticket number for the indentation issue here?
Martin
-
Christine Boermeester Hi Martin,
The defect is not in TFS, it's in the Kona Team's defect software, Pivotal.
Thanks,
Christine
-
Iris Lavarias Hi Anders,
You can now paste text in html format on comments (including source codes), with the formatting left intact. Please note that this feature depends on the IDE/editor and browser used. Formatting is preserved if the text is in html format on the clipboard, especially if it has a <pre> tag. This works on RubyMine and VisualStudio (which has a Productivity Power tools extension to do this). For others that don't have this, you can paste the text first on a Word document and then copy-paste it from there to Kona.
It is also best to try this feature in IE and Firefox, as we discovered there are some inconsistencies with line indentation in Chrome.
We are working on a blog article to demonstrate the code snippets supported by this feature, so any feedback on the IDE/editor and browser you are using will be greatly appreciated.
Thanks,
Iris