37

I asked a question and got a great answer.

When I ran the answer though my test code I noticed that the last line is not the one I actually get (it must have been a typo as the answer itself is absolutely correct).

I edited the answer to include the actual output for the code (which starts with the tag strong). Bam, the code got interpreted even though it was indented as code.

I then desperately tried to modify my edit to make the right code appear - but I am stuck with the six-characters limit. This is not a trivial edit; it completely changes the output.

What should I do in such cases, short of flagging 'Help! Help!'?

(And as a side note: how do I make the code appear non-interpreted?)

5
  • 13
    Leave a comment to the original poster of the answer explaining the problem, and perhaps they (or another user who isn't subject to the 6-char limit) will fix it. At the least, future readers will see the comment. (Or you could find more in the post to fix, like spelling or punctuation or grammar or formatting, that will get to 6 characters. It's typically not hard to do.)
    – Ken White
    Commented Feb 28, 2015 at 14:56
  • 1
    This is what I did. Another aspect of the problem is that I may be able to find more than six characters to change once, but now that I tried twice to make the code appear correctly there i snot much I can do.
    – WoJ
    Commented Feb 28, 2015 at 15:00
  • Even though the answer by Bergi's a great hack, I took the lazy way around and waited for 2k rep. Commented Mar 3, 2015 at 2:47
  • 3
    This limit is ridiculous. I shouldn't have to hack around the limit or bother the original author to change 'http' to 'https', as an example, when it materially affects the answer.
    – Pathogen
    Commented Aug 2, 2016 at 18:16

2 Answers 2

23

A hack to work around the six-character limit is to add an HTML-style comment to the post text:

<!-- six-character limit workaround -->

how do I make the code appear non-interpreted?

If you mean the syntax-highlighting, you can disable that by prefixing the code snippet by <!-- language: lang-none -->.
To counter HTML parsing, you can use entities like &gt; and &lt;: <strong>

13
  • 15
    Note that any reviewer worth the title will pick up on this, and click on 'improve edit' to remove this comment. Commented Mar 2, 2015 at 4:09
  • 1
    @Carpetsmoker not everyone views markdown comparison. I like to use rendered preview with markdown when I can't see the difference
    – Cole Tobin
    Commented Mar 2, 2015 at 6:27
  • 1
    Sometimes, unfortunately, the rules on this site need to be worked around - good answer. Commented Mar 2, 2015 at 11:16
  • 13
    I would reject this edit...
    – C Bauer
    Commented Mar 2, 2015 at 12:41
  • 4
    Why bother with the 6 character limit if it is trivial to work around?
    – Phil
    Commented Mar 2, 2015 at 17:15
  • 6
    @Phil maybe it's there to inhibit moronic vandalisms, as morons can't do trivial things by definition?
    – user719662
    Commented Mar 2, 2015 at 20:53
  • 3
    @Phil Implementing annoying mechanics that have trivial workarounds is sort of the SE way. You'll learn to love it, it's part of the charm.
    – Jason C
    Commented Mar 3, 2015 at 2:50
  • 1
    @Phil: It's only trivial when you know it. (Admittedly I didn't expect the question to gain such popularity). It should definitely only be used for non-trivial edits, anyone who uses this for trivial changes should be banned by the reviewers.
    – Bergi
    Commented Mar 3, 2015 at 14:36
  • 2
    @CBauer Are you saying you would reject based purely on the character count being worked around, no matter what the edit is? The count restriction is there because a machine check can't do much better than that; human reviewers ought to be more capable.
    – user3717023
    Commented Apr 24, 2015 at 21:27
  • 1
    @CBauer: No, I would reject iff it was a minor edit (not really necessary) that goes below the 6 character count; the limit is there for a reason.
    – Bergi
    Commented Apr 24, 2015 at 21:35
  • 1
    You should explain in the edit reason that the change, even though minor in terms of the number of characters changed, is essential for the answer to be correct. Commented Apr 24, 2015 at 21:36
  • 2
    Agree bergi. If the edit is trivial and unnecessary I would reject. The example was vague. Also if you can't find 6 characters to change to improve a stack overflow post, you're in a very lucky minority :)
    – C Bauer
    Commented Apr 24, 2015 at 21:39
  • 2
    This is abusive.
    – cat
    Commented Jul 13, 2016 at 1:08
-4

Building on the answer of Bergi I would recommend

<!-- 
    six-character limit workaround as recommended in
    https://meta.stackoverflow.com/a/287141/333403

     Editors: Please remove this comment.
-->

This makes the reasoning behind the comment more transparent.

1
  • If the website intended the character limit to simply be worked around, then it would not have the character limit in the first place. If the character limit rule is genuinely wrong, the correct action is to modify the Stack Exchange protocols to allow the correct case.
    – MRule
    Commented Sep 26 at 17:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .