This repository was archived by the owner on Sep 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMarkdownDelegate.h
More file actions
56 lines (40 loc) · 1.41 KB
/
Copy pathMarkdownDelegate.h
File metadata and controls
56 lines (40 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// MarkdownDelegate.h
// MarkEdit
//
// Created by bodhi on 1/04/10.
// Copyright 2010 Apple Inc. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class OGRegularExpression;
@interface MarkdownDelegate : NSObject <NSTextStorageDelegate> {
NSTextView *text;
NSDictionary *blockquoteAttributes, *metaAttributes,
*codeAttributes, *strongAttributes, *emAttributes,
*h1Attributes, *h2Attributes, *defaultAttributes,
*hrAttributes;
NSMutableDictionary *references;
NSString *MarkdownCodeSection;
OGRegularExpression *imageNoAttachment;
OGRegularExpression *attachedImage;
OGRegularExpression *attachmentNoImage;
OGRegularExpression *inlinePattern, *linkRegex, *image, *setex, *blank, *indented, *bareLink, *hrRegexp;
NSArray *mainOrder, *lineBlocks;
NSDictionary *blocks;
bool newReferences;
int baseFontSize;
NSString *attachmentChar;
NSURL *baseURL;
NSMutableParagraphStyle *defaultStyle;
}
@property (assign) IBOutlet NSTextView *text;
@property (retain) NSString *attachmentChar;
@property (retain) NSURL *baseURL;
- (void)markupString:(NSMutableAttributedString *)string;
-(void)makeTextLarger:(NSMutableAttributedString *)string;
-(void)makeTextSmaller:(NSMutableAttributedString *)string;
-(void)resetTextSize:(NSMutableAttributedString *)string;
-(void)setWidth:(CGFloat)width;
-(NSRange)visibleRange;
-(void)recenterOn:(NSRange)range;
@end