[ZeroBrane Studio] Re: Change the tooltip formatting via interpreter? How to distribute interpreter & api?

  • From: Jan Drabner <jan@xxxxxxxxxxx>
  • To: zerobrane@xxxxxxxxxxxxx
  • Date: Mon, 27 Oct 2014 10:32:13 +0100


Almost done with the prototype.

Alright, trying out the prototype...

Works like a charm, too!
Now we just have to tackle the formatting...

Quote from the other post:
"You can apply whatever processing you want to those tooltips; for example, you can replace *foo* with foo that will be shown using "bold" style (with a bit of Scintilla magic) and so on."

When you talk about Scintilla magic, what exactly do you mean?
Is there a function in ZBS that would take any text and applies the formatting (like ** for bold, etc.)?

In your example, you use "refeditor:SetText(tip)". Is there some equivalent that automatically formats "tip", or how is that done in ZBS? Or is the only way to do the formatting in the new panel to write a custom function like MarkupStyle() in markup.lua?

Other related posts: