Re: [code] Highlighting questions

From: Peter Rolf <indiego.att.gmx.net>
Date: Wed, 6 May 2020 11:16:56 +0200

Hello Christian,

you can try my "highlights" module (the ets version is for "elastic
tabstops"). Might fit your needs.

https://spideroak.com/browse/share/indiego/public/textadept/highlights/

Cheers, Peter

Am 01.05.2020 um 04:37 schrieb Christian Gelinek:
> Hello,
>
> I was wondering whether anyone has tried to customise the behaviour of
> highlights. I am only aware of the Ctrl+Alt+Shift+H Word Highlight
> keyboard shortcut, which highlights the complete word under the caret
> and all occurrences in the document. Having migrated from Notepad++
> (NPP) to Textadept, I'd like to replicate some features I am missing in TA:
>
> 1. Can the "complete word" functionality be made optional? Sometimes
> I'd like to highlight just the selected parts of a word, e.g. to
> quickly see all words that have "count" in them such as
> "line_count", "encountered" and "counting_eggs". In NPP, the
> behaviour is dependent on the "Whole word" option of the Search dialog.
> 2. Can we have multiple simultaneous highlights with different colours
> for different (parts of) words?
> 3. Can other occurrences of the currently selected word be (slightly)
> highlighted? I found this NPP feature useful when browsing through
> code and just double-clicking on a word to instantly see other uses.
>
> I had a quick look at the API documentation but since I don't know much
> about Lua and even less about Scintilla, I didn't know how to start.
>
> Cheers,
> Christian
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 06 May 2020 - 05:16:56 EDT

This archive was generated by hypermail 2.2.0 : Wed 06 May 2020 - 06:44:03 EDT