mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-31 08:16:07 +00:00
28 lines
746 B
Objective-C
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
|
|
|