[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: PHP indentation
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2005-08-20 20:58:39
Message-ID: 200508202258.42628.dhdev () gmx ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Saturday 20 August 2005 21:46, Stefan Walkner wrote:
> hello,
hi!

> I would like to try to develop a module for some php addons for kate.
> So I searched for google and found a nice tutorial for creating Kate
> Plugins: http://kate.kde.org/doc/pluginhowto.php
php addons are fine, but just for info: you can not write a php indenter 
with a plugin (because this is not supported).

> So I created a new C++-KatePlugin with KDevelop (named it katephpaddons)
> - compiled the created files and then I moved:
>  -> the katephpaddons.desktop file to /usr/kde/3.4/share/services
k, right place. Your .desktop file must contain something like:
  Type=Service
  ServiceTypes=Kate/Plugin
  X-KDE-Library=libkatephpaddonsplugin
this is especially important, as it tells the name of the library!
  X-Kate-Version=2.4
  Name=PHP Tools

>  -> the libkatephpaddonsplugin.la and libkatephpaddonsplugin.so file
> to /usr/kde/3.4/lib (I'm not completely sure about this because howto
> says "kde module dir"...) -> but I tried to locate other kateplugins and
> found out they are there or in the subdir /usr/kde/3.4/lib/kde3/
not sure myself ;)

>  -> the plugin_katephpaddons.rc
> to /usr/kde/3.4/share/apps/kate/plugins/katephpaddons
ok
> unfortunately I am not able to see the compiled plugin in kate...
Does your .cpp file defines something like:

extern "C"
{
  void* init_libkatephpaddonsplugin()
  {
    KGlobal::locale()->insertCatalogue("katephpaddons");
    return new KatePluginFactory;
  }
}

Otherwise the "entry"-function won't be found.

> Did I make any mistake? Or what do I have to do to see my plugin and use
> it's functionality (I hopefully will add).
Try again ;)

You can also join #kate on irc.kde.org for live help.
Also look at http://www.kate-editor.org, there is also a howto about writing 
indenters.

Cheers,
-- 
Dominik

[Attachment #5 (application/pgp-signature)]

_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic