[Kommander-devel] KTextEditor in Kommander

Andras Mantia amantia at kde.org
Tue Sep 5 00:56:07 EDT 2006


On Sunday 03 September 2006 13:35, Eric Laffoon wrote:
> So it should be easy not only give a different color for functions,
> but even for types of functions.

Ok, it's done now. The functions have different color based on which 
group they are (DCOP, Kommander, File, Input, etc.). You can customize 
the colors at the end of kommander.xml:
      <itemData name="KmdrMethod" defStyleNum="dsKeyword" italic="1" 
color="#008000" />
      <itemData name="DCOPMethod" defStyleNum="dsKeyword" italic="1" 
color="#21E52B" />
      <itemData name="KmdrString" defStyleNum="dsKeyword" italic="1" 
color="#D0D000" />
      <itemData name="KmdrArray" defStyleNum="dsKeyword" italic="1" 
color="#C0C0FF" />
      <itemData name="KmdrFile" defStyleNum="dsKeyword" italic="1" 
color="#FF0000" />
      <itemData name="KmdrInput" defStyleNum="dsKeyword" italic="1" 
color="#FF8000" />
      <itemData name="KmdrMessage" defStyleNum="dsKeyword" italic="1" 
color="#800000" />

KmdrMethod = used for @Command where there is no "." after it or when 
the method name after "." is unknown, like @Foo.bar().
DCOPMethod = used for DCOP commands, like the "setEnabled" part of 
@Form1.setEnabled()
KmdrString = used for @String methods
KmdrArray = for @Array methods
KmdrFile = for @File methods
KmdrMessage = for @Message methods

The names of the methods are defined at the beginning of the file, so if 
you introduce new ones, they should be added there, otherwise 
KmdrMethod color and style will be used.

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://momo.creolmail.org/pipermail/kommander-devel/attachments/20060904/3d0eed8a/attachment.pgp


More information about the Kommander-devel mailing list