Files
Swiftgram/third-party/libprisma/include/libprisma/Syntaxer.h
2023-10-31 16:47:10 +04:00

28 lines
746 B
Objective-C

//
// SyntaxHighligher.h
// CodeSyntax
//
// Created by Mike Renoir on 26.10.2023.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface SyntaxterTheme : NSObject
@property (nonatomic, assign) BOOL dark;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, strong) UIFont *textFont;
@property (nonatomic, strong) UIFont *italicFont;
@property (nonatomic, strong) UIFont *mediumFont;
-(id)initWithDark:(BOOL)dark textColor:(UIColor *)textColor textFont:(UIFont *)textFont italicFont:(UIFont *)italicFont mediumFont:(UIFont *) mediumFont;
@end
@interface Syntaxer : NSObject
-(id)init;
-(NSAttributedString *)syntax:(NSString *)code language: (NSString *)language theme:(SyntaxterTheme *) theme;
@end