Hi John, > "If you choose to use the container to do the styling you can use the > SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the > container is sent a SCN_STYLENEEDED notification each time text needs > styling for display."
You are absolutely right. In fact, I was reading this fragment and somehow missed that STYLENEEDED is going to be *only* called when the lexer is set to SCLEX_CONTAINER. > I think the idea is that you will have to style everything all the > time. Though, I don't remember having tried it myself. Ok, related question then. Is it possible to use SCLEX_CONTAINER, but still make a call that will apply styling using some lexer (for example, Lua) and I'll do the rest of the styling as needed? Paul. On Thu, Nov 15, 2012 at 1:12 PM, John Labenski <jlaben...@gmail.com> wrote: > On Thu, Nov 15, 2012 at 3:56 PM, Paul K <paulclin...@yahoo.com> wrote: >> Hi John, >> >> I've been doing custom styling and realized that the work that I've >> done is mostly in UPDATEUI handlers, whereas it should probably be in >> STYLENEEDED handlers. I looked at your editor and see that you also >> only use UPDATEUI, but not STYLENEEDED. > > The Scintilla docs are pretty complete and map reasonably well to the > wxWidgets wrapper. > http://www.scintilla.org/ScintillaDoc.html > > "If you choose to use the container to do the styling you can use the > SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the > container is sent a SCN_STYLENEEDED notification each time text needs > styling for display." > > I think the idea is that you will have to style everything all the > time. Though, I don't remember having tried it myself. > > Regards, > John > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users