Sublime Fields Behavior
Jim Lambert
jiml at netrin.com
Sat Feb 26 19:28:44 EST 2022
I whipped up this behavior just for fun after seeing Ali use SublimeText to edit code.
https://livecodeshare.runrev.com/stack/1015/sublime-fields <https://livecodeshare.runrev.com/stack/1015/sublime-fields>
This behavior creates fields similar to the fields in the SublimeText Code Editor.
When 'sublimeField Behavior' is attached to a field a small image of the field's entire contents will be created and placed in a group to the right of the field.
As the field scrolls the smaller version will scroll in sync.
When the number of lines in the field change the small version is updated to match.
The size ratio of the small image to the field is determined by the kPercentShrink constant in the behavior script.
Public Domain - Jim Lambert 2022
More information about the use-livecode
mailing list