mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-10 09:54:08 +02:00
Update formatting of example code
This commit is contained in:
@@ -55,7 +55,7 @@ Pressing `w` will bring up the branch selector.
|
|||||||
|
|
||||||
Pressing `s` will select the search bar.
|
Pressing `s` will select the search bar.
|
||||||
|
|
||||||
To see all of the sortcuts for given page type `shift+?`
|
To see all of the shortcuts for given page type `shift+?`
|
||||||
|
|
||||||
## Closing issues with commits
|
## Closing issues with commits
|
||||||
|
|
||||||
@@ -75,12 +75,13 @@ To link to an issue in another repo, `user_name/repo_name#ISSUE_NUMBER` e.g. `ti
|
|||||||
|
|
||||||
To add syntax highlighting to code in README:
|
To add syntax highlighting to code in README:
|
||||||
|
|
||||||
```ruby
|

|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
require 'tabbit'
|
require 'tabbit'
|
||||||
table = Tabbit.new('Name', 'Email')
|
table = Tabbit.new('Name', 'Email')
|
||||||
table.add_row('Tim Green', 'tiimgreen@gmail.com')
|
table.add_row('Tim Green', 'tiimgreen@gmail.com')
|
||||||
\`\`\`
|
puts table.to_s
|
||||||
```
|
```
|
||||||
|
|
||||||
## Emojis
|
## Emojis
|
||||||
|
Reference in New Issue
Block a user