xqMogvKW
xqMogvKW

Reputation: 628

How to quickly format programming codes in the GitHub's Issue?

If I create an issue with some codes in the gitHub, how to format it?

I have to add more white spaces again and again......

Is there anything like what we can see in the StackOverFlow by clicking "Code Sample" button?

Upvotes: 0

Views: 37

Answers (1)

Simone Carletti
Simone Carletti

Reputation: 176552

Simply wrap the code with the fenced code block delimiters.

```
here is
the
code
block
```

You can also specify a language.

```ruby
puts "hello"
```

Upvotes: 3

Related Questions