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

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


1 Answer 1


Google+ Does not support code formatting in posts.

  • 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 you have read our privacy policy.

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