Expand/Shrink Selection

This is command plugin for SynWrite editor. It gives two commands: "expand selection", "shrink selection". First one makes selection wider, another makes selection smaller. This is lexer-independant, but works better on Python lexer.

Selection is extented in this order:
caret -- word -- phrase inside syntax quotes -- phrase with syntax quotes -- phrase inside brackets -- phrase with brackets -- ...

Plugin commands are in SynWrite menu "Tools - Plugins".

Example

("|" means initial caret position)

v = fun('smt an|d oth', par)
v = fun('smt and oth', par)
v = fun('smt and oth', par)
v = fun('smt and oth', par)
v = fun('smt and oth', par)
v = fun('smt and oth', par)
v = fun('smt and oth', par)

How to install

Just open zip-file with plugin in SynWrite, and confirm installation.
You may change plugin hotkeys in "SynPlugins.ini", using SynWrite command "Options - Advanced - Edit file SynPlugins.ini".

About

Author: kvichans (SynWrite forum)