3

I want to post some code to Google Plus. Eg.:

#!/bin/sh
adb shell screencap p | perl -pe 's/\x0D\x0A/\x0A/g' > adb-screenshot$(date +%Y%m%d-%H%M%S).png

but dashes - makes the code stroke through. How can I make it look like here on Stack Exchange, Slack or Github?

I want to make it look something like this:

code highlighting on Slack

3

1 Answer 1

3

Google+ Does not support code formatting in posts.

1
  • It's so sad :( :/
    – ViliusK
    Dec 8, 2017 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.