_M.textadept.bookmarks - Textadept API

# Textadept

- Home |
- Download |
- Lua API |
- Source |
- Language Modules |
- Stats |
- Wiki |
- Mailing List

# _M.textadept.bookmarks

Bookmarks for Textadept.

## Fields

### `MARK_BOOKMARK_COLOR` (number)

The color, in “0xBBGGRR” format, used for a bookmarked line.

## Functions

### `clear`()

Clears all bookmarks in the current buffer.

### `goto_bookmark`()

Prompts the user to select a bookmarked line to go to.

### `goto_next`()

Goes to the next bookmarked line in the current buffer.

### `goto_prev`()

Goes to the previous bookmarked line in the current buffer.

### `toggle`(on)

Toggles the bookmark on the current line unless on is given. If on is `true` or `false`, adds or removes the bookmark, respectively.

Parameters:

- `on`: Optional flag indicating whether to add or remove a bookmark on the current line. The default value is `nil`, toggling a bookmark.