How to use code formatting in gmail (or any other email)?

This question is not very technical, but I'm trying to do something specific with the formatting code for use in emails. I am trying to send a colleague a few prompts on the command line, as shown below:

C:\Users\DOOKIE\Documents\research>hg branches default 476:7556c41ee089 

I would like to send it in a block block with a gray background, similar to the format above. Does anyone know how to do this in Gmail?

+4
source share
1 answer

I found a plug-in (at least for Google chrome) called Markdown, which is a lightweight markup language used to format text. It is currently used for project communications in the GitHub and BitBucket repositories. I'm sure there are similar solutions, but a browser plugin like Markdown seems like a good way.

Using tags, I can bring the code and scripts, for example, the one that is indicated in the above question, into the desired format. Just adding three backticks (`` '') before and after any code creates a code block.

http://daringfireball.net/projects/markdown/

+3
source

Source: https://habr.com/ru/post/1486683/


All Articles