I posted an answer to the question How to set TextBox.TextDecorations using a ComboBox.
There I explained the various problems I encountered and how I overcame it. All of it was original content written by myself. At the end, I wrote:
Luckily, the WPF source code is now available and I found in the TextDecorationCollectionConverter a list of the valid strings, which are actually all completely in uppercase, but the converter changes the input string to all uppercase too before doing a comparison.
The code of the TextDecorationCollectionConverter is actually rather complicated, no wonder I failed writing it myself. Here it is:
I wonder why this is considered "plagiarized without attribution", since I did tell the reader that the code of the TextDecorationCollectionConverter is from the WPF source code.
The sad thing is that this WPF code is not the solution, but caused the deletion, I guess. The idea was not that anyone should use this code in their application, since everyone already gets it in the .NET framework anyway. Rather, I meant it as a service to the Stack Overflow reader so that they could check quickly why the strings I used in my solution actually worked.
With hindsight, I understand that providing the GitHub link might help some people to find it.
What I feel sad about is that the answer just got deleted instead of telling me that I could add a link.
How can I get my answer undeleted?
Unfortunately, the person deleting my answer did not indicate which part of the answer he felt was plagiarized. I guessed that it would be the WPF source code, so I posted the same answer again, this time without the WPF source code. Now, I worry, that I'll get scolded here for reposting a deleted answer. But what can I do, when mistakes like this one happen?
<blockquote>
for larger quotes is preferred (e.g. code formatted code in a quote), but the key requirements are to be very clear what's copied, include proper attribution (as the link describes), and not copy more than is really needed. There is also the requirement that your post be primarily your own content, rather than primarily content copied from elsewhere (with some possible, but unlikely, edge case exceptions).git blame
, if that info were even available publicly.) The requirement to provide the author is most critical on Stack Exchange sites, where all content is contributed by a specific author. But it's also nice if you're quoting from someone's blog, GitHub issue, or whatever. @sec