XPyLIB have package "XPyTools.codetpl" which allow use templates for writing source code. This package placed in directory (in source code) and have plug-in "CodeTemplates.plug-in.py". You can install this Boa plug-in in Boa constructor as described in "install.txt" file (XPyLIB library must be installed). In Boa editor after reload appears in menu "Edit" group with next items:
Code Template Template Alt+T - Show list of code snippets,
Code Tpl New Alt+Q - Show dialog here you can select templates,
Code Template Keywords Alt+K - Show list with keywords.
Also in XPyTools.codetpl API described how add and change templates and templates menu.
For install plug-in:
- Backup you "/plug-ins/CodeTemplates.plug-in.py" from main Boa constructor
folder (where Boa is installed).
- Copy from "XPyTools/codetpl/boa-plug-ins/CodeTemplates.plug-in.py" to
"/plug-ins/CodeTemplates.plug-in.py" in main Boa folder.
- When run boa-constructor you must use option "-Wx.x" where "x.x" version of
wxPython installed on you computer. For Boa by default load 2.6 if it
have, but for plug-in you must select 2.8.4.0 or high. For example you
may start boa with line: "boa-constructor -W2.8".
P.S.
This plug-in must replace original becouse if it was have other name or
copied in other place - then it do not work ???
I can't find reason of this bug ???
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you setup codetpl plug-in right (replace standart CodeTemplate plug-in in Boa program directory, and codetpl placed in XPyLIB.XPyTools directory) then you can use it in the editor when editing file - Select menu Edit and bottom you can see codetpl menu with access keys:
how to use XPyLIB-0.1.2 with boa-constructor ?
XPyLIB have package "XPyTools.codetpl" which allow use templates for writing source code. This package placed in directory (in source code) and have plug-in "CodeTemplates.plug-in.py". You can install this Boa plug-in in Boa constructor as described in "install.txt" file (XPyLIB library must be installed). In Boa editor after reload appears in menu "Edit" group with next items:
Code Template Template Alt+T - Show list of code snippets,
Code Tpl New Alt+Q - Show dialog here you can select templates,
Code Template Keywords Alt+K - Show list with keywords.
Also in XPyTools.codetpl API described how add and change templates and templates menu.
For install plug-in:
- Backup you "/plug-ins/CodeTemplates.plug-in.py" from main Boa constructor
folder (where Boa is installed).
- Copy from "XPyTools/codetpl/boa-plug-ins/CodeTemplates.plug-in.py" to
"/plug-ins/CodeTemplates.plug-in.py" in main Boa folder.
- When run boa-constructor you must use option "-Wx.x" where "x.x" version of
wxPython installed on you computer. For Boa by default load 2.6 if it
have, but for plug-in you must select 2.8.4.0 or high. For example you
may start boa with line: "boa-constructor -W2.8".
P.S.
This plug-in must replace original becouse if it was have other name or
copied in other place - then it do not work ???
I can't find reason of this bug ???
Also you must enable this plug-in in Boa preferences (after changes you need reload Boa).
but folder boa_pluggins have not at XPyLIB-0.1.2
Oh! This is realy.
I miss much files from "codetpl" package.
I add "codetpl.zip" file to folder in download page (http://sourceforge.net/projects/xpylib/files/xpylib/xpylib-0.1.2/codetpl.zip/download). You can dowload missed package and replace old "codetpl" by new in folder "XPyTools/".
thanks you ,alexmv77
how i can use this plug-in of boa-constructor ?
i can't see it
If you setup codetpl plug-in right (replace standart CodeTemplate plug-in in Boa program directory, and codetpl placed in XPyLIB.XPyTools directory) then you can use it in the editor when editing file - Select menu Edit and bottom you can see codetpl menu with access keys:
- Code Template Template Alt+T
- Code Tpl New Alt+Q
- Code Template Keyword Alt+K
You can open codetpl throw menu or by press Alt+Q, select need action (New tab for example):
Keywords Alt+K show only list:
thanks,alexmv77
Now, I can use it