typing about code or terminal text: please use backticks (and avoid screenshotting text)

Also, a fun feature of the codeblock backticks is that you can specify the highlighting language within the codeblock. Just put the name of the available script/programming language in the top line, where the opening backticks are:

here, I started the codeblock with: ``` bash

#!/bin/bash

# comment
varA=$1
varB=$2

echo "++ The variables are: ${varA} ${varB}"

here, I started the codeblock with: ``` python


# comment
varA = 'some string'
varB = '''another string'''

print("++ The variables are: {varA} {varB}".format(varA=varA, varB=varB))

The current list of available names are:

The default color interpretation is 'auto', which may be more/less useful.

--pt

2 Likes