Skip to main content

All Questions

5 votes
0 answers
80 views

Stacks Editor says plain text, but code formatting isn't plain text

Stacks Editor says plain text, but code formatting isn't plain text: Screenshot taken on https://meta.stackexchange.com/ Markdown: > **To create a reviewers' Custom Max Papers after having run ...
Franck Dernoncourt's user avatar
1 vote
0 answers
38 views

Cannot paste into SE code blocks when Editing, breaks text editor and Markdown preview

There seems to be something wrong with the text editor when editing code inside ``` code blocks. I've noticed this when editing questions. Copy code from my IDE Edit a question Highlight all of the ...
pkamb's user avatar
  • 4,677
17 votes
0 answers
190 views

Don't treat code blocks as spaces when searching

I wanted to find all the posts containing the phrase call or call. In my case, I'll demonstrate on Stack Overflow, but this happens on Stack Exchange search too, so this isn't just an Stack Overflow ...
cocomac's user avatar
  • 14.4k
4 votes
0 answers
141 views

Appearance of HTML and CSS snippet is changing when it is indented

Today I was editing this question to change the formatting of its code into a runnable snippet. Once I configured the snippet, Stack Overflow would not let me submit my question because it thought ...
aplua's user avatar
  • 45
8 votes
2 answers
196 views

How can I find posts with particularly large code blocks in a non-code-based site?

From time to time in Space SE a question or answer about a calculation will need to share a significant amount of tabular data, say 100 or 1000 lines. It needs to be forever available to future ...
uhoh's user avatar
  • 6,406
5 votes
2 answers
124 views

How do I handle suggested edits changing code block style?

I'm new to reviewing suggested edits, but one pattern I noticed is that many edits only change the style of code block formatting (mostly from indented to ```-based, example), in a way that does not ...
Caesar's user avatar
  • 153
6 votes
1 answer
209 views

Yet another error of "Your post appears to contain code that is not properly formatted as code"

I feel like I've found and read through all the relevant posts on Meta about this error, but I still can't resolve this error! I have about 6 equations in double-dollar-signs, several in single-dollar-...
Izek H's user avatar
  • 61
2 votes
0 answers
87 views

Prefer code fences or indenting? [duplicate]

Personally, code fences are cleaner (less whitespace) and are parsed more quickly due to the ability to hint at the language via cpp,lang-none,js, etc. Other than requiring indenting to use code in ...
Casey's user avatar
  • 159
11 votes
0 answers
97 views

Please have same background color for indented code and inline code

In this answer I included both indented code, and an inline codeblock. (Yes you may blame me for abusing code make-up for something that isn't technically code) They both have a different shade of ...
Luuklag's user avatar
  • 36.1k
20 votes
0 answers
199 views

On some sites, the closing fence is visible if post ends immediately after a code block that has an empty line

An example of the bug is shown in the screenshot below, which occurred while editing this answer: The issue goes away if a trailing line break is added. A minimal reproduction of the bug: Ask on ...
Adám's user avatar
  • 11.4k
1 vote
1 answer
2k views

How to write a ` symbol inside a code block [duplicate]

How can I write this symbol: ` inside a code block in just one line? As the code blocks are defined by: ```, I am not able to write one of these inside the code block.
Jeni's user avatar
  • 113
7 votes
0 answers
143 views

Make the post editor { } button use code fences instead of indent syntax

At least on Stack Overflow, new users tend to insert their code using the { } "code sample" button in the formatting bar, which uses 4 spaces to pad the code and create a code block. However,...
kos's user avatar
  • 187
-4 votes
1 answer
291 views

Labels atop code blocks

I'm sure this is an accident, but I've recently found out that you can "label" code blocks in a really nice way by using inline code in a level 4 (####) header: #### `Main.hs` ```haskell module Main ...
HTNW's user avatar
  • 135
4 votes
2 answers
104 views

How to post code from mobile?

Can somebody show me how to post code from a mobile device, as I cannot use control-K or any other combination. I have tried putting 4 spaces before each line and making 4 new lines in before and ...
user11119833's user avatar
3 votes
0 answers
28 views

Incomplete rendering of code blocks in Android app [duplicate]

I'm running the Stack Exchange app v1.0.95 on a Samsung Galaxy S7 Edge running Android v7.0. Over the last few days, I'm noticing that the app doesn't fully render code blocks anymore. It renders ...
Remy Lebeau's user avatar

15 30 50 per page