1

Yesterday, I posted one answer from Samsung Galaxy S4, but when I opened this answer in a web browser, I saw that the posted code was not formatted.

So, is there anything (options) I have to set from the mobile-side to format this code?

4
  • You mean this answer? Same way you format code when posting using the website: you indent the code lines. Commented Oct 13, 2014 at 10:31
  • ya exactly. I just formatted this code Manually when i saw this answer.
    – M D
    Commented Oct 13, 2014 at 10:33
  • 1
    Did you use the Android app or just a mobile browser? The mobile web doesn't have the editor buttons, but the only thing the editor button does is indent selected lines with 4 spaces. Commented Oct 13, 2014 at 10:34
  • I posted this answer from Chrome Browser.
    – M D
    Commented Oct 13, 2014 at 10:36

1 Answer 1

1

You'd mark code just like you would when using the desktop version of the site: by indenting the code blocks 4 spaces.

On the desktop version you can use the code button in the editor, but all that that button does is add those 4 spaces for you. In the mobile web version, you just add spaces manually.

Your answer from yesterday was missing those 4 spaces; you added them later on when you edited the post.

You could use the Stack Exchange Android app to post from your mobile device; it includes a post editor with a formatting toolbar. There is an app for iOS devices too (iPad version is in beta)!

4
  • @MP but i already added 4 space when i posted this answer.
    – M D
    Commented Oct 13, 2014 at 10:40
  • 1
    @MD: not according to the revision history of your post. Commented Oct 13, 2014 at 10:41
  • @MP Ok.Thax..Now i got it..
    – M D
    Commented Oct 13, 2014 at 10:41
  • 2
    @MD: I don't do it that often, but I have posted code from my iPhone (using Mobile Chrome) and manually adding 4 spaces has always worked fine. Commented Oct 13, 2014 at 10:41

You must log in to answer this question.

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