Skip to content

Commit 4691aec

Browse files
committed
Merge pull request github#493 from himynameismartin/patch-1
Add Ruby syntax highlighting
2 parents 43fe31a + d2860bf commit 4691aec

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,24 @@ you wish to run the library. You can also run `script/bootstrap` to fetch them a
3131
Installation
3232
-----------
3333

34-
gem install github-markup
34+
```
35+
gem install github-markup
36+
```
3537

3638
Usage
3739
-----
3840

39-
require 'github/markup'
40-
GitHub::Markup.render('README.markdown', "* One\n* Two")
41+
```ruby
42+
require 'github/markup'
43+
GitHub::Markup.render('README.markdown', "* One\n* Two")
44+
```
4145

4246
Or, more realistically:
4347

44-
require 'github/markup'
45-
GitHub::Markup.render(file, File.read(file))
48+
```ruby
49+
require 'github/markup'
50+
GitHub::Markup.render(file, File.read(file))
51+
```
4652

4753
Contributing
4854
------------

0 commit comments

Comments
 (0)