On Thursday 16 February 2012 19:24:11 Alex Turbov wrote: > On Thu, Feb 16, 2012 at 4:00 PM, Dominik Haumann <dhaum...@kde.org> wrote: > > So basically it's > > 1. get the MovingInterface, > > 2. create a newMovingRange, > > 3. set the attributes. > > > > All this is thoroughly documented in the API documentation (MovingRange, > > MovingInterface): > > > > http://api.kde.org/4.x-api/kdelibs-apidocs/interfaces/ktexteditor/html/gr > > oup__kte__group__moving__classes.html > Dominik, is there any way to get configured (standard) attributes? for > example how to get Attribute::Ptr instance (w/ fg/bg) for 'Errors'?
HighlightInterface::defaultStyle(dsError) http://api.kde.org/4.x-api/kde-baseapps- apidocs/kate/ktexteditor/html/classKTextEditor_1_1HighlightInterface.html#a6698e160768ca97752d7100ef8b77e15 > and another one case: how to get attributes for a particular range > (according current highligthing) ? Again HighlightInterface, using lineAttributes this time. Then check the .start/.length properties of the returned AttributeBlock if you want some subrange of that line. bye -- Milian Wolff m...@milianw.de http://milianw.de
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<