CodeMirrorEditor.setBookmark method
CodeMirrorEditor › setBookmark
Unofficial
Set a bookmark at the given position.Signature:
setBookmark(pos: EditorPosition, options?: SetBookmarkOptions | undefined): BookmarkParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | EditorPosition | The position to set the bookmark at. |
| options? | SetBookmarkOptions | undefined | The bookmark options. |
Returns: Bookmark — The created bookmark.