From ba429d344132c088177e853cce8ff7181570b221 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 19:42:51 +0200 Subject: Adding upstream version 44.2. Signed-off-by: Daniel Baumann --- plugins/snippets/data/c.xml | 281 ++++ plugins/snippets/data/chdr.xml | 258 +++ plugins/snippets/data/cpp.xml | 180 ++ plugins/snippets/data/css.xml | 557 +++++++ plugins/snippets/data/docbook.xml | 2645 ++++++++++++++++++++++++++++++ plugins/snippets/data/fortran.xml | 164 ++ plugins/snippets/data/global.xml | 2 + plugins/snippets/data/haskell.xml | 14 + plugins/snippets/data/html.xml | 252 +++ plugins/snippets/data/idl.xml | 49 + plugins/snippets/data/java.xml | 91 + plugins/snippets/data/javascript.xml | 10 + plugins/snippets/data/lang/snippets.lang | 160 ++ plugins/snippets/data/latex.xml | 38 + plugins/snippets/data/mallard.xml | 316 ++++ plugins/snippets/data/markdown.xml | 98 ++ plugins/snippets/data/perl.xml | 126 ++ plugins/snippets/data/php.xml | 192 +++ plugins/snippets/data/python.xml | 112 ++ plugins/snippets/data/rpmspec.xml | 22 + plugins/snippets/data/ruby.xml | 166 ++ plugins/snippets/data/sh.xml | 47 + plugins/snippets/data/snippets.xml | 98 ++ plugins/snippets/data/tcl.xml | 55 + plugins/snippets/data/xml.xml | 25 + plugins/snippets/data/xslt.xml | 143 ++ 26 files changed, 6101 insertions(+) create mode 100644 plugins/snippets/data/c.xml create mode 100644 plugins/snippets/data/chdr.xml create mode 100644 plugins/snippets/data/cpp.xml create mode 100644 plugins/snippets/data/css.xml create mode 100644 plugins/snippets/data/docbook.xml create mode 100644 plugins/snippets/data/fortran.xml create mode 100644 plugins/snippets/data/global.xml create mode 100644 plugins/snippets/data/haskell.xml create mode 100644 plugins/snippets/data/html.xml create mode 100644 plugins/snippets/data/idl.xml create mode 100644 plugins/snippets/data/java.xml create mode 100644 plugins/snippets/data/javascript.xml create mode 100644 plugins/snippets/data/lang/snippets.lang create mode 100644 plugins/snippets/data/latex.xml create mode 100644 plugins/snippets/data/mallard.xml create mode 100644 plugins/snippets/data/markdown.xml create mode 100644 plugins/snippets/data/perl.xml create mode 100644 plugins/snippets/data/php.xml create mode 100644 plugins/snippets/data/python.xml create mode 100644 plugins/snippets/data/rpmspec.xml create mode 100644 plugins/snippets/data/ruby.xml create mode 100644 plugins/snippets/data/sh.xml create mode 100644 plugins/snippets/data/snippets.xml create mode 100644 plugins/snippets/data/tcl.xml create mode 100644 plugins/snippets/data/xml.xml create mode 100644 plugins/snippets/data/xslt.xml (limited to 'plugins/snippets/data') diff --git a/plugins/snippets/data/c.xml b/plugins/snippets/data/c.xml new file mode 100644 index 0000000..f46ceed --- /dev/null +++ b/plugins/snippets/data/c.xml @@ -0,0 +1,281 @@ + + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} 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. + * + * ${2} 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 ${2}. If not, see . + */ + +$0]]> + gpl + GPL License + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ${2} 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with ${2}. If not, see . + */ + +$0]]> + lgpl + LGPL License + + + + do + do .. while + + + + for + for loop + + + + while + while loop + + + + if + if + + + + elif + else if + + + + else + else + + + +$0]]> + Inc + #include <..> + + + + inc + #include ".." + + + + main + main + + + + struct + struct + + + + #endif + period]]> + + + + td + typedef + + + + +typedef struct _$<[1]: return camel_str >Private +{ +} $<[1]: return camel_str >Private; + +G_DEFINE_TYPE_WITH_PRIVATE ($<[1]: return camel_str >, $<[1]: return low_str >, ${2:G_TYPE_OBJECT}) + +static void +$<[1]: return low_str>_finalize (GObject *object) +{ + G_OBJECT_CLASS ($<[1]: return low_str >_parent_class)->finalize (object); +} + +static void +$<[1]: return low_str >_class_init ($<[1]: return camel_str >Class *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->finalize = $<[1]: return low_str >_finalize; +} + +static void +$<[1]: return low_str >_init ($<[1]: return camel_str> *self) +{ +} + +$<[1]: return camel_str > * +$<[1]: return low_str >_new () +{ + return g_object_new ($<[1]: return type_str >, NULL); +}]]> + gobject + GObject template + + + +G_DEFINE_INTERFACE ($<[1]: return camel_str >, $<[1]: return low_str >, ${2:G_TYPE_OBJECT}) + +/* Default implementation */ +static const gchar * +$<[1]: return low_str>_example_method_default ($<[1]: return camel_str > *self) +{ + g_return_val_if_reached (NULL); +} + +static void +$<[1]: return low_str>_init ($<[1]: return camel_str >Iface *iface) +{ + static gboolean initialized = FALSE; + + iface->example_method = $<[1]: return low_str>_example_method_default; + + if (!initialized) + { + initialized = TRUE; + } +} + +/* + * This is an method example for an interface + */ +const gchar * +$<[1]: return low_str>_example_method ($<[1]: return camel_str > *self) +{ + g_return_val_if_fail ($<[1]: return up_str> (self), NULL); + return $<[1]: return up_str>_GET_INTERFACE (self)->example_method (self); +}]]> + ginterface + GObject interface + + + + +struct _$<[1]: return camel_str > +{ +}; + +G_DEFINE_BOXED_TYPE ($<[1]: return camel_str >, $<[1]: return low_str >, $<[1]: return low_str >_${2:copy}, $<[1]: return low_str >_${3:free}) + +$<[1]: return camel_str > * +$<[1]: return low_str >_${2:copy} ($<[1]: return camel_str > *${4:boxed_name}) +{ + +} + +void +$<[1]: return low_str >_${3:free} ($<[1]: return camel_str > *${4:boxed_name}) +{ + +}]]> + gboxed + GBoxed template + + diff --git a/plugins/snippets/data/chdr.xml b/plugins/snippets/data/chdr.xml new file mode 100644 index 0000000..2ce94d7 --- /dev/null +++ b/plugins/snippets/data/chdr.xml @@ -0,0 +1,258 @@ + + + + + Header Include-Guard + once + + + + #include ".." + inc + + + +$0]]> + #include <..> + Inc + + + + namespace .. + namespace + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} 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. + * + * ${2} 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 ${2}. If not, see . + */ + +$0]]> + gpl + GPL License + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ${2} 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with ${2}. If not, see . + */ + +$0]]> + lgpl + LGPL License + + + + td + typedef + + + + class .. + class + + + + struct + struct + + + ]]> + template <typename ..> + template + + + +#include <${2:glib-object.h}> + +G_BEGIN_DECLS + +#define $<[1]: return type_str > ($<[1]: return $1.lower() >_get_type ()) +G_DECLARE_DERIVABLE_TYPE ($<[1]: return camel_str >, $<[1]: return $1.lower() >, $<[1]: return module >, $<[1]: return name >, ${3:GObject}) + +struct _$<[1]: return camel_str >Class +{ + $3Class parent_class; +}; + +$<[1]: return camel_str > *$< return $1.lower()>_new (void); + +$0 +G_END_DECLS + +#endif /* $1_H */]]> + gobject + GObject template + + + + +G_BEGIN_DECLS + +$< +global camel_str +components = $1.split('_') +type_str = '_'.join([components[0], 'TYPE'] + components[1:]) +is_str = '_'.join([components[0], 'IS'] + components[1:]) +camel_str = '' + +for t in components: + camel_str += t.capitalize() + +items = [ \ +['#define ' + type_str, '(' + $1.lower() + '_get_type ())'], \ +['#define ' + $1 + '(obj)', '(G_TYPE_CHECK_INSTANCE_CAST ((obj), ' + type_str + ', ' + camel_str + '))'], \ +['#define ' + is_str + '(obj)', '(G_TYPE_CHECK_INSTANCE_TYPE ((obj), ' + type_str + '))'], \ +['#define ' + $1 + '_GET_INTERFACE(obj)', '(G_TYPE_INSTANCE_GET_INTERFACE ((obj), ' + type_str + ', ' + camel_str + 'Iface))'] +] + +return align(items) > + +$<[1]: +items = [ \ +['typedef struct _' + camel_str, camel_str + ';'], \ +['typedef struct _' + camel_str + 'Iface', camel_str + 'Iface;'], \ +] + +return align(items) > + +struct _$<[1]: return camel_str >Iface +{ + ${7:GTypeInterface} parent; + + const gchar * (*example_method) ($<[1]: return camel_str > *self); +}; + +GType $< return $1.lower() + '_get_type' > (void) G_GNUC_CONST; + +const gchar *$< return $1.lower()>_example_method ($<[1]: return camel_str > *self); +$0 +G_END_DECLS + +#endif /* $1_H */]]> + ginterface + GObject interface + + + + +G_BEGIN_DECLS + +$< +global camel_str +components = $1.split('_') +type_str = '_'.join([components[0], 'TYPE'] + components[1:]) +is_str = '_'.join([components[0], 'IS'] + components[1:]) +camel_str = '' + +for t in components: + camel_str += t.capitalize() + +items = [ \ +['#define ' + type_str, '(' + $1.lower() + '_get_type ())'], \ +['#define ' + $1 + '(obj)', '((' + camel_str + ' *)obj)'], \ +['#define ' + $1 + '_CONST(obj)', '((' + camel_str + ' const *)obj)'], \ +] + +return align(items) > + +$<[1]: +items = [ \ +['typedef struct _' + camel_str, camel_str + ';'], \ +] + +return align(items) > + +GType $< return $1.lower() + '_get_type' > (void) G_GNUC_CONST; +$<[1]: return camel_str > *$< return $1.lower()>_${3:copy} ($<[1]: return camel_str > *${4:boxed_name}); +void $< return $1.lower()>_${5:free} ($<[1]: return camel_str > *${4:boxed_name}); + +$0 +G_END_DECLS + +#endif /* $1_H */]]> + gboxed + GBoxed template + + diff --git a/plugins/snippets/data/cpp.xml b/plugins/snippets/data/cpp.xml new file mode 100644 index 0000000..1d4c31c --- /dev/null +++ b/plugins/snippets/data/cpp.xml @@ -0,0 +1,180 @@ + + + + + main + main + + + + for loop + for + + + + $1.begin + beginend + + + + do .. while + do + + + + period]]> + #endif + + + + if .. + if + + + + #include ".." + inc + + + +$0]]> + #include <..> + Inc + + + + namespace .. + namespace + + + v; +if (FILE* fp = fopen (${1:"filename"}, "r")) +{ + uint8_t buf[1024]; + while (size_t len = fread (buf, 1, sizeof (buf), fp)) + v.insert (v.end(), buf, buf + len); + fclose(fp); +} +$0]]> + Read File Into Vector + readfile + + + ${3:map}; +$0]]> + std::map + map + + + ${2:v}; +$0]]> + std::vector + vector + + + + struct .. + struct + + + ]]> + template <typename ..> + template + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} 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. + * + * ${2} 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 ${2}. If not, see . + */ + + $0]]> + gpl + GPL License + + + ]} + * This file is part of ${2:} + * + * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: +import pwd, os +try: + return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] +except KeyError: + return '' > + * + * ${2} is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ${2} 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with ${2}. If not, see . + */ + + $0]]> + lgpl + LGPL License + + + + td + typedef + + + + while + while + + diff --git a/plugins/snippets/data/css.xml b/plugins/snippets/data/css.xml new file mode 100644 index 0000000..babca91 --- /dev/null +++ b/plugins/snippets/data/css.xml @@ -0,0 +1,557 @@ + + + + + background-attachment: scroll/fixed + background + + + + background-color: color-hex + background + + + + background-color: color-name + background + + + + background-color: color-rgb + background + + + + background: color image repeat attachment position + background + + + + background-color: transparent + background + + + + background-image: none + background + + + + background-image: url + background + + + + background-position: position + background + + + + background-repeat: r/r-x/r-y/n-r + background + + + + border-bottom-color: size style color + border + + + + border-bottom: size style color + border + + + + border-bottom-style: size style color + border + + + + border-bottom-width: size style color + border + + + + border-color: color + border + + + + border-left-color: color + border + + + + border-left: size style color + border + + + + border-left-style: style + border + + + + border-left-width: size + border + + + + border-right-color: color + border + + + + border-right: size style color + border + + + + border-right-style: style + border + + + + border-right-width: size + border + + + + border: size style color + border + + + + border-style: style + border + + + + border-top-color: color + border + + + + border-top: size style color + border + + + + border-top-style: style + border + + + + border-top-width: size + border + + + + border-width: width + border + + + + clear: value + clear + + + + color: color-hex + color + + + + color: color-name + color + + + + color: color-rgb + color + + + + cursor: type + cursor + + + + cursor: url + clear + + + + direction: ltr|rtl + direction + + + + display: block + display + + + + display: common-types + display + + + + display: inline + display + + + + display: table-types + display + + + + float: left/right/none + float + + + + font-family: family + font + + + + font: size font + font + + + + font-size: size + font + + + + font-style: normal/italic/oblique + font + + + + font: style variant weight size/line-height font-family + font + + + + font-variant: normal/small-caps + font + + + + font-weight: weight + font + + + + letter-spacing: length-em + letter + + + + letter-spacing: length-px + letter + + + + list-style-image: url + list + + + + list-style-position: pos + list + + + + list-style-type: asian + list + + + + list-style-type: marker + list + + + + list-style-type: numeric + list + + + + list-style-type: other + list + + + + list-style: type position image + list + + + + list-style-type: roman-alpha-greek + list + + + + margin: all + margin + + + + margin-bottom: length + margin + + + + margin-left: length + margin + + + + margin-right: length + margin + + + + margin-top: length + margin + + + + margin: T R B L + margin + + + + margin: V H + margin + + + + marker-offset: auto + marker + + + + marker-offset: length + marker + + + + overflow: type + overflow + + + + padding: all + padding + + + + padding-bottom: length + margin + + + + padding-left: length + margin + + + + padding-right: length + margin + + + + padding-top: length + margin + + + + padding: T R B L + padding + + + + padding: V H + padding + + + + position: type + position + + + + properties { } + { + + + + text-align: left/center/right + text + + + + text-decoration: none/underline/overline/line-through/blink + text + + + + text-indent: length + text + + + + text-shadow: color-hex x y blur + text + + + + text-shadow: color-rgb x y blur + text + + + + text-shadow: none + text + + + + text-transform: capitalize/upper/lower + text + + + + text-transform: none + text + + + + vertical-align: type + vertical + + + + visibility: type + visibility + + + + white-space: normal/pre/nowrap + white + + + + word-spacing: length + word + + + + word-spacing: normal + word + + + + z-index: index + z + + diff --git a/plugins/snippets/data/docbook.xml b/plugins/snippets/data/docbook.xml new file mode 100644 index 0000000..d2a07de --- /dev/null +++ b/plugins/snippets/data/docbook.xml @@ -0,0 +1,2645 @@ + + + + + + ${1}]]> + abbrev + abbrev + + + + ${1} +]]> + abstract + abstract + + + ${1}]]> + accel + accel + + + + ${1} +]]> + ackno + ackno + + + ${1}]]> + acronym + acronym + + + ${1}]]> + action + action + + + + ${1} +]]> + address + address + + + + ${1} +]]> + affiliation + affiliation + + + ${1}]]> + alt + alt + + + ]]> + anchor + anchor + + + + ${1} +]]> + answer + answer + + + + ${2} +]]> + appendix + appendix + + + + ${1} +]]> + appendixinfo + appendixinfo + + + ${1}]]> + application + application + + + ]]> + area + area + + + + ${3} +]]> + areaset + areaset + + + + ${2} +]]> + areaspec + areaspec + + + ${1}]]> + arg + arg + + + + ${2} +]]> + article + article + + + + ${1} +]]> + articleinfo + articleinfo + + + ${1}]]> + artpagenums + artpagenums + + + ${1}]]> + attribution + attribution + + + ]]> + audiodata + audiodata + + + + ${1} +]]> + audioobject + audioobject + + + + ${1} +]]> + author + author + + + + ${1} +]]> + authorblurb + authorblurb + + + + ${1} +]]> + authorgroup + authorgroup + + + ${1}]]> + authorinitials + authorinitials + + + ]]> + beginpage + beginpage + + + + ${1} +]]> + bibliocoverage + bibliocoverage + + + + ${1} +]]> + bibliodiv + bibliodiv + + + + ${1} +]]> + biblioentry + biblioentry + + + + ${1} +]]> + bibliography + bibliography + + + + ${1} +]]> + bibliographyinfo + bibliographyinfo + + + ${2}]]> + biblioid + biblioid + + + + ${1} +]]> + bibliolist + bibliolist + + + + ${1} +]]> + bibliomisc + bibliomisc + + + + ${1} +]]> + bibliomixed + bibliomixed + + + + ${2} +]]> + bibliomset + bibliomset + + + ]]> + biblioref + biblioref + + + ${3}]]> + bibliorelation + bibliorelation + + + + ${2} +]]> + biblioset + biblioset + + + ${2}]]> + bibliosource + bibliosource + + + + ${1} +]]> + blockinfo + blockinfo + + + + ${1} +]]> + blockquote + blockquote + + + + ${2} +]]> + book + book + + + + ${1} +]]> + bookinfo + bookinfo + + + ${2}]]> + bridgehead + bridgehead + + + + ${2} +]]> + callout + callout + + + + ${1} +]]> + calloutlist + calloutlist + + + + ${1} +]]> + caption + caption + + + + ${1} +]]> + caution + caution + + + + ${2} +]]> + chapter + chapter + + + + ${1} +]]> + chapterinfo + chapterinfo + + + ${1}]]> + citation + citation + + + ${2}]]> + citebiblioid + citebiblioid + + + ${1}]]> + citerefentry + citerefentry + + + ${2}]]> + citetitle + citetitle + + + ${1}]]> + city + city + + + ${1}]]> + classname + classname + + + + ${3} +]]> + classsynopsis + classsynopsis + + + + ${1} +]]> + classsynopsisinfo + classsynopsisinfo + + + + ${1} +]]> + cmdsynopsis + cmdsynopsis + + + ]]> + co + co + + + ${2}]]> + code + code + + + + ${1} +]]> + col + col + + + + ${1} +]]> + colgroup + colgroup + + + + ${1} +]]> + collab + collab + + + ${1}]]> + collabname + collabname + + + + ${1} +]]> + colophon + colophon + + + ]]> + colspec + colspec + + + ${1}]]> + command + command + + + ${1}]]> + computeroutput + computeroutput + + + ${1}]]> + confdates + confdates + + + + ${1} +]]> + confgroup + confgroup + + + ${1}]]> + confnum + confnum + + + ${1}]]> + confsponsor + confsponsor + + + ${1}]]> + conftitle + conftitle + + + ${1}]]> + constant + constant + + + + ${2} +]]> + constructorsynopsis + constructorsynopsis + + + ${1}]]> + contractnum + contractnum + + + ${1}]]> + contractsponsor + contractsponsor + + + ${1}]]> + contrib + contrib + + + + ${1} +]]> + copyright + copyright + + + ]]> + coref + coref + + + ${1}]]> + corpauthor + corpauthor + + + ${1}]]> + corpcredit + corpcredit + + + ${1}]]> + corpname + corpname + + + ${1}]]> + country + country + + + ${2}]]> + database + database + + + ${1}]]> + date + date + + + + ${1} +]]> + dedication + dedication + + + + ${2} +]]> + destructorsynopsis + destructorsynopsis + + + ${1}]]> + edition + edition + + + + ${1} +]]> + editor + editor + + + ${1}]]> + email + email + + + ${1}]]> + emphasis + emphasis + + + ${1}]]> + entry + entry + + + + ${2} +]]> + entrytbl + entrytbl + + + ${1}]]> + envar + envar + + + + ${1} +]]> + epigraph + epigraph + + + + ${1} +]]> + equation + equation + + + ${1}]]> + errorcode + errorcode + + + ${1}]]> + errorname + errorname + + + ${1}]]> + errortext + errortext + + + ${1}]]> + errortype + errortype + + + + ${2} +]]> + example + example + + + ${1}]]> + exceptionname + exceptionname + + + ${1}]]> + fax + fax + + + + ${2} +]]> + fieldsynopsis + fieldsynopsis + + + + ${2} +]]> + figure + figure + + + ${1}]]> + filename + filename + + + ${1}]]> + firstname + firstname + + + ${1}]]> + firstterm + firstterm + + + + ${1} +]]> + footnote + footnote + + + ]]> + footnoteref + footnoteref + + + ${1}]]> + foreignphrase + foreignphrase + + + + ${1} +]]> + formalpara + formalpara + + + ${1}]]> + funcdef + funcdef + + + ${1}]]> + funcparams + funcparams + + + + ${1} +]]> + funcprototype + funcprototype + + + + ${1} +]]> + funcsynopsis + funcsynopsis + + + + ${1} +]]> + funcsynopsisinfo + funcsynopsisinfo + + + ${1}]]> + function + function + + + + ${2} +]]> + glossary + glossary + + + + ${1} +]]> + glossaryinfo + glossaryinfo + + + + ${1} +]]> + glossdef + glossdef + + + + ${1} +]]> + glossdiv + glossdiv + + + + ${1} +]]> + glossentry + glossentry + + + + ${1} +]]> + glosslist + glosslist + + + ${2}]]> + glosssee + glosssee + + + ${2}]]> + glossseealso + glossseealso + + + ${1}]]> + glossterm + glossterm + + + ]]> + graphic + graphic + + + + ${1} +]]> + graphicco + graphicco + + + + ${1} +]]> + group + group + + + ${1}]]> + guibutton + guibutton + + + ${1}]]> + guiicon + guiicon + + + ${1}]]> + guilabel + guilabel + + + ${1}]]> + guimenu + guimenu + + + ${1}]]> + guimenuitem + guimenuitem + + + ${1}]]> + guisubmenu + guisubmenu + + + ${1}]]> + hardware + hardware + + + + ${1} +]]> + highlights + highlights + + + ${1}]]> + holder + holder + + + ${1}]]> + honorific + honorific + + + ]]> + imagedata + imagedata + + + + ${1} +]]> + imageobject + imageobject + + + + ${1} +]]> + imageobjectco + imageobjectco + + + + ${1} +]]> + important + important + + + + ${1} +]]> + index + index + + + + ${1} +]]> + indexdiv + indexdiv + + + + ${1} +]]> + indexentry + indexentry + + + + ${1} +]]> + indexinfo + indexinfo + + + + ${1} +]]> + indexterm + indexterm + + + + ${1} +]]> + informalequation + informalequation + + + + ${1} +]]> + informalexample + informalexample + + + + ${1} +]]> + informalfigure + informalfigure + + + + ${1} +]]> + informaltable + informaltable + + + ${1}]]> + initializer + initializer + + + + ${1} +]]> + inlineequation + inlineequation + + + ]]> + inlinegraphic + inlinegraphic + + + + ${1} +]]> + inlinemediaobject + inlinemediaobject + + + ${1}]]> + interface + interface + + + ${1}]]> + interfacename + interfacename + + + ${1}]]> + invpartnumber + invpartnumber + + + ${1}]]> + isbn + isbn + + + ${1}]]> + issn + issn + + + ${1}]]> + issuenum + issuenum + + + + ${1} +]]> + itemizedlist + itemizedlist + + + + ${1} +]]> + itermset + itermset + + + ${1}]]> + jobtitle + jobtitle + + + ${1}]]> + keycap + keycap + + + ${1}]]> + keycode + keycode + + + ${1}]]> + keycombo + keycombo + + + ${1}]]> + keysym + keysym + + + ${1}]]> + keyword + keyword + + + + ${1} +]]> + keywordset + keywordset + + + ${1}]]> + label + label + + + + ${1} +]]> + legalnotice + legalnotice + + + ${1}]]> + lineage + lineage + + + ${1}]]> + lineannotation + lineannotation + + + ${2}]]> + link + link + + + + ${1} +]]> + listitem + listitem + + + ${1}]]> + literal + literal + + + ${1}]]> + literallayout + literallayout + + + + ${1} +]]> + lot + lot + + + + ${2} +]]> + lotentry + lotentry + + + ${1}]]> + manvolnum + manvolnum + + + ${1}]]> + markup + markup + + + ${1}]]> + mathphrase + mathphrase + + + ${1}]]> + medialabel + medialabel + + + + ${1} +]]> + mediaobject + mediaobject + + + + ${1} +]]> + mediaobjectco + mediaobjectco + + + + ${1} +]]> + member + member + + + ${1}]]> + menuchoice + menuchoice + + + ${1}]]> + methodname + methodname + + + ${1}]]> + methodparam + methodparam + + + + ${2} +]]> + methodsynopsis + methodsynopsis + + + ${2}]]> + modespec + modespec + + + ${1}]]> + modifier + modifier + + + ${1}]]> + mousebutton + mousebutton + + + + ${1} +]]> + msg + msg + + + ${1}]]> + msgaud + msgaud + + + + ${1} +]]> + msgentry + msgentry + + + + ${1} +]]> + msgexplan + msgexplan + + + + ${1} +]]> + msginfo + msginfo + + + ${1}]]> + msglevel + msglevel + + + + ${1} +]]> + msgmain + msgmain + + + ${1}]]> + msgorig + msgorig + + + + ${1} +]]> + msgrel + msgrel + + + + ${1} +]]> + msgset + msgset + + + + ${1} +]]> + msgsub + msgsub + + + + ${1} +]]> + msgtext + msgtext + + + + ${1} +]]> + note + note + + + + ${1} +]]> + objectinfo + objectinfo + + + ${2}]]> + olink + olink + + + ${1}]]> + ooclass + ooclass + + + ${1}]]> + ooexception + ooexception + + + ${1}]]> + oointerface + oointerface + + + ${1}]]> + option + option + + + ${1}]]> + optional + optional + + + + ${1} +]]> + orderedlist + orderedlist + + + ${1}]]> + orgdiv + orgdiv + + + ${1}]]> + orgname + orgname + + + ${1}]]> + otheraddr + otheraddr + + + + ${1} +]]> + othercredit + othercredit + + + ${1}]]> + othername + othername + + + ${1}]]> + package + package + + + ${1}]]> + pagenums + pagenums + + + + ${1} +]]> + para + para + + + ${1}]]> + paramdef + paramdef + + + ${2}]]> + parameter + parameter + + + + ${2} +]]> + part + part + + + + ${1} +]]> + partinfo + partinfo + + + + ${1} +]]> + partintro + partintro + + + + ${1} +]]> + personblurb + personblurb + + + ${1}]]> + personname + personname + + + ${1}]]> + phone + phone + + + ${1}]]> + phrase + phrase + + + ${1}]]> + pob + pob + + + ${1}]]> + postcode + postcode + + + + ${2} +]]> + preface + preface + + + + ${1} +]]> + prefaceinfo + prefaceinfo + + + ${1}]]> + primary + primary + + + ${1}]]> + primaryie + primaryie + + + + ${1} +]]> + printhistory + printhistory + + + + ${1} +]]> + procedure + procedure + + + ${2}]]> + productname + productname + + + ${1}]]> + productnumber + productnumber + + + ${2}]]> + programlisting + programlisting + + + + ${1} +]]> + programlistingco + programlistingco + + + ${1}]]> + prompt + prompt + + + ${1}]]> + property + property + + + ${1}]]> + pubdate + pubdate + + + + ${1} +]]> + publisher + publisher + + + ${1}]]> + publishername + publishername + + + ${1}]]> + pubsnumber + pubsnumber + + + + ${1} +]]> + qandadiv + qandadiv + + + + ${1} +]]> + qandaentry + qandaentry + + + + ${1} +]]> + qandaset + qandaset + + + + ${1} +]]> + question + question + + + ${1}]]> + quote + quote + + + ${1}]]> + refclass + refclass + + + ${1}]]> + refdescriptor + refdescriptor + + + + ${1} +]]> + refentry + refentry + + + + ${1} +]]> + refentryinfo + refentryinfo + + + ${1}]]> + refentrytitle + refentrytitle + + + + ${1} +]]> + reference + reference + + + + ${1} +]]> + referenceinfo + referenceinfo + + + + ${1} +]]> + refmeta + refmeta + + + + ${1} +]]> + refmiscinfo + refmiscinfo + + + ${1}]]> + refname + refname + + + + ${1} +]]> + refnamediv + refnamediv + + + ${1}]]> + refpurpose + refpurpose + + + + ${1} +]]> + refsect1 + refsect1 + + + + ${1} +]]> + refsect1info + refsect1info + + + + ${1} +]]> + refsect2 + refsect2 + + + + ${1} +]]> + refsect2info + refsect2info + + + + ${1} +]]> + refsect3 + refsect3 + + + + ${1} +]]> + refsect3info + refsect3info + + + + ${1} +]]> + refsection + refsection + + + + ${1} +]]> + refsectioninfo + refsectioninfo + + + + ${1} +]]> + refsynopsisdiv + refsynopsisdiv + + + + ${1} +]]> + refsynopsisdivinfo + refsynopsisdivinfo + + + ${1}]]> + releaseinfo + releaseinfo + + + ${1}]]> + remark + remark + + + ${1}]]> + replaceable + replaceable + + + ${1}]]> + returnvalue + returnvalue + + + + ${1} +]]> + revdescription + revdescription + + + + ${1} +]]> + revhistory + revhistory + + + + ${1} +]]> + revision + revision + + + ${1}]]> + revnumber + revnumber + + + ${1}]]> + revremark + revremark + + + + ${1} +]]> + row + row + + + ]]> + sbr + sbr + + + ${1}]]> + screen + screen + + + + ${1} +]]> + screenco + screenco + + + ${1}]]> + screeninfo + screeninfo + + + + ${1} +]]> + screenshot + screenshot + + + ${1}]]> + secondary + secondary + + + ${1}]]> + secondaryie + secondaryie + + + + ${2} +]]> + sect1 + sect1 + + + + ${1} +]]> + sect1info + sect1info + + + + ${2} +]]> + sect2 + sect2 + + + + ${1} +]]> + sect2info + sect2info + + + + ${2} +]]> + sect3 + sect3 + + + + ${1} +]]> + sect3info + sect3info + + + + ${2} +]]> + sect4 + sect4 + + + + ${1} +]]> + sect4info + sect4info + + + + ${2} +]]> + sect5 + sect5 + + + + ${1} +]]> + sect5info + sect5info + + + + ${2} +]]> + section + section + + + + ${1} +]]> + sectioninfo + sectioninfo + + + ${1}]]> + see + see + + + ${1}]]> + seealso + seealso + + + ${1}]]> + seealsoie + seealsoie + + + ${1}]]> + seeie + seeie + + + ${1}]]> + seg + seg + + + + ${1} +]]> + seglistitem + seglistitem + + + + ${1} +]]> + segmentedlist + segmentedlist + + + ${1}]]> + segtitle + segtitle + + + ${1}]]> + seriesvolnums + seriesvolnums + + + + ${1} +]]> + set + set + + + + ${1} +]]> + setindex + setindex + + + + ${1} +]]> + setindexinfo + setindexinfo + + + + ${1} +]]> + setinfo + setinfo + + + ${1}]]> + sgmltag + sgmltag + + + ${1}]]> + shortaffil + shortaffil + + + ${1}]]> + shortcut + shortcut + + + + ${1} +]]> + sidebar + sidebar + + + + ${1} +]]> + sidebarinfo + sidebarinfo + + + + ${1} +]]> + simpara + simpara + + + + ${1} +]]> + simplelist + simplelist + + + + ${1} +]]> + simplemsgentry + simplemsgentry + + + + ${2} +]]> + simplesect + simplesect + + + ]]> + spanspec + spanspec + + + ${1}]]> + state + state + + + + ${1} +]]> + step + step + + + + ${1} +]]> + stepalternatives + stepalternatives + + + ${1}]]> + street + street + + + ${1}]]> + structfield + structfield + + + ${1}]]> + structname + structname + + + + ${1} +]]> + subject + subject + + + + ${1} +]]> + subjectset + subjectset + + + ${1}]]> + subjectterm + subjectterm + + + ${1}]]> + subscript + subscript + + + + ${1} +]]> + substeps + substeps + + + ${1}]]> + subtitle + subtitle + + + ${1}]]> + superscript + superscript + + + ${1}]]> + surname + surname + + + ${1}]]> + symbol + symbol + + + + ${2} +]]> + synopfragment + synopfragment + + + + ${2} +]]> + synopfragmentref + synopfragmentref + + + ${1}]]> + synopsis + synopsis + + + ${1}]]> + systemitem + systemitem + + + + ${2} +]]> + table + table + + + + ${1} +]]> + task + task + + + + ${1} +]]> + taskprerequisites + taskprerequisites + + + + ${1} +]]> + taskrelated + taskrelated + + + + ${1} +]]> + tasksummary + tasksummary + + + + ${1} +]]> + tbody + tbody + + + + ${1} +]]> + td + td + + + ${1}]]> + term + term + + + ${1}]]> + termdef + termdef + + + ${1}]]> + tertiary + tertiary + + + ${1}]]> + tertiaryie + tertiaryie + + + ]]> + textdata + textdata + + + + ${1} +]]> + textobject + textobject + + + + ${1} +]]> + tfoot + tfoot + + + + ${2} +]]> + tgroup + tgroup + + + + ${1} +]]> + th + th + + + + ${1} +]]> + thead + thead + + + + ${1} +]]> + tip + tip + + + ${1}]]> + title + title + + + ${1}]]> + titleabbrev + titleabbrev + + + + ${1} +]]> + toc + toc + + + ${2}]]> + tocback + tocback + + + + ${1} +]]> + tocchap + tocchap + + + ${2}]]> + tocentry + tocentry + + + ${2}]]> + tocfront + tocfront + + + + ${1} +]]> + toclevel1 + toclevel1 + + + + ${1} +]]> + toclevel2 + toclevel2 + + + + ${1} +]]> + toclevel3 + toclevel3 + + + + ${1} +]]> + toclevel4 + toclevel4 + + + + ${1} +]]> + toclevel5 + toclevel5 + + + + ${1} +]]> + tocpart + tocpart + + + ${1}]]> + token + token + + + + ${1} +]]> + tr + tr + + + ${2}]]> + trademark + trademark + + + ${1}]]> + type + type + + + ${2}]]> + ulink + ulink + + + ${1}]]> + uri + uri + + + ${1}]]> + userinput + userinput + + + ]]> + varargs + varargs + + + + ${1} +]]> + variablelist + variablelist + + + + ${1} +]]> + varlistentry + varlistentry + + + ${1}]]> + varname + varname + + + ]]> + videodata + videodata + + + + ${1} +]]> + videoobject + videoobject + + + ]]> + void + void + + + ${1}]]> + volumenum + volumenum + + + + ${1} +]]> + warning + warning + + + ${1}]]> + wordasword + wordasword + + + ]]> + xref + xref + + + ${1}]]> + year + year + + + + ${1}]]> + bold + emphasis, role bold + + + ${1}]]> + strong + emphasis, role strong + + + ${1}]]> + devicefile + filename, class devicefile + + + ${1}]]> + directory + filename, class directory + + + ${1}]]> + extension + filename, class extension + + + ${1}]]> + headerfile + filename, class headerfile + + + ${1}]]> + libraryfile + filename, class libraryfile + + + ${1}]]> + partition + filename, class partition + + + ${1}]]> + symlink + filename, class symlink + + + ${1}]]> + cartridge + medialabel, class cartridge + + + ${1}]]> + cdrom + medialabel, class cdrom + + + ${1}]]> + disk + medialabel, class disk + + + ${1}]]> + tape + medialabel, class tape + + + ${1}]]> + daemon + systemitem, class daemon + + + ${1}]]> + domainname + systemitem, class domainname + + + ${1}]]> + etheraddress + systemitem, class etheraddress + + + ${1}]]> + eventhandler + systemitem, class eventhandler + + + ${1}]]> + event + systemitem, class event + + + ${1}]]> + filesystem + systemitem, class filesystem + + + ${1}]]> + fqdomainname + systemitem, class fqdomainname + + + ${1}]]> + groupname + systemitem, class groupname + + + ${1}]]> + ipaddress + systemitem, class ipaddress + + + ${1}]]> + library + systemitem, class library + + + ${1}]]> + macro + systemitem, class macro + + + ${1}]]> + netmask + systemitem, class netmask + + + ${1}]]> + newsgroup + systemitem, class newsgroup + + + ${1}]]> + osname + systemitem, class osname + + + ${1}]]> + process + systemitem, class process + + + ${1}]]> + protocol + systemitem, class protocol + + + ${1}]]> + resource + systemitem, class resource + + + ${1}]]> + server + systemitem, class server + + + ${1}]]> + service + systemitem, class service + + + ${1}]]> + systemname + systemitem, class systemname + + + ${1}]]> + username + systemitem, class username + + + + ]]> + include + xi:include + + + + ${1} +]]> + fallback + xi:fallback + + + ]]> + xml + xml + + + +%BOOK_ENTITIES; +]>]]> + doctype + DOCTYPE + + + ]]> + entity + ENTITY + + diff --git a/plugins/snippets/data/fortran.xml b/plugins/snippets/data/fortran.xml new file mode 100644 index 0000000..205abe6 --- /dev/null +++ b/plugins/snippets/data/fortran.xml @@ -0,0 +1,164 @@ + + + + + c + character + + + + cl + close + + + + do + do ... end do + + + + func + function + + + + ifel + if ... else ... end if + + + + if + if ... end if + + + + i + integer + + + + ida + integerdimalloc + + + + id + integerdim + + + + l + logical + + + + mod + module + + + + op + open + + + + prog + program + + + + re + read + + + + r + real + + + + rda + realdimalloc + + + + rd + realdim + + + + rec + recursivfunc + + + + sel + select + + + + sub + subroutine + + + + t + type + + + + dow + while + + + + wr + write + + diff --git a/plugins/snippets/data/global.xml b/plugins/snippets/data/global.xml new file mode 100644 index 0000000..afe3c0b --- /dev/null +++ b/plugins/snippets/data/global.xml @@ -0,0 +1,2 @@ + + diff --git a/plugins/snippets/data/haskell.xml b/plugins/snippets/data/haskell.xml new file mode 100644 index 0000000..54a8e7d --- /dev/null +++ b/plugins/snippets/data/haskell.xml @@ -0,0 +1,14 @@ + + + + + module + mod + + + ${1:t}]]> + \t -> t + \ + + diff --git a/plugins/snippets/data/html.xml b/plugins/snippets/data/html.xml new file mode 100644 index 0000000..dd9faea --- /dev/null +++ b/plugins/snippets/data/html.xml @@ -0,0 +1,252 @@ + + + + +]]> + HTML5 Doctype + doctype + + + +]]> + XHTML — 1.0 Frameset + doctype + + + +]]> + XHTML — 1.0 Strict + doctype + + + +]]> + XHTML — 1.0 Transitional + doctype + + + +]]> + XHTML — 1.1 + doctype + + + +]]> + HTML — 4.0 Transitional + doctype + + + +]]> + HTML — 4.01 Strict + doctype + + + +$0]]> + author + Author + + + " /> +$0]]> + date + Date + + + ${2:$GEDIT_SELECTED_TEXT} +]]> + l]]> + Wrap Selection as Link + ref + + + $GEDIT_SELECTED_TEXT]]> + w]]> + Wrap Selection in Open/Close Tag + + + ${3:email me} $0]]> + Mail Anchor + mailto + + + $0]]> + Base + base + + + + $0 +]]> + Body + body + + + +$0]]> + space]]> + Br + + + $4 +]]> + button + Button + + + + ${0:$GEDIT_SELECTED_TEXT} +]]> + Div + div + + + $0 +]]> + file + File + + + + $0 + +

