Just updated from old (2019) version, howto question about API changes #567
BURN-MICROSUCK
started this conversation in
General
Replies: 1 comment
-
Thanks so much for your support! It's quite possible that the features
you're asking about have been baked into the editor as options in the
meantime.
There are a couple of options for word highlighting mentioned in the
manual: https://orbitalquark.github.io/textadept/manual.html#word-highlight
For find results highlighting, the manual suggests the
`ui.find.highlight_all_matches` option:
https://orbitalquark.github.io/textadept/manual.html#find--replace-pane
Hopefully that answers your questions and fills in the blanks.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Been using this editor nearly every day for about 5 years now, finally decided to update to a more recent version. I'm in the process of adapting my old lua functions to work with the new version.
I had a nice "word highlight" function in my init.lua that i (vaguely) remember writing, this function is a handler for events.UPDATE_UI and uses the (seemingly now non-existent) API call textadept.editing.highlight_word (str) which simply causes all instances of str in the current window (not necessarily exactly 1 word with no punctuation) to be highlighted. What would be the equivalent of this in the current version? Does it still exist?
Another similar thing i've been trying to do, but failing, is each time the search text in the search/replace box is changed, highlight all instances of it in the same way (without changing current select range or cursor position) then disable highlighting / unhighlight when either of these two changes.
Beta Was this translation helpful? Give feedback.
All reactions