0

It's commonly known that you can use code formatting by surrounding your code with backticks: `enter code here`.

Unfortunately, the ` character is fairly well hidden on the default iOS keyboard, making it inconvenient at best, or impossible to find at worst.

This isn't an issue when writing questions or answers, since there's a convenient "insert code button", but unfortunately there's no such button when writing comments.

There should be an alternative way of enclosing code on mobile devices, such as a code formatting button when writing comments.

  • 2
    Wait, it exists at all? TIL. I've tried to type backticks on mobile so many times only to give up and copy paste it. – Riker Apr 14 '17 at 18:32
  • 1
    Long pressing the apostrophe isn't really that inconvenient. I mean... apostrophes are a pretty commonly used thing and it's only very marginally more inconvenient – Cai Apr 14 '17 at 19:48
0

Turns out there is an alternative way to add code formatting to comments in the iOS app.

  1. Highlight the text you want to format.
  2. Click the 'more' arrow.

more arrow

  1. Click Format.

Format

  1. Click Code.

Code

You must log in to answer this question.

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