Skip to content

Commit edab46d

Browse files
committed
Improve formatting
1 parent 704844d commit edab46d

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
Bash scanner for highlighting scripts with CodeRay
22
==================================================
33

4-
### Instalation
4+
### Installation
55

6-
gem install coderay_bash
6+
```bash
7+
gem install coderay_bash
8+
```
79

810
### Usage
911

10-
require 'rubygems'
11-
require 'coderay_bash'
12+
```ruby
13+
require 'rubygems'
14+
require 'coderay_bash'
1215

13-
plain = File.read('some_script.sh')
14-
@body = CodeRay.scan(plain, :bash).div
16+
plain = File.read('some_script.sh')
17+
@body = CodeRay.scan(plain, :bash).div
18+
```
1519

1620
### in your template then do something like
1721

18-
<%= @body %>
22+
```html
23+
<%= @body %>
24+
```
1925

2026
### Types
2127

0 commit comments

Comments
 (0)