We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 704844d commit edab46dCopy full SHA for edab46d
README.md
@@ -1,21 +1,27 @@
1
Bash scanner for highlighting scripts with CodeRay
2
==================================================
3
4
-### Instalation
+### Installation
5
6
- gem install coderay_bash
+```bash
7
+gem install coderay_bash
8
+```
9
10
### Usage
11
- require 'rubygems'
- require 'coderay_bash'
12
+```ruby
13
+require 'rubygems'
14
+require 'coderay_bash'
15
- plain = File.read('some_script.sh')
- @body = CodeRay.scan(plain, :bash).div
16
+plain = File.read('some_script.sh')
17
+@body = CodeRay.scan(plain, :bash).div
18
19
20
### in your template then do something like
21
- <%= @body %>
22
+```html
23
+<%= @body %>
24
25
26
### Types
27
0 commit comments