Method | Description | |
---|---|---|
Attach ( IEmmetEditor editor ) : bool |
Attaches this instance to the given code editor.
|
|
CreateSelection ( |
JavaScript callback. Creates selection from
|
|
Detach ( ) : void |
Detaches this instance from the editor window, cleans up any internal caches.
|
|
GetCarretPos ( |
JavaScript callback. Returns current caret position.
|
|
GetContent ( |
JavaScript callbacks. Returns the content of the current editor window.
|
|
GetCurrentLine ( |
JavaScript callback. Returns the content of the current line.
|
|
GetCurrentLineRange ( |
JavaScript callback. Returns current line's start and end indexes as object with
|
|
GetFilePath ( |
JavaScript callback. Returns current editor's file path.
|
|
GetProfileName ( |
JavaScript callback. Returns current output profile name (see profile module). In most cases, this method should return
|
|
GetSelection ( |
JavaScript callback. Returns current selection.
|
|
GetSelectionRange ( |
JavaScript callback. Returns character indexes of selected text: object with
|
|
GetSyntax ( |
JavaScript callback. Returns current editor's syntax mode.
|
|
Prompt ( |
JavaScript callback. Asks user to enter something.
|
|
ReplaceContent ( |
JavaScript callback. Replace editor's content or it's part (from
|
|
SetCarretPos ( |
JavaScript callback. Set new caret position.
|
public Attach ( IEmmetEditor editor ) : bool | ||
editor | IEmmetEditor | Editor to attach to. |
return | bool |
public CreateSelection ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetCarretPos ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetContent ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetCurrentLine ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetCurrentLineRange ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetFilePath ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetProfileName ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetSelection ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetSelectionRange ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public GetSyntax ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public Prompt ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public ReplaceContent ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |
public SetCarretPos ( |
||
engine | ||
isConstructCall | bool | |
self | InternalHandle | |
return | InternalHandle |