Skip to content

Commit

Permalink
Merge pull request #59 from trupin/patch-1
Browse files Browse the repository at this point in the history
added objc code coloration
  • Loading branch information
topfunky authored Feb 9, 2017
2 parents 7611b7a + 72252a3 commit bb1dcfa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ More documentation and short screencast coming soon...

See TFHppleHTMLTest.m in the Hpple project for samples.

<pre>
```objc
#import "TFHpple.h"

NSData * data = [NSData dataWithContentsOfFile:@"index.html"];
Expand All @@ -44,8 +44,7 @@ TFHppleElement * element = [elements objectAtIndex:0];
[e attributes]; // NSDictionary of href, class, id, etc.
[e objectForKey:@"href"]; // Easy access to single attribute
[e firstChildWithTagName:@"b"]; // The first "b" child node

</pre>
```
# TODO
Expand Down

0 comments on commit bb1dcfa

Please sign in to comment.