8

Example answer with bug.

By indenting the snippet generating comments, you can make a pretty odd snippet style, where the button titles are shown in a monospaced font.

let test = "Hello, world!";
<html>
<body>
Test
</body>
</html>

Image for those on mobile:

5
  • 8
    This is hilarious.
    – user651518
    Nov 24, 2019 at 23:55
  • 3
    I don't get it? What's wrong? Im on mobile, maybe it looks different to me
    – dustytrash
    Nov 25, 2019 at 5:10
  • @dustytrash, I confirm that a mobile version shows snippets incorrectly (it should look like this, but actually looks like this). I'm filing a report on it. Nov 25, 2019 at 8:19
  • 1
    @dustytrash, denied reporting, it looks like status-bydesign: Can't run Stack code Snippets on the mobile site. Nov 25, 2019 at 8:23
  • 1
    @JL2210 I wonder how many levels in you can go... Nov 25, 2019 at 17:05

1 Answer 1

1

Eh... The snippet editor itself should never produce output like this... You have to go out of your way to trigger it, at which point it looks completely broken in the editor preview:

snippet appears as "<pre>sif647</pre>" in the preview

If your goal is to make your post look weird or broken, you can do that in many ways. And if you really want to involve snippets, you can get a hell of a lot crazier than just monospaced text...

let test = "Hello, world!";
<html>
<body>
Test
</body>
</html>

4
  • 1
    Isn't it something that should be fixed if a lot of people start abusing it? Jan 6, 2020 at 22:52
  • 1
    Why? Folks can put all sorts of stupid stuff in their posts. That's why we have flagging and editing.
    – Shog9
    Jan 7, 2020 at 1:23
  • 1
    So should we edit this to remove the broken snippet editor? ;)
    – Luuklag
    Jan 7, 2020 at 9:09
  • TL;DR: It's not a bug, it's a feature. Jan 7, 2020 at 17:02

You must log in to answer this question.

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