Often in c# (and possibly other languages) error messages will contain <
and >
characters, especially if they use generics.
For example:
The type arguments for method 'System.Linq.Enumerable.Join (System.Collections.Generic.IEnumerable, System.Collections.Generic.IEnumerable, System.Func, System.Func, System.Func)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
There are a lot of characters missing in the above text, which markdown removes. Markdown believes it's html, and removes it.
The site's consensus is to put errors in blockquotes. When I do this, markdown will still remove the offending characters.
The type arguments for method 'System.Linq.Enumerable.Join (System.Collections.Generic.IEnumerable, System.Collections.Generic.IEnumerable, System.Func, System.Func, System.Func)' cannot be inferred from the usage. Try specifying the type arguments explicitly."
I can also make it a code block, but this is tedious and does not look as nice.
The type arguments for method
'System.Linq.Enumerable.Join<TOuter,TInner,TKey,TResult>(System.Collections.
Generic.IEnumerable<TOuter>, System.Collections.Generic.IEnumerable<TInner>,
System.Func<TOuter,TKey>, System.Func<TInner,TKey>, System.Func<TOuter,TInner,
TResult>)' cannot be inferred from the usage. Try specifying the type arguments
explicitly.
So, there has to be an easier way to do this. Cupcake blew my mind recently (link gone) by posting an entire answer in blockquotes. I hope there is something just as easy to fix this.
How can I show the full error without markdown removing characters with the least amount of effort on my part (the editor or author)?
If you really want to know, this is the question I was trying to edit where I came across this problem