forked from fortinmike/XcodeBoost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMFSourceTextViewManipulator.h
More file actions
40 lines (29 loc) · 964 Bytes
/
MFSourceTextViewManipulator.h
File metadata and controls
40 lines (29 loc) · 964 Bytes
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
//
// MFSourceTextViewManipulator.h
// XcodeBoost
//
// Created by Michaël Fortin on 2014-03-20.
// Copyright (c) 2014 Michaël Fortin. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class DVTSourceTextView;
@interface MFSourceTextViewManipulator : NSObject
- (id)initWithSourceTextView:(DVTSourceTextView *)textView;
#pragma mark Line Manipulation
- (void)cutLines;
- (void)copyLines;
- (void)pasteLinesWithReindent:(BOOL)reindent;
- (void)duplicateLines;
- (void)deleteLines;
#pragma mark Working With Subroutines (Methods and Functions)
- (void)selectSubroutines;
- (void)selectSubroutineSignatures;
- (void)copySubroutineDeclarations;
- (void)duplicateSubroutines;
#pragma mark Highlighting
- (void)highlightSelectedStrings;
- (void)highlightSelectedSymbols;
- (void)highlightRegexMatchesWithPattern:(NSString *)pattern options:(NSRegularExpressionOptions)options;
- (void)removeMostRecentlyAddedHighlight;
- (void)removeAllHighlighting;
@end