Questions tagged [inline-code]

For questions about the use of inline code, activated by surrounding text with backticks in Markdown.

Filter by
Sorted by
Tagged with
3 votes
0 answers
35 views

Inline code formatting tries to escape the page! [duplicate]

I was going through the First Questions review queue, and was given this review. I don't think the inline code block should render like that. Even though the OP should have used a code block, I don't ...
cocomac's user avatar
  • 13.1k
1 vote
0 answers
65 views

Inline code in comment causes overflow of code container outside of answer/question comment section [duplicate]

Using Chrome Version 90.0.4430.93 (official Build) (64-bit) on Linux, this happens here:
Amit Beckenstein's user avatar
2 votes
0 answers
51 views

Wrong in-line code formatting [duplicate]

I have a problem with in-line code formatting here: Problems with cookies and TortoiseSVN I want to make two different in line code in single comment. What I'm doing wrong? This is how it looks ...
Michał Lipok's user avatar
11 votes
0 answers
94 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
  • 36k
4 votes
0 answers
46 views

Double back slashes escape code formatting in comments (but not answers) [duplicate]

I recently posted on answer on Stack Overflow which mentioned the discrepancy between windows and linux path separators in the answer. I enclosed both in inline code snippets like so: \\ and /. These ...
Dillon Davis's user avatar
5 votes
2 answers
9k views

Bold or italics in Markdown inline code [duplicate]

I would like to add bold (or italic) text to inline code (not a block of code). So in one **two** three, I would like "two" to be bold rather than surrounded by asterisks. Note: This is a similar ...
Trevor's user avatar
  • 223
6 votes
3 answers
229 views

In-line Backtick Escapes Not Formatting Text as Code

I'm trying to insert backtick escapes to highlight (with a gray background) in-line text as ˋcodeˋ, but the text surrounded by the backticks appears as regular text (as in ˋthis textˋ). Not sure if I'...
Lucas's user avatar
  • 121
3 votes
0 answers
48 views

No padding for Inline code block

Is it just me or inline code CSS does not feel tall enough anymore: Before text sample inline after text. Before text With capitals after text. Screenshot: This is making me claustrophobic. ...
Ciro Santilli OurBigBook.com's user avatar
4 votes
0 answers
64 views

English letters are more bold than non-English in code in comments

Looks like the English letters are more bold than non-English in comment section for inline code formatting in the Stack Exchange iOS app: Web version shows them with same boldness: App ...
αλεχολυτ's user avatar
7 votes
0 answers
41 views

Inline formatting in the Stack Exchange apps and mobile web eats spaces

My post contains several lines with inline formatted code. It looks aligned in web: But it looks like spaces are eaten in the Android app: Same buggy behavior in iOS app: And mobile ...
αλεχολυτ's user avatar
3 votes
0 answers
121 views

Hyperlink for square brackets inside inline code

Adding a hyperlink for inline code with square brackets via the tool button (or Ctrl+L) gives the wrong enclosing: E.g.: text [] text produces: text \[\] text instead of text [] text
αλεχολυτ's user avatar
3 votes
1 answer
11k views

Can't add code to comment

I am trying to add code to my comment using inline code in backticks, but it doesn't work for the below path: \Users\user_name\AppData\Local\Packages\Microsoft.MicrosoftE‌​dge_xxxx\AC\#!001\Mi‌​...
curious's user avatar
  • 253
7 votes
0 answers
128 views

Display a warning when backticks are used incorrectly to format text as code

This is a follow-up of a previous discussion. Recently I have seen several comments that use code formatting (with `…`) instead of emphasis (with *…*) in order to format some text. On one hand, ...
A.L's user avatar
  • 1,546
4 votes
1 answer
105 views

How to prevent users from emphasizing text in comments as "code" instead of "emphasis"?

Recently I have seen several comments that use code formatting (with `…`) instead of emphasis (with *…*) in order to format some text. This is not correct since the text is not code and this results ...
A.L's user avatar
  • 1,546
3 votes
1 answer
33 views

Have search find words even if they are formatted as inline code

Searching with these terms on SO: user:939860 type unknown This answer of mine is not found (user:939860 being me): I have a delete-insert CTE that fails in a strange manner But it clearly has ...
Erwin Brandstetter's user avatar
3 votes
0 answers
33 views

Consecutive spaces in inline code get collapsed [duplicate]

I’ve found a markdown bug: To match three or more spaces in regex, use `/ +/`. ☞ To match three or more spaces in regex, use / +/. Boom.
Konrad Rudolph's user avatar
1 vote
0 answers
32 views

Inline code (backticked) looks different in lists [duplicate]

Is it supposed to look differently in a list? Some examples: keyword keyword keyword ← this looks weird keyword keyword ← and this keyword keyword keyword ← this too
user1306322's user avatar
  • 10.6k
1 vote
0 answers
28 views

Using inline code formatting [duplicate]

Shouldn't inline formatting be used only for code? Recently a lot of people apply it to non-code blocks like: Frameworks: Bootstrap, Backbone.js, AngularJS ... UI elements, when a user says logout ...
Ahmad Alfy's user avatar
15 votes
1 answer
240 views

