Skip to content

Commit

Permalink
Merge pull request #14 from alyssais/patch-1
Browse files Browse the repository at this point in the history
Add syntax highlighting to README Usage section
  • Loading branch information
hsbt authored Jan 29, 2019
2 parents 3b4a950 + 0c9b5f9 commit e4f7b74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ Or install it yourself as:

We'll start with parsing an XML document

```
```ruby
require "rexml/document"
file = File.new( "mydoc.xml" )
doc = REXML::Document.new file
```

Line 3 creates a new document and parses the supplied file. You can also do the following

```
```ruby
require "rexml/document"
include REXML # so that we don't have to prefix everything with REXML::...
string = <<EOF
Expand Down

0 comments on commit e4f7b74

Please sign in to comment.