This is from github markdown language. This should not be copied into your terminal. In order to make a codeblock in github you surround your code with three backticks like so:
In order to add syntax highlighting, you can specify the language like so:
The code you want will be the stuff between the backticks.
The reason you are seeing the
> prompt is because in bash the backticks are a special character used for command substitution. (It's an outdated way to do it but still works).
You can use it like:
$ echo `hostname`
it should be done like this
$ echo "$(hostname)"
Which will echo the hostname of your machine.
However when bash sees one backtick it interprets the rest of the statement as command substitution until it reaches a closing backtick. When you have three the first two close each other but the third opens opens a new substitution statement and bash is looking for a closing backtick. When you hit enter it displays a
> to let you know you are still inside this block and allow you to enter multi-line commands. The same happens with quotes or the line escape character:
$ echo `
> uname -s
$ echo '
$ echo \
> hello \