URLs are linked despite being inside a code span

Markdown source: `http://google.com` - `http://google.com` - `http://google.com` Rendered result: http://google.com http://google.com http://google.com Note that the third code span is a ...
acdcjunior's user avatar
3 votes
0 answers
155 views

Inline code overlaps link underline

When inline code appears directly below a link, it overlaps and hides the underline of the link (on Meta, the only visual indicator that a link is present. Example on this question: I see this on ...
yoozer8's user avatar
  • 14.3k
7 votes
0 answers
139 views

Code sample in a list has no padding [duplicate]

This request is about how to make Stack Overflow better in 8 bytes: add padding to a code inside a list element. This is a code sample in a paragraph. It looks nice. This is a code sample in a list. ...
Pavlo's user avatar
  • 577
9 votes
2 answers
2k views

How do I escape backticks surrounding an inline code block? [duplicate]

Possible Duplicate: How can the backtick character ` be included in code? How do I do something like this: `order` But within a ``line`? <-- as you see over here I was able to get the ...
Naftali's user avatar
  • 21.6k
1 vote
1 answer
137 views

How can I put a space at the end of an inline code block?

I'm trying to put "dir " in an inline code section, and ```dir `` doesn't work. When I do this, the result looks like this:dir ` (no space at the end). How can I put a space at the end of an inline ...
Jay Sullivan's user avatar
132 votes
5 answers
4k views

Inline Code Spans should not be used for emphasis, right?

When reviewing Suggested Edits on Stack Overflow, I often come across "fixed formatting" suggestions that use inline code spans to place emphasis on certain keywords, but isn't actual code. For ...
vcsjones's user avatar
  • 2,891
2 votes
1 answer
70 views

Since when are URLs parsed inside an inline code block? [duplicate]

I just ran across this post which had been flagged for a broken link to example.com... I'd like to see the `[Foobar](http://www.example.com)` URL markdown in comments. That's all it is. For some ...
animuson's user avatar
  • 189k
7 votes
2 answers
585 views

How can I write inline code ending in a backtick (`)?

How can I write inline code (e.g. in a comment) ending in a backtick, without adding an extra space at the end? I know that backticks can be included if the code is surrounded by double backticks, ...
Szabolcs's user avatar
  • 775
22 votes
1 answer
289 views

My suggested edit rejected because I pulled in jsFiddle code

The following suggested edit, in which I copied code from a linked jsFiddle into a question but left the link to that jsFiddle intact, was rejected and one reviewer's reason was "Do not inline ...
ThinkingStiff's user avatar
1 vote
1 answer
3k views

Inline code markdown is handled differently in questions/answers and comments

In questions/answers, to put backticks within my inline code I have to enclose the whole thing in double backticks. ``cd `brew --prefix` `` In comments I can escape backticks with backslashes. I can'...
swrobel's user avatar
  • 112
3 votes
1 answer
4k views

Can you put code snippets in comments?

I tried to do this today, and whenever I hit Return to get to the line where I want to put the comment, the editor thinks I'm done with the comment as if I'd hit Enter to mean "I'm done", instead of ...
Eric Bloch's user avatar
0 votes
1 answer
361 views

Problem with double backticks for marking inline code

In this post over at tex.sx I'm trying to explain how one can mark inline code. To show backticks in inline code, I enclose the code in double backticks ``, and mostly this works. However, the very ...
Hendrik Vogt's user avatar
  • 6,115
4 votes
2 answers
7k views

Stack Overflow inline code [duplicate]

I'm a Stack Overflow n00b, but I believe it's an invaluable resource, and really has been so far to my deving on different projects. Anyway, I have seen users write inline code. In other words, they ...
Qcom's user avatar
  • 151
27 votes
1 answer
367 views

Inconsistent padding of inline code

Looking at the following screenshot of this answer, you'll notice a slight difference in padding of inline code inside normal paragraphs and that of code inside of lists: http://img835.imageshack.us/...
Marcel Korpel's user avatar
3 votes
1 answer
1k views

"Inline code" button for the editor

I see bold and italics button but no inline code while it uses quite an uncommon syntax (back ticks, `` - the syntax is good, just not very obvious). It would be convenient to have this button. ...
Borek Bernard's user avatar
33 votes
8 answers
1k views

Formatting of inline code is ugly and can result in river-like patterns when used frequently

This has bothered me for a while... Ever since the bulky padding and gray background were added to <code> elements, really. But I kept hoping I would get used to it... ...I didn't. It's ugly, it'...
Shog9's user avatar
  • 448k
1 vote
3 answers
382 views

Request to add inline code and monospace font

The title says it all. Could StackOverflow have the ability to insert "inlined code", as well as change the format of code blocks to be the browser's default monospace font?
quad's user avatar
  • 51
15 votes
5 answers
691 views

Code-Coloring for Inline-Code in Answers

Is there a reason that inline-code (with ``, of course) in answers is excluded from the prettify-process? Sometimes a piece of code is a bit too small to be blessed with its own blockquote, and so ...
Sampson's user avatar
  • 37k