diff options
Diffstat (limited to 'kate/filetemplates/templates')
-rw-r--r-- | kate/filetemplates/templates/Makefile.am | 5 | ||||
-rw-r--r-- | kate/filetemplates/templates/cppgpl.cpp.katetemplate | 24 | ||||
-rw-r--r-- | kate/filetemplates/templates/cppgpl.hh.katetemplate | 34 | ||||
-rw-r--r-- | kate/filetemplates/templates/cpplgpl.cpp.katetemplate | 23 | ||||
-rw-r--r-- | kate/filetemplates/templates/cpplgpl.hh.katetemplate | 32 | ||||
-rw-r--r-- | kate/filetemplates/templates/docbookchapter.xml.katetemplate | 75 | ||||
-rw-r--r-- | kate/filetemplates/templates/html.katetemplate | 18 | ||||
-rw-r--r-- | kate/filetemplates/templates/language.xml.katetemplate | 60 |
8 files changed, 271 insertions, 0 deletions
diff --git a/kate/filetemplates/templates/Makefile.am b/kate/filetemplates/templates/Makefile.am new file mode 100644 index 0000000..54f91aa --- /dev/null +++ b/kate/filetemplates/templates/Makefile.am @@ -0,0 +1,5 @@ +templatesdir=$(kde_datadir)/kate/plugins/katefiletemplates/templates +templates_DATA=html.katetemplate \ + cpplgpl.cpp.katetemplate cpplgpl.hh.katetemplate \ + cppgpl.cpp.katetemplate cppgpl.hh.katetemplate \ + docbookchapter.xml.katetemplate language.xml.katetemplate
\ No newline at end of file diff --git a/kate/filetemplates/templates/cppgpl.cpp.katetemplate b/kate/filetemplates/templates/cppgpl.cpp.katetemplate new file mode 100644 index 0000000..a479615 --- /dev/null +++ b/kate/filetemplates/templates/cppgpl.cpp.katetemplate @@ -0,0 +1,24 @@ +katetemplate: template=C++ Source File (GPL) group=Source Code documentname=New%N.cpp highlight=C++ +katetemplate: description=A very simple GPL C++ source file +katetemplate: author= Anders Lund <[email protected]> +/* + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + + --- + Copyright (C) %{year}, %{fullname} <%{email}> + */ + +${cursor}
\ No newline at end of file diff --git a/kate/filetemplates/templates/cppgpl.hh.katetemplate b/kate/filetemplates/templates/cppgpl.hh.katetemplate new file mode 100644 index 0000000..7e0bd02 --- /dev/null +++ b/kate/filetemplates/templates/cppgpl.hh.katetemplate @@ -0,0 +1,34 @@ +katetemplate: template=C++ Header (GPL) group=Source Code documentname=New%N.hh highlight=C++ +katetemplate: description=A very simple GPL C++ header file +katetemplate: author= Anders Lund <[email protected]> +/* + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + + --- + Copyright (C) %{year}, %{fullname} <%{email}> + */ + +#ifndef _${ClassName}_h_ +#define _${ClassName}_h_ + +class ${ClassName} : public ${Super} { + public: + ${ClassName}( ${cursor} ); + ~${ClassName}(); + +} + +#endif // _${ClassName}_h_ diff --git a/kate/filetemplates/templates/cpplgpl.cpp.katetemplate b/kate/filetemplates/templates/cpplgpl.cpp.katetemplate new file mode 100644 index 0000000..2742ee9 --- /dev/null +++ b/kate/filetemplates/templates/cpplgpl.cpp.katetemplate @@ -0,0 +1,23 @@ +katetemplate: template=C++ Source File (LGPL) group=Source Code documentname=New%N.cpp highlight=C++ +katetemplate: description=A very simple LGPL C++ source file +katetemplate: author= Anders Lund <[email protected]> +/* + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + + --- + Copyright (C) %{year}, %{realname} <%{email}> +*/ + +${cursor} diff --git a/kate/filetemplates/templates/cpplgpl.hh.katetemplate b/kate/filetemplates/templates/cpplgpl.hh.katetemplate new file mode 100644 index 0000000..301f34b --- /dev/null +++ b/kate/filetemplates/templates/cpplgpl.hh.katetemplate @@ -0,0 +1,32 @@ +katetemplate: template=C++ Header (LGPL) group=Source Code documentname=New%N.hh highlight=C++ +katetemplate: description=A very simple LGPL C++ header file +katetemplate: author= Anders Lund <[email protected]> +/* + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + + --- + Copyright (C) %{year}, %{fullname} <%{email}> +*/ +#ifndef _${ClassName}_h_ +#define _${ClassName}_h_ + +class ${ClassName} : public ${Super} { + public: + ${ClassName}( ${cursor} ); + ~${ClassName}(); + +} + +#endif // _${ClassName}_h_ diff --git a/kate/filetemplates/templates/docbookchapter.xml.katetemplate b/kate/filetemplates/templates/docbookchapter.xml.katetemplate new file mode 100644 index 0000000..581682c --- /dev/null +++ b/kate/filetemplates/templates/docbookchapter.xml.katetemplate @@ -0,0 +1,75 @@ +katetemplate: Template=Kate Plugin Docbook Chapter DocumentName=chapter%N.docbook +katetemplate: Group=Documentation highlight=XML +katetemplate: Description=This creates a suitable beginning of a docbook chapter for a Kate plugin. +katetemplate: Author= Anders Lund <[email protected]> +<chapter id="${cursor}"> +<chapterinfo> + +<title>${title}</title> + +<authorgroup> +<author> +<firstname>%{firstname}</firstname> +<surname>%{lastname}</surname> +<affiliation> +<address><email>%{email}</email></address> +</affiliation> +</author> +</authorgroup> +<date>%{date}</date> +<releaseinfo></releaseinfo> + +<abstract> +<para></para> +</abstract> + +<keywordset> +<keyword>KDE</keyword> +<keyword>kate</keyword> +<keyword></keyword> +<keyword></keyword> +</keywordset> +</chapterinfo> + +<title>Introduction</title> + +<para></para> + +<sect1 id="PROJECT-menu"> +<title>Menu Structure</title> + +<variablelist> +<varlistentry> +<term> +<menuchoice> +<guimenu>Tools</guimenu> +<guimenuitem>Validate XML</guimenuitem> +</menuchoice> +</term> +<listitem><para></para></listitem> +</varlistentry> +</variablelist> + +</sect1> + +<sect1 id="PROJECT-thanks-and-acknowledgements"> +<title>Thanks and Acknowledgments</title> + +<para> +&kate; Plugin <quote>PROJECT</quote> copyright %{year} %{fullname} +<email>%{email}</email>. +</para> + +<para> +Documentation copyright %{year} %{fullname} +</para> + +<!-- TRANS:CREDIT_FOR_TRANSLATORS --> + +<!-- &underFDL; --> +&underGPL; + +</sect1> +</chapter> + +<!-- kate: wordwrap on; --> diff --git a/kate/filetemplates/templates/html.katetemplate b/kate/filetemplates/templates/html.katetemplate new file mode 100644 index 0000000..40718e3 --- /dev/null +++ b/kate/filetemplates/templates/html.katetemplate @@ -0,0 +1,18 @@ +katetemplate: template=HTML 4.01 Strict Document documentname=New%N.html +katetemplate: highlight=HTML group=Internet icon=www +katetemplate: description=This will create a very basic HTML file with the HTML 4.01 strict DTD. +katetemplate: author=Anders Lund <[email protected]> +katetemplate: this text is supposedly thrown away. +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<!-- Copyright (C) %{year} %{fullname} <%{email}> --> +<head> + <title>${title}</title> + <link rel="author" title="%{fullname}" href="mailto: (%{author}) %{email}"> + </head> + <body> + <h1>${title}</h1> + ${cursor} + </body> +</html> diff --git a/kate/filetemplates/templates/language.xml.katetemplate b/kate/filetemplates/templates/language.xml.katetemplate new file mode 100644 index 0000000..420ba84 --- /dev/null +++ b/kate/filetemplates/templates/language.xml.katetemplate @@ -0,0 +1,60 @@ +katetemplate: Documentname=New language.xml (%N) Template=Kate Highlight Definition highlight=XML +katetemplate: Author=Dominik Haumann <[email protected]> +katetemplate: Description=This template will create the basics of a kate highlight definition file. +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<!-- + This file is part of KDE's kate project. + + copyright : (C) %{year} by %{fullname} + email : %{email} + + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. +--> +<!-- + You'll find the "Writing a Kate Highlighting XML File HOWTO" at + http://kate.kde.org/doc/hlhowto.php + This is a template for the XML format used for syntax highlight descriptions + for the Kate text editor (http://kate.kde.org), which is part of the KDE + desktop environment (http://www.kde.org). + + Use it as the base for your own syntax files. + + Look at language.dtd for some documentation of the allowed elements and their attributes. + There is also a description of how to validate your syntax file. + + You'll find the "Writing a Kate Highlighting XML File HOWTO" at + http://kate.kde.org/doc/hlhowto.php + --> + +<language version="1.00" kateversion="2.4" name="${cursor}" section="${section}" extensions="${extensions}" mimetype="${mimetypes}" author="%{fullname}" licence="GPL"> + <highlighting> +<!-- + <list name="aList"> + <item></item> + </list> +--> + <contexts> + <context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" > +<!-- <keyword attribute="Normal Text" context="#stay" String="aList" /> +--> + </context> + </contexts> + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + </itemDatas> + </highlighting> + <general> + <keywords casesensitive="1" /> +<!-- + <comments> + <comment name="singleLine" start="" /> + <comment name="multiLine" start="" end="" /> + </comments> +--> + </general> +</language> +<!-- kate: space-indent on; indent-width 2; replace-tabs on; indent-mode xml; --> |