Hi,

First of all, thanks for the great work in Ulipad!

I'm trying to make a phpdoc pluging coping the wxpythondoc plugin.
With Search&Replace all python references to php:

----------------------------------------------------------------------------------------------------------------
__doc__ = 'Plugin: Show php doc'

from modules import Mixin
import wx
import os
import os.path
import sys

menulist = [ ('IDM_HELP', #parent menu id
        [
                (106, 'IDM_HELP_PHPDOC', tr('PHP Document'),
wx.ITEM_NORMAL, 'OnHelpPHPDoc', tr('Show PHP document.')),
        ]),
]
Mixin.setMixin('mainframe', 'menulist', menulist)

def OnHelpPHPDoc(win, event):
    os.startfile(os.path.join('/home/mapache/dev/ulipad/trunk/plugins/
phpdoc', 'wx.chm','php_manual_en.chm'))
Mixin.setMixin('mainframe', 'OnHelpPHPDoc', OnHelpPHPDoc)
----------------------------------------------------------------------------------------------------------------

The chm file is take from here http://es.php.net/docs-echm.php

The plugins loads without problems, but I don't know how to apply it
to php files...

Any clues?

Thanks in advance, and sorry for my poor english
Mapache

Reply via email to