// // PKSyntaxHighlighter.h // HTTPClient // // Created by Todd Ditchendorf on 12/26/08. // Copyright 2009 Todd Ditchendorf. All rights reserved. // #import @class OKSyntaxHighlighter; @protocol OKSyntaxHighlighterAttributesProvider - (NSMutableDictionary *)syntaxHighlighter:(OKSyntaxHighlighter *)highlighter attributesForGrammarNamed:(NSString *)grammarName; @end @interface OKSyntaxHighlighter : NSObject + (instancetype)syntaxHighlighter; - (NSMutableAttributedString *)highlightedStringForString:(NSString *)s ofGrammar:(NSString *)grammarName; @property (nonatomic, assign) BOOL cacheParsers; // default is NO @property (nonatomic, assign) id attributesProvider; // weak ref @property (nonatomic, assign) CGFloat overrideFontSize; @property (nonatomic, copy) NSString *overrideFontFamily; @end