From 40aa75beb1d307cb61b2d97f4899e16832fe1eb0 Mon Sep 17 00:00:00 2001 From: relikd Date: Tue, 15 Mar 2022 15:34:08 +0100 Subject: [PATCH] syntax highlight in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db6b20c..fb713a1 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ In the previous version, the test case for parsing a non-opml file (with `RSOPML ## Usage -``` +```objc RSXMLData *xmlData = [[RSXMLData alloc] initWithData:d urlString:@"https://www.example.org"]; // TODO: check xmlData.parserError RSFeedParser *parser = [RSFeedParser parserWithXMLData:xmlData]; @@ -44,7 +44,7 @@ RSParsedFeed *document = [parser parseSync:&parseError]; If you don't care about the parser used to decode the data, `[xmlData getParser]` will return the most suitable parser. You can use that parser right away to call `parseSync:`. Anyway, you can also parse the XML file asynchronously with `parseAsync:`. -``` +```objc [[xmlData getParser] parseAsync:^(RSParsedFeed *parsedDocument, NSError *error) { // process feed items ... }];