5

Sometimes I need to write a grave accent formatted as code inline, but I can't do this, because the renderer recognizes it as syntax to write code.

Example:


Grave accent + Grave accent + Grave accent ```


Grave accent + space + Grave accent + space + Grave accent

`


Grave accent + space + Grave accent + Grave accent + space + Grave accent ``


As you see, the last one works, and I need something like that with just one Grave accent.

11
  • 2
    What if you escape the grave? $str = '` hello' with a `` \.
    – Script47
    Jun 5, 2018 at 16:32
  • How? i just need a grave accent formatted as code Jun 5, 2018 at 16:35
  • ` <-- here is a tick mark, preceded by a backslash, surrounded by two tick marks. Jun 5, 2018 at 16:35
  • 1
    Code inline is usually a bad habit as screen readers will usually read backtick the code backtick
    – Tensibai
    Jun 5, 2018 at 16:36
  • @Tensibai Stupid comment parsing :(. Jun 5, 2018 at 16:38
  • dont hate me, but which are tick marks? Jun 5, 2018 at 16:38
  • @MikeMcCaughan my bad, it work with a slightly different manner in answers too ;)
    – Tensibai
    Jun 5, 2018 at 16:38
  • @LeviArista Same key as a "grave accent". Jun 5, 2018 at 16:39
  • @LeviArista underneath the esc key.
    – Script47
    Jun 5, 2018 at 16:39
  • Is this on-topic on meta site? Jun 5, 2018 at 19:16
  • @AlexL Certainly, since this is about how to add backticks in code on Stack Overflow
    – Erik A
    Jun 5, 2018 at 20:03

1 Answer 1

7

To obtain this: ` I just wrote:

To obtain this: `` ` ``
0

You must log in to answer this question.

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