Skif-off left a comment (geany/geany-plugins#1580)
Try
```lua
-- Bookmarks-for-marked-text.lua (cross-platform)
-- 2026.06.22
--[[
Set bookmark for each line with marked text (GEANY_INDICATOR_SEARCH).
]]
-- SCI_GETLENGTH
local iL = geany.scintilla(2006, 0, 0)
local n1, n2, n3
n1 = 0
while true do
-- SCI_INDICATORVALUEAT
if geany.scintilla(2507, 8, n1) > 0 then
-- SCI_LINEFROMPOSITION
n3 = geany.scintilla(2166, n1, 0)
-- SCI_MARKERADD
geany.scintilla(2043, n3, 1)
-- SCI_INDICATOREND
n2 = geany.scintilla(2509, 8, n1)
else
-- SCI_INDICATOREND
n2 = geany.scintilla(2509, 8, n1)
end
if n2 <= n1 then break end
n1 = n2
if n1 > iL then break end
end
```
from [this](https://github.com/geany/geany/discussions/4602) discussion.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1580#issuecomment-4826246110
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/issues/1580/[email protected]>