0

Apparently it's XML-like. Example templates can be found in the gnome Anjuta shares on an Ubuntu install at /usr/share/anjuta/project/

I think I'll go back to Eclipse and gedit if it doesn't look like Anjuta has documented a decent auto-completion, project build, and syntax-highlighting template format. Others with the same question went fishing on Ubuntu forums and had no luck.

The answer might also help people trying to build automake scripts for svn repos at [https://stackoverflow.com/questions/5926366/using-anjuta-with-svn-how-to-create-the-project]

4

1 回答 1

1

有点迟了,但我找到了官方文档,并记得看过你的帖子。从文档:

模板文件看起来像 xml 文档,通常具有扩展名 .wiz。默认情况下,所有模板和其他相关文件都安装在$anjuta_install_dir/share/anjuta/templates. 但是项目向导在 anjuta/templates定义的所有用户数据目录的子目录中查找模板XDG Base Directory Specification。用户可以覆盖 Anjuta 项目模板,例如,在 ~/.local/share/anjuta/templates.

模板文件分为四个部分:标题块、一个或多个页面块、内容块和可选操作块。该文件被读取多次,每个块一次,但在读取之前,整个文件会通过转换传递,并且只有生成的文件必须是有效的 xml 文件。转换过程使用 autogen。

于 2015-06-14T15:34:00.710 回答