[TxMt] Re: another wish for the global Find dialog

Allan Odgaard mailinglist at textmate.org
Sun Sep 25 15:35:33 UTC 2016

On 22 Sep 2016, at 2:32, David Green wrote:

> If it’s at all possible, it would also be quite handy for the Find 
> dialog to use a different colour for special characters like 
> backslashes, or * ? (), etc. with regexes.

If you hold option and Check for Updates then beta 12.15 will syntax 
highlight both the search and replace strings (when regular expression 
is enabled).

For the search string it uses the Regular Expressions (Oniguruma) 
grammar in the TextMate bundle and for the replace string, the Format 
String grammar is used (also from the TextMate bundle).

The coloring comes from the Mac Classic theme but this can be changed 
via the `UIThemeUUID` defaults key.

The “show invisibles” feature is unfortunately a bit more involved, 
since we are only allowed to add “attributes” to the edited string 
(during editing), and there doesn’t seem to be any attribute to make 
invisible characters visible.

We can however do this when the field is inactive, since here we are 
allowed to change the string.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160925/670f3641/attachment.html>

More information about the textmate mailing list