On Fri, Oct 24, 2008 at 2:59 AM, programmer.py <[EMAIL PROTECTED]> wrote:
>
> Whenever I crank up Ulipad, I know it installs an InputAssistant that
> uses an ACP file.
>
> The ACP file is in $ULIPAD/conf/$language.acp.  So, if I have opened a
> python file, ulipad automagically installs the $ULIPAD/conf/python.acp
> file.  python.acp has these "sub" acp's:
>
> [include]
> 1=django_py.acp
> 2=epydoc.acp
>
> This means I have access to the django and epydoc ACP's while editing
> python files.  That's great.
>
> What I need is to have mako templates have automatic access to these
> "sub" acp's:
>
> [include]
> 1=jquery.acp
> 2=js.acp
>
> That is, I want to have calltip hints for jquery and javascript while
> editing mako templates.  I find that I need this applied to other
> files also.  For instance, i'd like to have jquery calltips occur when
> editing *any* js file.
>
> So, is there an easy way to have Ulipad *AUTOMATICALLY* use additional
> acp's when a specific one is loaded *WITHOUT* modifying the original
> ACP?  Or asked another way -- When I open mako templates, how can I
> make Ulipad automatically use js and jquery ACP files?
>
> I'm pretty sure I could hack something into Ulipad, but I wanted to
> make sure this functionality was not already available.  Yes, I am
> aware that I can select:  Document -> Apply Autocompleted Files, but
> that is a manual process.
>
> Thanks!
> jw

Each folder can has a _project file, you can modify it like this:

[default]

[acp]
.txt = rst.acp,python.acp,

[highlight]
.txt = rst

It's just ulipad simple project configuration file, and you can leave
default session empty, in acp section, you can set each file suffix
with a list of acp, just like above, and for highlight session, you
can set each file suffix to special syntax highlight as you wish, but
you should know you can know merge two or more syntax highlights
together like acp. Then try it(maybe you should restart ulipad).

-- 
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
UliWeb <<simple web framework>>: http://uliwebproject.appspot.com
My Blog: (new)http://http://hi.baidu.com/limodou
(old)http://www.donews.net/limodou

Reply via email to