Find in styles potential feature

10 views
Skip to first unread message

Neil Hodgson

unread,
Jul 16, 2021, 11:28:12 PMJul 16
to scite-i...@googlegroups.com
SciTE currently has a way to search just in one style (like comment or identifier) but it only works on Windows when using dialogs instead of strips and its hidden behind the ‘advanced’ property:

find.replace.advanced=1
find.use.strip=0
replace.use.strip=0

The feature didn’t work that well as the user has to know the numeric values for the styles.

An alternative could use style tags (currently only provided by some lexers including C, Python, and HTML), for something like this:
https://www.scintilla.org/FindTags.png

There are still problems with this. It uses horizontal space for a feature that not everyone will want. Maybe add a property and also make the strip handle limited space better by omitting labels or automatically adding another line of controls.

It matches any style that contains the tag and the user may want a more complex boolean expression such as “comment or preprocessor but not documentation comment”.

Implementation for Windows available from
https://www.scintilla.org/FindInTags.patch

Neil
Reply all
Reply to author
Forward
0 new messages