#pragma once #import "ENRMUIKit.h" #import "StyleConfig.h" NS_ASSUME_NONNULL_BEGIN extern NSString *const CodeAttributeName; @interface CodeBackground : NSObject - (instancetype)initWithConfig:(StyleConfig *)config; - (void)drawBackgroundsForGlyphRange:(NSRange)glyphsToShow layoutManager:(NSLayoutManager *)layoutManager textContainer:(NSTextContainer *)textContainer atPoint:(CGPoint)origin; @end NS_ASSUME_NONNULL_END