I'm trying to write a plugin that will show text that is not user-interactable. In other words, the text is part of the background--visible but does not affect the text on screen. Is this possible?
If I understand what you're asking (which I'm not sure I do), then no, this is not possible using the ST3 public beta. You can set a view to be read-only using the set_read_only()
method of sublime.View
, but that only disables editing of the view's contents - users can still select and copy any text present.
Alternatively, if you're using the ST3 dev builds and Build 3072 or later, you can use the new tooltip API to create a popup. It is my understanding (I haven't played around with it on all platforms yet) that text in a tooltip cannot be selected, at least on Windows.