+]]>
+ Form + form +
+ + ${3:$GEDIT_SELECTED_TEXT} +$0]]> + Heading + h + + + + + ${1:Page Title} + $0 +]]> + Head + head + + + $0]]> + img + Image + + + ]]> + Input + input + + + $1$0]]> + li + List Element + + + +$0]]> + Link + link + + + +$0]]> + Meta + meta + + + + space]]> + Non-Breaking Space + + + $1$0]]> + noscript + Noscript + + + $2$0]]> + option + Option + + + + $0 +]]> + Script + script + + + ]]> + Script With External Source + scriptsrc + + + + + $4 +$0 +]]> + select + Select + + + $2$0]]> + span + Span + + + + $0 + +]]> + Style + style + + + + ${4:Header} + ${5:Data} + $0 +]]> + Table + table + + + $0]]> + Text Area + textarea + + + ${1:Page Title} +$0]]> + Title + title + + + $1 +$0]]> + tr + Table Row + + + +
  • $1
  • +
  • $2
  • + $3 + +$0]]>
    + ul + Unordered List +
    +
    diff --git a/plugins/snippets/data/idl.xml b/plugins/snippets/data/idl.xml new file mode 100644 index 0000000..2b6ef30 --- /dev/null +++ b/plugins/snippets/data/idl.xml @@ -0,0 +1,49 @@ + + + + + mod + Module + + + + if + Interface + + + + str + Struct + + + + exc + Exception + + + ]]> + seq + Sequence + + + ${0:newtype};]]> + tseq + Typedef Sequence + + diff --git a/plugins/snippets/data/java.xml b/plugins/snippets/data/java.xml new file mode 100644 index 0000000..f7f11c0 --- /dev/null +++ b/plugins/snippets/data/java.xml @@ -0,0 +1,91 @@ + + + + + const def + cd + + + + if .. else + ife + + + + if + if + + + + logger + log + + + + try .. catch .. finally + tcf + + + + while statement + while + + + + main + main + + + + System.out.println + sout + + + + t]]> + Wrap Selection in Try/Catch + + + + tc + try .. catch + + diff --git a/plugins/snippets/data/javascript.xml b/plugins/snippets/data/javascript.xml new file mode 100644 index 0000000..b55c5b3 --- /dev/null +++ b/plugins/snippets/data/javascript.xml @@ -0,0 +1,10 @@ + + + + + function + fun + + diff --git a/plugins/snippets/data/lang/snippets.lang b/plugins/snippets/data/lang/snippets.lang new file mode 100644 index 0000000..7b755cd --- /dev/null +++ b/plugins/snippets/data/lang/snippets.lang @@ -0,0 +1,160 @@ + + +