0

We cannot copy and quote posts that contain tagged code without removing all indentation. Makes quoting code useless and difficult, unless there is a user friendly way we should know via mental osmosis that has not yet been documented.

4
Contributors
5
Replies
11
Views
4 Years
Discussion Span
Last Post by Ancient Dragon
0

What about short bodies of code? If we want to explain a problem with a couple lines it's useful to quote those lines.

0

This is by design.

I wouldn't say it's by design, but it certainly falls out of how Markdown and our code detection algorithm work. The two conspire (possibly unintentionally) to make it impossible to have quoted code tags.

Markdown can handle quoted code tags with a little manual tweaking of the autoquote feature, but our code detection algorithm pukes on it because of the leading quote starter on the line.

0

It actually is intentional on my part because a HUGE pet peeve of mine when we were with the vBulletin system was people quoting long bodies of code. The Markdown language doesn't allow this, and when deciding to go with that syntax, I actually saw that as a plus instead of a negative.

1

Since code always contain line numbers (at least in the C/C++ forums it does) I see no reason to quote it, just refer to the line number(s) should be sufficient.

Edited by Ancient Dragon

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.