Skip to content

Commit 682b822

Browse files
committed
added syntax highlighting to readme
1 parent e018ab0 commit 682b822

1 file changed

Lines changed: 22 additions & 8 deletions

File tree

Readme.mdown

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,43 @@ The split gem and its dependencies.
1010

1111
If you are using bundler add split to your Gemfile:
1212

13-
gem 'split-analytics', :require => 'split/analytics'
13+
```ruby
14+
gem 'split-analytics', :require => 'split/analytics'
15+
```
1416

1517
Then run:
1618

17-
bundle install
19+
```bash
20+
bundle install
21+
```
1822

1923
Otherwise install the gem:
2024

21-
gem install split-analytics
25+
```bash
26+
gem install split-analytics
27+
```
2228

2329
and require it in your project:
2430

25-
require 'split/analytics'
31+
```ruby
32+
require 'split/analytics'
33+
```
2634

2735
## Usage
2836

2937
Use in your application layout template
3038

31-
# erb
32-
<%= tracking_code(:account => 'UA-12345-6') %>
39+
erb example:
3340

34-
# haml
35-
= tracking_code(:account => 'UA-12345-6')
41+
```erb
42+
<%= tracking_code(:account => 'UA-12345-6') %>
43+
```
44+
45+
haml example:
46+
47+
```haml
48+
= tracking_code(:account => 'UA-12345-6')
49+
```
3650

3751
## Development
3852

0 commit comments

Comments
 (0)