Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [inline-code]

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

4
votes
0answers
44 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 ...
4
votes
2answers
268 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 ...
5
votes
3answers
113 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'...
2
votes
0answers
41 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. ...
4
votes
0answers
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 ...
6
votes
0answers
36 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 ...
3
votes
0answers
49 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
3
votes
1answer
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‌​...
7
votes
0answers
106 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, ...
3
votes
1answer
86 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 ...
3
votes
1answer
30 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 ...
3
votes
0answers
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.
1
vote
0answers
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
1
vote
0answers
22 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 ...
15
votes
1answer
219 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 ...
3
votes
0answers
122 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 ...
7
votes
0answers
138 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. ...
6
votes
2answers
575 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 ...
1
vote
1answer
94 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 ...
109
votes
5answers
2k 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 ...
2
votes
1answer
63 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 ...
6
votes
2answers
398 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, ...
22
votes
1answer
279 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 ...
1
vote
1answer
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'...
2
votes
1answer
3k 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 ...
0
votes
1answer
342 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 ...
3
votes
2answers
5k 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 ...
27
votes
1answer
333 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/...
2
votes
1answer
876 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. ...
32
votes
8answers
879 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, ...
1
vote
3answers
274 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?
14
votes
5answers
609 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 ...