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


Google+ Does not support code formatting in posts.

| improve this answer | |
  • It's so sad :( :/ – ViliusK Dec 8 '17 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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