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


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to