ACEView
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
This class provides the main public interface for the ACEView.
-
The ACEView delegate.
See also
ACEViewDelegateDeclaration
Swift
public var delegate: ACEViewDelegate?
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Sets the cursor to the editor view.
Declaration
Swift
public func focus()
-
Retrieve and Set the content of the underlying ACE Editor.
Uses editor.getValue() & editor.setValue().
Returns
The ACE Editor content.Declaration
Swift
public var string: String
Return Value
The ACE Editor content.
-
Declaration
Swift
public var mode: ACEMode
-
Declaration
Swift
public var theme: ACETheme
-
Turn wrapping behaviour on or off.
Specifies whether to use wrapping behaviors or not, i.e. automatically wrapping the selection with characters such as brackets when such a character is typed in.
Uses editor.setWrapBehavioursEnabled().
See also
useSoftWrapSee also
wrapLimitRangeDeclaration
Swift
public var wrappingBehavioursEnabled: Bool
-
Sets whether or not line wrapping is enabled.
Define the wrap limit with wrapLimitRange.
Uses editor.getSession().setUseWrapMode().
See also
wrappingBehavioursEnabledSee also
wrapLimitRangeDeclaration
Swift
public var useSoftWrap: Bool
-
Sets the boundaries of wrap.
Uses editor.getSession().setWrapLimitRange().
See also
wrappingBehavioursEnabledSee also
useSoftWrapDeclaration
Swift
public var wrapLimitRange: NSRange
-
Show or hide invisible characters.
Declaration
Swift
public var showInvisibles: Bool
-
Set read only mode. Prevents content from being changed interactively.
Uses editor.setReadOnly().
Declaration
Swift
public var readOnly: Bool
-
Show or hide folding widgets.
Declaration
Swift
public var showFoldWidgets: Bool
-
Enable fading of folding widgets.
Declaration
Swift
public var fadeFoldWidgets: Bool
-
Highlight the active line.
Declaration
Swift
public var highlightActiveLine: Bool
-
Highlight the gutter line.
Uses editor.setHighlightGutterLine().
Warning
The ACE Editor documentation for this behaviour is incomplete.Declaration
Swift
public var highlightGutterLine: Bool
-
Highlight the selected word.
Declaration
Swift
public var highlightSelectedWord: Bool
-
Display indent guides.
Declaration
Swift
public var displayIndentGuides: Bool
-
Enable animated scrolling.
Uses editor.setAnimatedScroll().
Warning
The ACE Editor documentation for this behaviour is incomplete.Declaration
Swift
public var animatedScroll: Bool
-
Change the mouse scroll speed.
Uses editor.setScrollSpeed().
Declaration
Swift
public var scrollSpeed: Int
-
Declaration
Swift
public var keyboardHandler: ACEKeyboardHandler
-
Enable basic autocomplete.
Uses [editor.setOptions({ enableBasicAutocompletion: BOOL })]
Declaration
Swift
public var basicAutoCompletion: Bool
-
Enable live autocompletion.
Uses [editor.setOptions({ enableLiveAutocompletion: BOOL })]
Declaration
Swift
public var liveAutocompletion: Bool
-
Enable snippets.
Uses [editor.setOptions({ enableSnippets: BOOL })]
Declaration
Swift
public var snippets: Bool
-
Enable emmet.
Uses [editor.setOptions({ emmet: BOOL })]
Declaration
Swift
public var emmet: Bool
-
Sets the column defining where the print margin should be.
Declaration
Swift
public var printMarginColumn: Int
-
Shows the print margin
Declaration
Swift
public var showPrintMargin: Bool
-
Sets the font size.
Uses editor.setFontSize().
Declaration
Swift
public var fontSize: Int
-
Sets the font family.
Uses [editor.setOptions({ fontFamily: NSString })]
Declaration
Swift
public var fontFamily: String
-
Moves the cursor to the specified line number, and also into the indiciated column.
Uses [editor.goToLine()].
- Parameters:
- line: The line number to go to
- column: The column number to go to
- animated: If
true
animates scolling
Declaration
Swift
public func goToLine(line: Int, column:Int, animated: Bool)
-
Enable line numbers.
Uses [editor.setOption(‘showLineNumbers’, BOOL )]
Declaration
Swift
public var showLineNumbers: Bool
-
Enable gutter.
Uses [editor.setOption(‘showGutter’, BOOL )]
Declaration
Swift
public var showGutter: Bool
-
Returns the number of rows in the document.
Uses [editor.getSession().getLength()]
Declaration
Swift
public var length: Int
-
Returns a verbatim copy of the given line as it is in the document.
Uses [editor.getSession().getLine(Number row)]
Parameter
line The line to getReturns
The requested lineDeclaration
Swift
public func getLine(line: Int) -> String
Return Value
The requested line
-
The current new line mode.
Declaration
Swift
public var newLineMode: String
-
Pass true to enable the use of soft tabs.
Soft tabs means you’re using spaces instead of the tab character (’\t’).
Declaration
Swift
public var useSoftTabs: Bool
-
Set the number of spaces that define a soft tab.
For example, passing in 4 transforms the soft tabs to be equivalent to four spaces. This function also emits the changeTabSize event.
Declaration
Swift
public var tabSize: Int
-
Searches for all occurances options.needle.
If found, this method returns an array of Ranges where the text first occurs. If options.backwards is true, the search goes backwards in the session.
Uses Search.findAll(EditSession session).
Parameter
options A dictionary of search options.Declaration
Swift
public func findAll(options: NSDictionary) -> [ACESearchItem]?
-
Replaces all occurances of options.needle with the value in replacement.
Uses Editor.replaceAll(String replacement, Object options).
Parameter
Parameter replacement: The replacement valueParameter
Parameter options: A dictionary of search optionsDeclaration
Swift
public func replaceAll(replacement: String, options: NSDictionary)
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
-
Undocumented
Declaration
Swift
@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports