From b30305f33e5ef84466436dc49d855676bea10e03 Mon Sep 17 00:00:00 2001 From: incastrix <incastrix> Date: Wed, 7 Oct 2009 22:50:46 +0000 Subject: [PATCH] Refactory: fix templates. --- net.sourceforge.phpeclipse.ui/plugin.xml | 10 +- .../src/net/sourceforge/phpeclipse/ui/WebUI.java | 25 +- .../templates/default-codetemplates.xml | 94 +++ .../templates/default-templates-html.properties | 10 + .../templates/default-templates-html.xml | 452 +++++++++++++ .../templates/default-templates.properties | 137 ++++ .../templates/default-templates.xml | 664 +++++++------------- 7 files changed, 950 insertions(+), 442 deletions(-) create mode 100644 net.sourceforge.phpeclipse.ui/templates/default-codetemplates.xml create mode 100644 net.sourceforge.phpeclipse.ui/templates/default-templates-html.properties create mode 100644 net.sourceforge.phpeclipse.ui/templates/default-templates-html.xml diff --git a/net.sourceforge.phpeclipse.ui/plugin.xml b/net.sourceforge.phpeclipse.ui/plugin.xml index 90e8b17..706cf5c 100644 --- a/net.sourceforge.phpeclipse.ui/plugin.xml +++ b/net.sourceforge.phpeclipse.ui/plugin.xml @@ -661,8 +661,12 @@ translations="templates/default-templates.properties"> </include> <include + file="templates/default-templates-html.xml" + translations="templates/default-templates-html.properties"> + </include> + <include file="templates/default-codetemplates.xml" - translations="templates/default-templates.properties"> + translations="templates/default-templates-html.properties"> </include> </extension> <extension @@ -1172,8 +1176,8 @@ id="smarty"> </contextType> <include - file="templates/default-templates.xml" - translations="templates/default-templates.properties"> + file="templates/default-templates-html.xml" + translations="templates/default-templates-html.properties"> </include> </extension> </plugin> diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/WebUI.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/WebUI.java index 4dbdae9..7ae8cfb 100644 --- a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/WebUI.java +++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/WebUI.java @@ -131,7 +131,13 @@ public class WebUI extends AbstractUIPlugin implements IPreferenceConstants { public static final String EDITOR_ID = WebUI.PLUGIN_ID + ".PHPUnitEditor"; - private static final String CUSTOM_TEMPLATES_KEY = "net.sourceforge.phpeclipse.ui.templates"; //$NON-NLS-1$ + + /** + * The key to store customized templates. + * + * @since 3.0 + */ + private static final String TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_templates"; //$NON-NLS-1$ /** * The key to store customized code templates. @@ -139,6 +145,19 @@ public class WebUI extends AbstractUIPlugin implements IPreferenceConstants { * @since 3.0 */ private static final String CODE_TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_code_templates"; //$NON-NLS-1$ + + + + + + private static final String CUSTOM_TEMPLATES_KEY = "net.sourceforge.phpeclipse.ui.templates"; //$NON-NLS-1$ + + /** + * The key to store customized code templates. + * + * @since 3.0 + */ +// private static final String CODE_TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_code_templates"; //$NON-NLS-1$ /** * The maximum number of allowed proposals by category */ @@ -309,8 +328,8 @@ public class WebUI extends AbstractUIPlugin implements IPreferenceConstants { */ public TemplateStore getTemplateStore() { if (fStore == null) { - fStore = new ContributionTemplateStore(getContextTypeRegistry(), - getDefault().getPreferenceStore(), CUSTOM_TEMPLATES_KEY); + fStore = new ContributionTemplateStore(/*getContextTypeRegistry()*/getTemplateContextRegistry(), + getDefault().getPreferenceStore(), /*CUSTOM_*/TEMPLATES_KEY); try { fStore.load(); } catch (IOException e) { diff --git a/net.sourceforge.phpeclipse.ui/templates/default-codetemplates.xml b/net.sourceforge.phpeclipse.ui/templates/default-codetemplates.xml new file mode 100644 index 0000000..5943bce --- /dev/null +++ b/net.sourceforge.phpeclipse.ui/templates/default-codetemplates.xml @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +/******************************************************************************* + * Copyright (c) 2000, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +--> + +<templates> + +<!-- +<template name="gettercomment" id="net.sourceforge.phpdt.ui.text.codetemplates.gettercomment" description="%CodeTemplates.gettercomment" context="php_gettercomment_context" enabled="true">/** + * @return %CodeTemplates.gettercomment.returntagcontent + */</template> + +<template name="settercomment" id="net.sourceforge.phpdt.ui.text.codetemplates.settercomment" description="%CodeTemplates.settercomment" context="php_settercomment_context" enabled="true">/** + * @param ${param} %CodeTemplates.settercomment.paramtagcontent + */</template> + +<template name="constructorcomment" id="net.sourceforge.phpdt.ui.text.codetemplates.constructorcomment" description="%CodeTemplates.constructorcomment" context="php_constructorcomment_context" enabled="true">/** + * ${tags} + */</template> + +<template name="typecomment" id="net.sourceforge.phpdt.ui.text.codetemplates.typecomment" description="%CodeTemplates.typecomment" context="php_typecomment_context" enabled="true">/** + * @author ${user} + * + * ${todo} %CodeTemplates.typecomment.content1 + * %CodeTemplates.typecomment.content2 + */</template> + +<template name="fieldcomment" id="net.sourceforge.phpdt.ui.text.codetemplates.fieldcomment" description="%CodeTemplates.fieldcomment" context="php_fieldcomment_context" enabled="true">/** + * %CodeTemplates.fieldcomment.content + */</template> + +<template name="methodcomment" id="net.sourceforge.phpdt.ui.text.codetemplates.methodcomment" description="%CodeTemplates.nonoverridingcomment" context="php_methodcomment_context" enabled="true">/** + * ${tags} + */</template> + +<template name="overridecomment" id="net.sourceforge.phpdt.ui.text.codetemplates.overridecomment" description="%CodeTemplates.overridecomment" context="php_overridecomment_context" enabled="true">/* %CodeTemplates.overridecomment.nonjd + * ${see_to_overridden} + */</template> +--> +<template name="newtype" id="net.sourceforge.phpdt.ui.text.codetemplates.newtype" description="%CodeTemplates.newfile" context="php_newtype_context" enabled="true"><?php +/* + * %CodeTemplates.newfile.content1 + * + * %CodeTemplates.newfile.content2 + * %CodeTemplates.newfile.content3 + */ +?> +</template> + +<template name="newhtml" id="net.sourceforge.phpdt.ui.text.codetemplates.newhtml" description="%CodeTemplates.newhtml" context="php_newhtml_context" enabled="true"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> +<!-- + * %CodeTemplates.newhtml.content1 + * + * %CodeTemplates.newhtml.content2 + * %CodeTemplates.newhtml.content3 +--> + <head> + <title> </title> + </head> + <body> + + </body> +</html> +</template> + +<!-- +<template name="catchblock" id="net.sourceforge.phpdt.ui.text.codetemplates.catchblock" description="%CodeTemplates.catchblock" context="php_catchblock_context" enabled="true">// ${todo} %CodeTemplates.catchblock.tododesc +${exception_var}.printStackTrace();</template> + +<template name="methodbody" id="net.sourceforge.phpdt.ui.text.codetemplates.methodbody" description="%CodeTemplates.methodstub" context="php_methodbody_context" enabled="true">// ${todo} %CodeTemplates.methodstub.tododesc +${body_statement}</template> + +<template name="constructorbody" id="net.sourceforge.phpdt.ui.text.codetemplates.constructorbody" description="%CodeTemplates.constructorstub" context="constructorbody_context" enabled="true">${body_statement} +// ${todo} %CodeTemplates.constructorstub.tododesc</template> + +<template name="getterbody" id="net.sourceforge.phpdt.ui.text.codetemplates.getterbody" description="%CodeTemplates.getterstub" context="php_getterbody_context" enabled="true">return ${field};</template> + +<template name="setterbody" id="net.sourceforge.phpdt.ui.text.codetemplates.setterbody" description="%CodeTemplates.setterstub" context="php_setterbody_context" enabled="true">${field} = ${param};</template> +--> + +</templates> \ No newline at end of file diff --git a/net.sourceforge.phpeclipse.ui/templates/default-templates-html.properties b/net.sourceforge.phpeclipse.ui/templates/default-templates-html.properties new file mode 100644 index 0000000..b200f2b --- /dev/null +++ b/net.sourceforge.phpeclipse.ui/templates/default-templates-html.properties @@ -0,0 +1,10 @@ +############################################################################### +# Copyright (c) 2000, 2004 IBM Corporation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Common Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/cpl-v10.html +# +# Contributors: +# IBM Corporation - initial API and implementation +############################################################################### diff --git a/net.sourceforge.phpeclipse.ui/templates/default-templates-html.xml b/net.sourceforge.phpeclipse.ui/templates/default-templates-html.xml new file mode 100644 index 0000000..46deae9 --- /dev/null +++ b/net.sourceforge.phpeclipse.ui/templates/default-templates-html.xml @@ -0,0 +1,452 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates> +<template name="for" description="for array" id="net.sourceforge.phpdt.html.for_array" context="javascript" enabled="true" +>for (var ${index} = 0, ${index2} = ${array}.length; ${index} < ${index2}; ${index}++) { + ${line_selection}${cursor} +}</template> + <template name="xml" description="html page with head,title,body" + id="net.sourceforge.phpdt.xml.templates.xml" context="xml" enabled="true" + ><?xml version="1.0" encoding="UTF-8" ?></template> + + <template name="<html" description="html page with head,title,body" + id="net.sourceforge.phpdt.html.html" context="html" enabled="true" + ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Language" content="en" /> + <meta name="GENERATOR" content="PHPEclipse 1.2.0" /> + <title>${title}</title> +</head> +<body> +${cursor} +</body> +</html></template> + <template name="<html" description="xhtml page with doctype, head, title and body" + id="net.sourceforge.phpdt.html.xhtml" context="html" enabled="true" + ><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Language" content="en" /> + <meta name="GENERATOR" content="PHPEclipse 1.2.0" /> + <title>${title}</title> +</head> +<body> +${cursor} +</body> +</html></template> + <template name="<title" description="title" id="net.sourceforge.phpdt.html.title" context="html" enabled="true" + ><title>${title}</title></template> + + <template name="<table" description="3x3 table" id="net.sourceforge.phpdt.html.table" context="html" enabled="true" + ><table> + <tr> + <td>${t00}</td> + <td>${t01}</td> + <td>${t02}</td> + </tr> + <tr> + <td>${t10}</td> + <td>${t11}</td> + <td>${t12}</td> + </tr> + <tr> + <td>${t20}</td> + <td>${t21}</td> + <td>${t22}</td> + </tr> +</table> +${cursor}</template> + <template name="<table" description="3x3 table with header" id="net.sourceforge.phpdt.html.table_header" context="html" enabled="true" + ><table> + <tr> + <th>${header0}</th> + <th>${header1}</th> + <th>${header2}</th> + </tr> + <tr> + <td>${t00}</td> + <td>${t01}</td> + <td>${t02}</td> + </tr> + <tr> + <td>${t10}</td> + <td>${t11}</td> + <td>${t12}</td> + </tr> + <tr> + <td>${t20}</td> + <td>${t21}</td> + <td>${t22}</td> + </tr> +</table> +${cursor}</template> + + <template name="<a" description="hyperlink (href)" id="net.sourceforge.phpdt.html.a" context="html" enabled="true" + ><a href="${link}">${description}</a>${cursor}</template> + <template name="<a" description="hyperlink image" id="net.sourceforge.phpdt.html.a_image" context="html" enabled="true" + ><a href="${link}"><img src="${image}" alt="${alt}" /></a>${cursor}</template> + <template name="<p" description="paragraph" id="net.sourceforge.phpdt.html.p" context="html" enabled="true" + ><p>${cursor}</p></template> + <template name="<h1" description="heading 1" id="net.sourceforge.phpdt.html.h1" context="html" enabled="true" + ><h1>${cursor}</h1></template> + <template name="<h2" description="heading 2" id="net.sourceforge.phpdt.html.h2" context="html" enabled="true" + ><h2>${cursor}</h2></template> + <template name="<h3" description="heading 3" id="net.sourceforge.phpdt.html.h3" context="html" enabled="true" + ><h3>${cursor}</h3></template> + <template name="<h4" description="heading 4" id="net.sourceforge.phpdt.html.h4" context="html" enabled="true" + ><h4>${cursor}</h4></template> + <template name="<h5" description="heading 5" id="net.sourceforge.phpdt.html.h5" context="html" enabled="true" + ><h5>${cursor}</h5></template> + <template name="<h6" description="heading 6" id="net.sourceforge.phpdt.html.h6" context="html" enabled="true" + ><h6>${cursor}</h6></template> + <template name="<address" description="address" id="net.sourceforge.phpdt.html.address" context="html" enabled="true" + ><address>${cursor}</address></template> + <template name="<pre" description="preformat" id="net.sourceforge.phpdt.html.pre" context="html" enabled="true" + ><pre>${cursor}</pre></template> + <template name="<code" description="code block" id="net.sourceforge.phpdt.html.code" context="html" enabled="true" + ><code>${cursor}</code></template> + <template name="<blockquote" description="blockquote" id="net.sourceforge.phpdt.html.blockquote" context="html" enabled="true" + ><blockquote> + <p>${cursor}</p> +</blockquote></template> + <template name="<hr" description="horizontal line" id="net.sourceforge.phpdt.html.hr" context="html" enabled="true" + ><hr /></template> + <template name="<ul" description="bulleted list" id="net.sourceforge.phpdt.html.ul" context="html" enabled="true" + ><ul> + <li>${item1}</li> + <li>${item2}</li> +</ul></template> + <template name="<ol" description="numbered list" id="net.sourceforge.phpdt.html.ol" context="html" enabled="true" + ><ol> + <li>${item1}</li> + <li>${item2}</li> +</ol></template> + <template name="<dl" description="term list" id="net.sourceforge.phpdt.html.dl_term" context="html" enabled="true" + ><dl> + <dt>${term1}</dt> + <dt>${term2}</dt> +</dl></template> + <template name="<dl" description="definition list" id="net.sourceforge.phpdt.html.dl_list" context="html" enabled="true" + ><dl> + <dt>${term1}</dt> + <dd>${definition1}</dd> + <dt>${term2}</dt> + <dd>${definition2}</dd> +</dl></template> + <template name="<form" description="form get" id="net.sourceforge.phpdt.html.form_get" context="html" enabled="true" + ><form action="${link}" method="get"> + ${cursor} +</form></template> + <template name="<form" description="form post" id="net.sourceforge.phpdt.html.form_post1" context="html" enabled="true" + ><form action="${link}" method="post"> + ${cursor} +</form></template> + <template name="<form" description="form post with enctype" id="net.sourceforge.phpdt.html.form_post2" context="html" enabled="true" + ><form action="${link}" method="post" enctype="application/x-www-form-urlencoded"> + ${cursor} +</form></template> + <template name="<form" description="form upload file" id="net.sourceforge.phpdt.html.form_upload" context="html" enabled="true" + ><form action="${link}" method="post" enctype="multipart/form-data"> + <label for="${name}">${text}</label> + <input type="file" id="${name}" name="${name}" size="50" maxlength="100000" accept="text/*" /> + ${cursor} + <input type="submit" value="${value}" /> +</form></template> + <template name="<input" description="input type=text (form)" id="net.sourceforge.phpdt.html.form_input_text" context="html" enabled="true" + ><input type="text" class="text" name="${name}" value="${value}" size="${size}" maxlength="${size}" /></template> + <template name="<input" description="input type=text (form) with id" id="net.sourceforge.phpdt.html.form_input_text2" context="html" enabled="true" + ><input type="text" class="text" name="${name}" id="${name}" value="${value}" size="${size}" maxlength="${size}" /></template> + <template name="<input" description="input type=password (form)" id="net.sourceforge.phpdt.html.form_input_password" context="html" enabled="true" + ><input type="password" class="password" name="${name}" size="${size}" maxlength="${size}" /></template> + <template name="<input" description="input type=password (form) with id" id="net.sourceforge.phpdt.html.form_input_password2" context="html" enabled="true" + ><input type="password" class="password" name="${name}" id="${name}" size="${size}" maxlength="${size}" /></template> + <template name="<input" description="input type=radio (form)" id="net.sourceforge.phpdt.html.form_input_radio" context="html" enabled="true" + ><input type="radio" class="radio" name="${name}" value="${value}" /></template> + <template name="<input" description="input type=checkbox (form)" id="net.sourceforge.phpdt.html.form_input_checkbox" context="html" enabled="true" + ><input type="checkbox" class="checkbox" name="${name}" value="${value}" /></template> + <template name="<input" description="input type=button (form button)" id="net.sourceforge.phpdt.html.form_input_button" context="html" enabled="true" + ><input type="button" class="button" name="${name}" value="${value}" /></template> + <template name="<input" description="input type=submit (form button)" id="net.sourceforge.phpdt.html.form_input_submit" context="html" enabled="true" + ><input type="submit" class="submit button" name="${name}" value="${value}" /></template> + <template name="<input" description="input type=reset (form button)" id="net.sourceforge.phpdt.html.form_input_reset" context="html" enabled="true" + ><input type="reset" class="reset button" name="${name}" value="${value}" /></template> + <template name="<textarea" description="textarea (form)" id="net.sourceforge.phpdt.html.form_input_textarea" context="html" enabled="true" + ><textarea name="${name}" rows="10" cols="50" wrap="off">${text}</textarea></template> + <template name="<select" description="select option (form)" id="net.sourceforge.phpdt.html.form_input_select" context="html" enabled="true" + ><select name="${name}" size="3"> + <option value="${value1}">${option1}</option> + <option value="${value2}">${option2}</option> + <option value="${value3}">${option3}</option> +</select></template> + <template name="<xml" description="xml version=1.0" id="net.sourceforge.phpdt.html.xml" context="html" enabled="true" + ><?xml version="1.0"?></template> + <template name="<xml" description="xml-stylesheet type=text/xsl" id="net.sourceforge.phpdt.html.xml_stylesheet" context="html" enabled="true" + ><?xml-stylesheet type="text/xsl" href="${url}"?></template> + <template name="<script" description="JavaScript inline" id="net.sourceforge.phpdt.html.javascript_inline" context="html" enabled="true" + ><script type="text/javascript"> +${cursor} +</script></template> + <template name="<script" description="JavaScript file" id="net.sourceforge.phpdt.html.javascript_file" context="html" enabled="true" + ><script type="text/javascript" src="${jsfile}.js"></script>${cursor}</template> + <template name="<style" description="style text/css" id="net.sourceforge.phpdt.html.css" context="html" enabled="true" + ><style type="text/css"> +${cursor} +</style></template> + <template name="&quot" description="quot" id="net.sourceforge.phpdt.html.quot" context="html" enabled="true">&quot;</template> + <template name="&amp" description="ampersand" id="net.sourceforge.phpdt.html.ampersand" context="html" enabled="true">&amp;</template> + <template name="&lt" description="less than" id="net.sourceforge.phpdt.html.less_than" context="html" enabled="true">&lt;</template> + <template name="&gt" description="greater than" id="net.sourceforge.phpdt.html.greater" context="html" enabled="true">&gt;</template> + + <template name="&nbsp" description="no-break space" id="net.sourceforge.phpdt.html." context="html" enabled="true">&nbsp;</template> + <template name="&iexcl" description="iexcl" id="net.sourceforge.phpdt.html." context="html" enabled="true">&iexcl;</template> + <template name="&cent" description="cent" id="net.sourceforge.phpdt.html." context="html" enabled="true">&cent;</template> + <template name="&pound" description="pound" id="net.sourceforge.phpdt.html." context="html" enabled="true">&pound;</template> + <template name="&curren" description="curren" id="net.sourceforge.phpdt.html." context="html" enabled="true">&curren;</template> + <template name="&yen" description="yen" id="net.sourceforge.phpdt.html." context="html" enabled="true">&yen;</template> + <template name="&brvbar" description="brvbar" id="net.sourceforge.phpdt.html." context="html" enabled="true">&brvbar;</template> + <template name="&brkbar" description="brkbar" id="net.sourceforge.phpdt.html." context="html" enabled="true">&brkbar;</template> + <template name="&sect" description="sect" id="net.sourceforge.phpdt.html." context="html" enabled="true">&sect;</template> + <template name="&uml" description="uml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&uml;</template> + <template name="&die" description="die" id="net.sourceforge.phpdt.html." context="html" enabled="true">&die;</template> + <template name="&copy" description="copy" id="net.sourceforge.phpdt.html." context="html" enabled="true">&copy;</template> + <template name="&ordf" description="ordf" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ordf;</template> + <template name="&laquo" description="laquo" id="net.sourceforge.phpdt.html." context="html" enabled="true">&laquo;</template> + <template name="&not" description="not" id="net.sourceforge.phpdt.html." context="html" enabled="true">&not;</template> + <template name="&shy" description="shy" id="net.sourceforge.phpdt.html." context="html" enabled="true">&shy;</template> + <template name="&reg" description="reg" id="net.sourceforge.phpdt.html." context="html" enabled="true">&reg;</template> + <template name="&macr" description="macr" id="net.sourceforge.phpdt.html." context="html" enabled="true">&macr;</template> + <template name="&hibar" description="hibar" id="net.sourceforge.phpdt.html." context="html" enabled="true">&hibar;</template> + <template name="&deg" description="deg" id="net.sourceforge.phpdt.html." context="html" enabled="true">&deg;</template> + <template name="&plusmn" description="plusmn" id="net.sourceforge.phpdt.html." context="html" enabled="true">&plusmn;</template> + <template name="&sup2" description="sup2" id="net.sourceforge.phpdt.html." context="html" enabled="true">&sup2;</template> + <template name="&sup3" description="sup3" id="net.sourceforge.phpdt.html." context="html" enabled="true">&sup3;</template> + <template name="&acute" description="acute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&acute;</template> + <template name="&micro" description="micro" id="net.sourceforge.phpdt.html." context="html" enabled="true">&micro;</template> + <template name="&para" description="para" id="net.sourceforge.phpdt.html." context="html" enabled="true">&para;</template> + <template name="&middot" description="middot" id="net.sourceforge.phpdt.html." context="html" enabled="true">&middot;</template> + <template name="&cedil" description="cedil" id="net.sourceforge.phpdt.html." context="html" enabled="true">&cedil;</template> + <template name="&sup1" description="sup1" id="net.sourceforge.phpdt.html." context="html" enabled="true">&sup1;</template> + <template name="&ordm" description="ordm" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ordm;</template> + <template name="&raquo" description="raquo" id="net.sourceforge.phpdt.html." context="html" enabled="true">&raquo;</template> + <template name="&frac14" description="frac14" id="net.sourceforge.phpdt.html." context="html" enabled="true">&frac14;</template> + <template name="&frac12" description="frac12" id="net.sourceforge.phpdt.html." context="html" enabled="true">&frac12;</template> + <template name="&frac34" description="frac34" id="net.sourceforge.phpdt.html." context="html" enabled="true">&frac34;</template> + <template name="&iquest" description="iquest" id="net.sourceforge.phpdt.html." context="html" enabled="true">&iquest;</template> + <template name="&Agrave" description="Agrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Agrave;</template> + <template name="&Aacute" description="Aacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Aacute;</template> + <template name="&Acirc" description="Acirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Acirc;</template> + <template name="&Atilde" description="Atilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Atilde;</template> + <template name="&Auml" description="Auml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Auml;</template> + <template name="&Aring" description="Aring" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Aring;</template> + <template name="&AElig" description="AElig" id="net.sourceforge.phpdt.html." context="html" enabled="true">&AElig;</template> + <template name="&Ccedil" description="Ccedil" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ccedil;</template> + <template name="&Egrave" description="Egrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Egrave;</template> + <template name="&Eacute" description="Eacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Eacute;</template> + <template name="&Ecirc" description="Ecirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ecirc;</template> + <template name="&Euml" description="Euml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Euml;</template> + <template name="&lgrave" description="lgrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&lgrave;</template> + <template name="&lacute" description="lacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&lacute;</template> + <template name="&lcirc" description="lcirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&lcirc;</template> + <template name="&luml" description="luml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&luml;</template> + <template name="&ETH" description="ETH" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ETH;</template> + <template name="&Ntilde" description="Ntilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ntilde;</template> + <template name="&Ograve" description="Ograve" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ograve;</template> + <template name="&Oacute" description="Oacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Oacute;</template> + <template name="&Ocirc" description="Ocirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ocirc;</template> + <template name="&Otilde" description="Otilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Otilde;</template> + <template name="&Ouml" description="Ouml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ouml;</template> + <template name="&times" description="times" id="net.sourceforge.phpdt.html." context="html" enabled="true">&times;</template> + <template name="&Oslash" description="Oslash" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Oslash;</template> + <template name="&Ugrave" description="Ugrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ugrave;</template> + <template name="&Uacute" description="Uacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Uacute;</template> + <template name="&Ucirc" description="Ucirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ucirc;</template> + <template name="&Uuml" description="Uuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Uuml;</template> + <template name="&Yacute" description="Yacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Yacute;</template> + <template name="&THORN" description="THORN" id="net.sourceforge.phpdt.html." context="html" enabled="true">&THORN;</template> + <template name="&szlig" description="szlig" id="net.sourceforge.phpdt.html." context="html" enabled="true">&szlig;</template> + <template name="&agrave" description="agrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&agrave;</template> + <template name="&aacute" description="aacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&aacute;</template> + <template name="&acirc" description="acirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&acirc;</template> + <template name="&atilde" description="atilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&atilde;</template> + <template name="&auml" description="auml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&auml;</template> + <template name="&aring" description="aring" id="net.sourceforge.phpdt.html." context="html" enabled="true">&aring;</template> + <template name="&aelig" description="aelig" id="net.sourceforge.phpdt.html." context="html" enabled="true">&aelig;</template> + <template name="&ccedil" description="ccedil" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ccedil;</template> + <template name="&egrave" description="egrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&egrave;</template> + <template name="&eacute" description="eacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&eacute;</template> + <template name="&ecirc" description="ecirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ecirc;</template> + <template name="&euml" description="euml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&euml;</template> + <template name="&igrave" description="igrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&igrave;</template> + <template name="&iacute" description="iacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&iacute;</template> + <template name="&icirc" description="icirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&icirc;</template> + <template name="&iuml" description="iuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&iuml;</template> + <template name="&eth" description="eth" id="net.sourceforge.phpdt.html." context="html" enabled="true">&eth;</template> + <template name="&ntilde" description="ntilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ntilde;</template> + <template name="&ograve" description="ograve" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ograve;</template> + <template name="&oacute" description="oacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&oacute;</template> + <template name="&ocirc" description="ocirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ocirc;</template> + <template name="&otilde" description="otilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&otilde;</template> + <template name="&ouml" description="ouml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ouml;</template> + <template name="&divide" description="divide" id="net.sourceforge.phpdt.html." context="html" enabled="true">&divide;</template> + <template name="&oslash" description="oslash" id="net.sourceforge.phpdt.html." context="html" enabled="true">&oslash;</template> + <template name="&ugrave" description="ugrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ugrave;</template> + <template name="&uacute" description="uacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&uacute;</template> + <template name="&ucirc" description="ucirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ucirc;</template> + <template name="&uuml" description="uuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&uuml;</template> + <template name="&yacute" description="yacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&yacute;</template> + <template name="&thorn" description="thorn" id="net.sourceforge.phpdt.html." context="html" enabled="true">&thorn;</template> + <template name="&yuml" description="yuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&yuml;</template> + + <template name="#00ffff" description="Aqua (Color Code)" id="net.sourceforge.phpdt.html.aqua" context="html" enabled="true">#00ffff</template> + <template name="#000000" description="Black (Color Code)" id="net.sourceforge.phpdt.html.black" context="html" enabled="true">#000000</template> + <template name="#0000ff" description="Blue (Color Code)" id="net.sourceforge.phpdt.html.blue" context="html" enabled="true">#0000ff</template> + <template name="#a52a2a" description="Brown (Color Code)" id="net.sourceforge.phpdt.html.brown" context="html" enabled="true">#a52a2a</template> + <template name="#00ffff" description="Cyan (Color Code)" id="net.sourceforge.phpdt.html.cyan" context="html" enabled="true">#00ffff</template> + <template name="#ff00ff" description="Fuchsia (Color Code)" id="net.sourceforge.phpdt.html.fuchsia" context="html" enabled="true">#ff00ff</template> + <template name="#ffd700" description="Gold (Color Code)" id="net.sourceforge.phpdt.html.gold" context="html" enabled="true">#ffd700</template> + <template name="#808080" description="Gray (Color Code)" id="net.sourceforge.phpdt.html.gray" context="html" enabled="true">#808080</template> + <template name="#008000" description="Green (Color Code)" id="net.sourceforge.phpdt.html.green" context="html" enabled="true">#008000</template> + <template name="#00ff00" description="Lime (Color Code)" id="net.sourceforge.phpdt.html.lime" context="html" enabled="true">#00ff00</template> + <template name="#ff00ff" description="Magenta (Color Code)" id="net.sourceforge.phpdt.html.magenta" context="html" enabled="true">#ff00ff</template> + <template name="#800000" description="Maroon (Color Code)" id="net.sourceforge.phpdt.html.maroon" context="html" enabled="true">#800000</template> + <template name="#000080" description="Navy (Color Code)" id="net.sourceforge.phpdt.html.navy" context="html" enabled="true">#000080</template> + <template name="#808000" description="Olive (Color Code)" id="net.sourceforge.phpdt.html.olive" context="html" enabled="true">#808000</template> + <template name="#ffa500" description="Orange (Color Code)" id="net.sourceforge.phpdt.html.orange" context="html" enabled="true">#ffa500</template> + <template name="#ffc0cb" description="Pink (Color Code)" id="net.sourceforge.phpdt.html.pink" context="html" enabled="true">#ffc0cb</template> + <template name="#800080" description="Purple (Color Code)" id="net.sourceforge.phpdt.html.purple" context="html" enabled="true">#800080</template> + <template name="#ff0000" description="Red (Color Code)" id="net.sourceforge.phpdt.html.red" context="html" enabled="true">#ff0000</template> + <template name="#c0c0c0" description="Silver (Color Code)" id="net.sourceforge.phpdt.html.silver" context="html" enabled="true">#c0c0c0</template> + <template name="#008080" description="Teal (Color Code)" id="net.sourceforge.phpdt.html.teal" context="html" enabled="true">#008080</template> + <template name="#ffffff" description="White (Color Code)" id="net.sourceforge.phpdt.html.white" context="html" enabled="true">#ffffff</template> + <template name="#ffff00" description="Yellow (Color Code)" id="net.sourceforge.phpdt.html.yellow" context="html" enabled="true">#ffff00</template> + + <template name="Aqua" description="Aqua (Color Code)" id="net.sourceforge.phpdt.html.ccaqua" context="html" enabled="true">#00ffff</template> + <template name="Black" description="Black (Color Code)" id="net.sourceforge.phpdt.html.ccblack" context="html" enabled="true">#000000</template> + <template name="Blue" description="Blue (Color Code)" id="net.sourceforge.phpdt.html.ccblue" context="html" enabled="true">#0000ff</template> + <template name="Brown" description="Brown (Color Code)" id="net.sourceforge.phpdt.html.ccbrown" context="html" enabled="true">#a52a2a</template> + <template name="Cyan" description="Cyan (Color Code)" id="net.sourceforge.phpdt.html.cccyan" context="html" enabled="true">#00ffff</template> + <template name="Fuchsia" description="Fuchsia (Color Code)" id="net.sourceforge.phpdt.html.ccfuchsia" context="html" enabled="true">#ff00ff</template> + <template name="Gold" description="Gold (Color Code)" id="net.sourceforge.phpdt.html.ccgold" context="html" enabled="true">#ffd700</template> + <template name="Gray" description="Gray (Color Code)" id="net.sourceforge.phpdt.html.ccgray" context="html" enabled="true">#808080</template> + <template name="Green" description="Green (Color Code)" id="net.sourceforge.phpdt.html.ccgreen" context="html" enabled="true">#008000</template> + <template name="Lime" description="Lime (Color Code)" id="net.sourceforge.phpdt.html.cclime" context="html" enabled="true">#00ff00</template> + <template name="Magenta" description="Magenta (Color Code)" id="net.sourceforge.phpdt.html.ccmagenta" context="html" enabled="true">#ff00ff</template> + <template name="Maroon" description="Maroon (Color Code)" id="net.sourceforge.phpdt.html.ccmaroon" context="html" enabled="true">#800000</template> + <template name="Navy" description="Mavy (Color Code)" id="net.sourceforge.phpdt.html.ccnavy" context="html" enabled="true">#000080</template> + <template name="Olive" description="Olive (Color Code)" id="net.sourceforge.phpdt.html.ccolive" context="html" enabled="true">#808000</template> + <template name="Orange" description="Orange (Color Code)" id="net.sourceforge.phpdt.html.ccorange" context="html" enabled="true">#ffa500</template> + <template name="Pink" description="Pink (Color Code)" id="net.sourceforge.phpdt.html.ccpink" context="html" enabled="true">#ffc0cb</template> + <template name="Purple" description="Purple (Color Code)" id="net.sourceforge.phpdt.html.ccpurple" context="html" enabled="true">#800080</template> + <template name="Red" description="Red (Color Code)" id="net.sourceforge.phpdt.html.ccred" context="html" enabled="true">#ff0000</template> + <template name="Silver" description="Silver (Color Code)" id="net.sourceforge.phpdt.html.ccsilver" context="html" enabled="true">#c0c0c0</template> + <template name="Teal" description="Teal (Color Code)" id="net.sourceforge.phpdt.html.ccteal" context="html" enabled="true">#008080</template> + <template name="White" description="White (Color Code)" id="net.sourceforge.phpdt.html.ccwhite" context="html" enabled="true">#ffffff</template> + <template name="Yellow" description="Yellow (Color Code)" id="net.sourceforge.phpdt.html.ccyellow" context="html" enabled="true">#ffff00</template> + <template name="<br>" description="<br>" id="net.sourceforge.phpdt.html.br" context="html" enabled="true"><br />${cursor}</template> + <template name="<div>" description="div block with id" id="net.sourceforge.phpdt.html.div" context="html" enabled="true"><div id="${id}">${cursor}</div></template> + <template name="<strong>" description="<strong>" id="net.sourceforge.phpdt.html.strong" context="html" enabled="true"><strong>${cursor}</strong></template> + +<!-- Smarty templates --> + + <template name="{" description="{* *} (Smarty comment)" id="net.sourceforge.phpdt.html.smarty_comment" context="html" enabled="true">{* ${cursor} *}</template> + <template name="{assign" description="{assign var= value= } (Smarty)" id="net.sourceforge.phpdt.html.smarty_assign" context="html" enabled="true">{assign var="${name}" value="${value}"}</template> + <template name="{capture" description="{capture }{/capture} (Smarty)" id="net.sourceforge.phpdt.html.smarty_capture" context="html" enabled="true">{capture name=${name}} +${cursor} +{/capture}</template> +<template name="{config_load" description="{config_load} (Smarty)" id="net.sourceforge.phpdt.html.smarty_config_load1" context="html" enabled="true">{config_load file="${file}"}</template> +<template name="{config_load" description="{config_load} with section (Smarty)" id="net.sourceforge.phpdt.html.smarty_config_load2" context="html" enabled="true">{config_load file="${file}" section="${section}"}</template> +<template name="{counter" description="{counter start= skip= print= } (Smarty)" id="net.sourceforge.phpdt.html.smarty_counter1" context="html" enabled="true">{counter start=${start} skip=${skip} print=false}</template> +<template name="{counter" description="{counter} (Smarty)" id="net.sourceforge.phpdt.html.smarty_counter2" context="html" enabled="true">{counter}</template><template name="{cycle" description="{cycle values= } (Smarty)" id="net.sourceforge.phpdt.html." context="html" enabled="true">{cycle values="${values}"}</template> +<template name="{eval" description="{eval var=#conf#} (Smarty)" id="net.sourceforge.phpdt.html.smarty_eval1" context="html" enabled="true">{eval var=#${conf}#}</template> +<template name="{eval" description="{eval var=$var} (smarty)" id="net.sourceforge.phpdt.html.smarty_eval2" context="html" enabled="true">{eval var=$$${var}}</template> +<template name="{fetch" description="{fetch file=} (Smarty)" id="net.sourceforge.phpdt.html.smarty_fetch" context="html" enabled="true">{fetch file="${file}"}</template> +<template name="{foreach" description="{foreach}{/foreach} (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach1" context="html" enabled="true">{foreach from=$$${from} item=${item}} +${cursor} +{/foreach}</template> +<template name="{foreach" description="{foreach}{/foreach} with key (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach2" context="html" enabled="true">{foreach from=$$${from} item=${item} key=${key}} +${cursor} +{/foreach}</template> +<template name="{foreach" description="{foreach}{/foreach} with name (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach3" context="html" enabled="true">{foreach from=$$${from} item=${item} name=${name}} +${cursor} +{/foreach}</template> +<template name="{foreach" description="{foreach}{foreachelse}{/foreach} (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach4" context="html" enabled="true">{foreach from=$$${from} item=${item}} +${cursor} +{foreachelse} +{/foreach}</template> +<template name="{foreach" description="{foreach}{foreachelse}{/foreach} with key (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach5" context="html" enabled="true">{foreach from=$$${from} item=${item} key=${key}} +${cursor} +{foreachelse} +{/foreach}</template> +<template name="{foreach" description="{foreach}{foreachelse}{/foreach} with name (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach6" context="html" enabled="true">{foreach from=$$${from} item=${item} name=${name}} +${cursor} +{foreachelse} +{/foreach}</template> +<template name="{if" description="{if}{/if} (Smarty)" id="net.sourceforge.phpdt.html.smarty_if1" context="html" enabled="true">{if $$${var}}${cursor}{/if}</template><template name="{if" description="{if}{elseif}{/if} (Smarty)" id="net.sourceforge.phpdt.html." context="html" enabled="true">{if $$${var}} +${cursor} +{elseif $$${var2}} + +{/if}</template><template name="{if" description="{if}{elseif}{else}{/if} (Smarty)" id="net.sourceforge.phpdt.html.smarty_if2" context="html" enabled="true">{if $$${var}} +${cursor} +{elseif $$${var2}} + +{else} + +{/if}</template> +<template name="{if" description="{if}{else}{/if} (Smarty)" id="net.sourceforge.phpdt.html.smarty_if3" context="html" enabled="true">{if $$${var}} +${cursor} +{else} + +{/if}</template> +<template name="{include" description="{include file=""} (Smarty)" id="net.sourceforge.phpdt.html.smarty_include1" context="html" enabled="true">{include file="${file}"}</template> +<template name="{include_php" description="{include_php file=""} (Smarty)" id="net.sourceforge.phpdt.html.smarty_include2" context="html" enabled="true">{include_php file="${file}"}</template> +<template name="{ldelim}" description="{ldelim} (Smarty)" id="net.sourceforge.phpdt.html.smarty_ldelim" context="html" enabled="true">{ldelim}</template> +<template name="{literal" description="{literal}{/literal} (Smarty)" id="net.sourceforge.phpdt.html.smarty_literal" context="html" enabled="true">{literal} +${cursor} +{/literal}</template> +<template name="{rdelim}" description="{rdelim} (Smarty)" id="net.sourceforge.phpdt.html.smarty_rdelim" context="html" enabled="true">{rdelim}</template> +<template name="{section" description="{section }{/section} (Smarty)" id="net.sourceforge.phpdt.html.smarty_section1" context="html" enabled="true">{section name=${name} loop=$$${loop}} +${cursor} +{/section}</template> +<template name="{section" description="{section}{sectionelse}{/section} (Smarty)" id="net.sourceforge.phpdt.html.smarty_section2" context="html" enabled="true">{section name=${name} loop=$$${loop}} +${cursor} +{sectionelse} + +{/section}</template> +<template name="{smarty.cookies.var}" description="{$smarty.cookies.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_cookies" context="html" enabled="true">{$$smarty.cookies.${var}}</template> +<template name="{smarty.env.var}" description="{$smarty.env.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_env" context="html" enabled="true">{$$smarty.env.${var}}</template> +<template name="{smarty.get.var}" description="{$smarty.get.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_get" context="html" enabled="true">{$$smarty.get.${var}}</template> +<template name="{smarty.now|date_format}" description="{$smarty.now|date_format} (Smarty)" id="net.sourceforge.phpdt.html.smarty__now1" context="html" enabled="true">{$$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}</template> +<template name="{smarty.now}" description="{$smarty.now} (Smarty)" id="net.sourceforge.phpdt.html.smarty_now2" context="html" enabled="true">{$$smarty.now}</template> +<template name="{smarty.post.var}" description="{$smarty.post.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_post" context="html" enabled="true">{$$smarty.post.${var}}</template> +<template name="{smarty.request.var}" description="{$smarty.request.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_request" context="html" enabled="true">{$$smarty.request.${var}}</template> +<template name="{smarty.server.var}" description="{$smarty.server.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_server" context="html" enabled="true">{$$smarty.server.${var}}</template> +<template name="{strip" description="{strip}{/strip} (Smarty)" id="net.sourceforge.phpdt.html.smarty_strip" context="html" enabled="true">{strip} +${cursor} +{/strip}</template> +<template name="{var|capitalize}" description="{$var|capitalize} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_capitalize" context="html" enabled="true">{$$${var}|capitalize}</template> +<template name="{var|count_characters}" description="{$var|count_characters} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_count_charcters" context="html" enabled="true">{$$${var}|count_characters}</template> +<template name="{var|count_paragraphs}" description="{$var|count_paragraphs} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_count_Paragraphs" context="html" enabled="true">{$$${var}|count_paragraphs}</template> +<template name="{var|count_sentences}" description="{$var|count_sentences} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_count_sentences" context="html" enabled="true">{$$${var}|count_sentences}</template> +<template name="{var|count_words}" description="{$var|count_words} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_count_words" context="html" enabled="true">{$$${var}|count_words}</template> +<template name="{var|date_format}" description="{$var|date_format} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_date_format" context="html" enabled="true">{$$${var}|date_format:"%Y-%m-%d %H:%M:%S"}</template> +<template name="{var|default}" description="{$var|default} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_default" context="html" enabled="true">{$$${var}|default:"${text}"}</template> +<template name="{var|escape:value}" description="{$var|escape:value} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_escape1" context="html" enabled="true">{$$${var}|escape:"${value}"}</template> +<template name="{var|escape}" description="{$var|escape} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_escape2" context="html" enabled="true">{$$${var}|escape}</template> +<template name="{var|indent:nr}" description="{$var|indent:nr} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_indent1" context="html" enabled="true">{$$${var}|indent:${nr}}</template> +<template name="{var|indent}" description="{$var|indent} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_indent2" context="html" enabled="true">{$$${var}|indent}</template> +<template name="{var|lower}" description="{$var|lower} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_lower" context="html" enabled="true">{$$${var}|lower}</template> +<template name="{var|nl2br}" description="{$var|nl2br} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_nl2br" context="html" enabled="true">{$$${var}|nl2br}</template> +<template name="{var|regex_replace}" description="{$var|regex_replace} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_regex_replace" context="html" enabled="true">{$$${var}|regex_replace:"${regex}":"${replace}"}</template> +<template name="{var|replace}" description="{$var|replace} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_replace" context="html" enabled="true">{$$${var}|replace:"${find}":"${replace}"}</template> +<template name="{var|spacify}" description="{$var|spacify} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_spacify" context="html" enabled="true">{$$${var}|spacify}</template> +<template name="{var|string_format}" description="{$var|string_format} (Smarty)" id="net.sourceforge.phpdt.html.smarty_string_format" context="html" enabled="true">{$$${var}|string_format:"%.2f"}</template> +<template name="{var|strip_tags}" description="{$var|strip_tags} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_strip_tags" context="html" enabled="true">{$$${var}|strip_tags}</template> +<template name="{var|strip}" description="{$var|strip} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_strip" context="html" enabled="true">{$$${var}|strip}</template> +<template name="{var|truncate}" description="{$var|truncate} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_truncate" context="html" enabled="true">{$$${var}|truncate:${nr}}</template> +<template name="{var|upper}" description="{$var|upper} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_upper" context="html" enabled="true">{$$${var}|upper}</template> +<template name="{var|wordwrap}" description="{$var|wordwrap} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_wordwrap" context="html" enabled="true">{$$${var}|wordwrap:${nr}:"${sign}"}</template> +</templates> diff --git a/net.sourceforge.phpeclipse.ui/templates/default-templates.properties b/net.sourceforge.phpeclipse.ui/templates/default-templates.properties index b200f2b..c28546d 100644 --- a/net.sourceforge.phpeclipse.ui/templates/default-templates.properties +++ b/net.sourceforge.phpeclipse.ui/templates/default-templates.properties @@ -8,3 +8,140 @@ # Contributors: # IBM Corporation - initial API and implementation ############################################################################### + +Templates.for_array=iterate over array +Templates.for_temp=iterate over array with temporary variable +Templates.for_collection=iterate over collection +Templates.while_enumeration=iterate with enumeration +Templates.while_iterator=iterate with iterator +Templates.do=do while statement +Templates.switch=switch case statement +Templates.if=if statement +Templates.ifelse=if else statement +Templates.elseif=else if block +Templates.else=else block +Templates.try=try catch block +Templates.catch=catch block +Templates.main=main method +Templates.public_method=public method +Templates.protected_method=protected method +Templates.private_method=private method +Templates.private_static_method=private static method +Templates.instanceof=dynamic type test and cast +Templates.cast=dynamic cast +Templates.toarray=convert collection to array +Templates.test=test method +Templates.systrace=print current method to standard out +Templates.sysout=print to standard out +Templates.syserr=print to standard error +Templates.code_tag=<code></code> +Templates.code_tag_null=<code>null</code> +Templates.code_tag_true=<code>true</code> +Templates.code_tag_false=<code>false</code> +Templates.pre_tag=<pre></pre> +Templates.b_tag=<b></b> +Templates.i_tag=<i></i> +Templates.author=author name +Templates.new=create new object +Templates.lazy=lazy creation +Templates.while_condition=while loop with condition +Templates.non-nls= non-externalized string marker +Templates.synchronized= blocksynchronized block +Templates.runnable= runnable + +# Java Only stuff +CompilationUnitContextType.variable.description.file=Filename of compilation unit +CompilationUnitContextType.variable.description.primary.type.name=Filename without extension +CompilationUnitContextType.variable.description.enclosing.method=Enclosing method name +CompilationUnitContextType.variable.description.enclosing.type=Enclosing type name +CompilationUnitContextType.variable.description.enclosing.package=Enclosing package name +CompilationUnitContextType.variable.description.enclosing.project=Enclosing project name +CompilationUnitContextType.variable.description.enclosing.method.arguments=Argument names of enclosing method +CompilationUnitContextType.variable.description.return.type=Enclosing method return type + +JavaContextType.variable.description.array=A proposal for an array +JavaContextType.variable.description.array.type=A proposal for the element type of an array +JavaContextType.variable.description.array.element=A proposal for the element name of an array +JavaContextType.variable.description.index=A proposal for an index (int) +JavaContextType.variable.description.collection=A proposal for a collection (java.util.Collection) +JavaContextType.variable.description.iterator=A proposal for an iterator (java.util.Iterator) +JavaContextType.variable.description.todo=Todo task tag + +JavaContext.error.title=Template Error +JavaContext.error.message=Template file incomplete or has errors. You can load the default templates from the template preference page (Java>Templates). + +CodeTemplateContextType.variable.description.todo=Todo task tag +CodeTemplateContextType.variable.description.packdeclaration=Package declaration of the new type +CodeTemplateContextType.variable.description.typedeclaration=Generated type declaration +CodeTemplateContextType.variable.description.getterfieldname=The name of field to set or get +CodeTemplateContextType.variable.description.getterfieldtype=The type of the field to set or get +CodeTemplateContextType.variable.description.fieldname=The name of field +CodeTemplateContextType.variable.description.fieldtype=The type of the field +CodeTemplateContextType.variable.description.barefieldname=The name of field to set or get without prefix or suffix +CodeTemplateContextType.variable.description.param=The parameter passed into the setter method +CodeTemplateContextType.variable.description.typecomment=Content of code template 'typecomment' +CodeTemplateContextType.variable.description.exceptiontype=The type of the caught exception +CodeTemplateContextType.variable.description.exceptionvar=The variable name of the caught exception +CodeTemplateContextType.variable.description.enclosingtype=The type enclosing this method +CodeTemplateContextType.variable.description.typename=Name of the current type +CodeTemplateContextType.variable.description.enclosingmethod=The enclosing method +CodeTemplateContextType.variable.description.bodystatement=Return statement or super call +CodeTemplateContextType.variable.description.returntype=Return type of the enclosing method +CodeTemplateContextType.variable.description.tags=Generated Javadoc tags (@param, @return...) +CodeTemplateContextType.variable.description.seetag=See tag pointing to the overridden method (@see T#m()) + +CodeTemplateContextType.variable.description.filename=Name of the enclosing compilation unit +CodeTemplateContextType.variable.description.packagename=Name of the enclosing package +CodeTemplateContextType.variable.description.projectname=Name of the enclosing project + +CodeTemplateContextType.validate.unknownvariable=Variable ''{0}'' is unknown. +CodeTemplateContextType.validate.missingvariable=Variable ''{0}'' is required. +CodeTemplateContextType.validate.invalidcomment=Pattern is not a valid Java comment. + + + +CodeTemplates.error.title=Error accessing code templates. + +# strings in default templates +CodeTemplates.constructorcomment=Comment for created constructors +CodeTemplates.typecomment=Comment for created types +CodeTemplates.fieldcomment=Comment for fields +CodeTemplates.nonoverridingcomment=Comment for non-overriding methods +CodeTemplates.overridecomment=Comment for overriding methods +CodeTemplates.gettercomment=Comment for getter method +# ! Do not translate ${bare_field_name} ! +CodeTemplates.gettercomment.returntagcontent=Returns the ${bare_field_name}. +CodeTemplates.settercomment=Comment for setter method +# ! Do not translate ${bare_field_name} ! +CodeTemplates.settercomment.paramtagcontent=The ${bare_field_name} to set. + +CodeTemplates.newfile=Newly created PHP files +CodeTemplates.newhtml=Newly created HTML files +CodeTemplates.catchblock=Code in new catch blocks +CodeTemplates.methodstub=Code in created method stubs +CodeTemplates.constructorstub=Code in created constructor stubs +CodeTemplates.getterstub=Code in created getters +CodeTemplates.setterstub=Code in created setters + +# ! Do not translate @todo ! +CodeTemplates.typecomment.content1=To change the template for this generated type comment go to +CodeTemplates.typecomment.content2=Window - Preferences - Java - Code Style - Code Templates + +# ! Do not translate ${field} ! +CodeTemplates.fieldcomment.content=Comment for <code>${field}</code> + +CodeTemplates.overridecomment.nonjd=(non-Javadoc) + +# ! Do not translate ${date} ! +CodeTemplates.newfile.content1=Created on ${date} +CodeTemplates.newfile.content2=To change the template for this generated file go to +CodeTemplates.newfile.content3=Window - Preferences - PHPeclipse - PHP - Code Templates + +CodeTemplates.newhtml.content1=Created on ${date} +CodeTemplates.newhtml.content2=To change the template for this generated file go to +CodeTemplates.newhtml.content3=Window - Preferences - PHPeclipse - PHP - Code Templates + +CodeTemplates.catchblock.tododesc=Auto-generated catch block +CodeTemplates.methodstub.tododesc=Auto-generated method stub +CodeTemplates.constructorstub.tododesc=Auto-generated constructor stub + diff --git a/net.sourceforge.phpeclipse.ui/templates/default-templates.xml b/net.sourceforge.phpeclipse.ui/templates/default-templates.xml index 46deae9..cdec7e2 100644 --- a/net.sourceforge.phpeclipse.ui/templates/default-templates.xml +++ b/net.sourceforge.phpeclipse.ui/templates/default-templates.xml @@ -1,452 +1,244 @@ <?xml version="1.0" encoding="UTF-8"?> <templates> -<template name="for" description="for array" id="net.sourceforge.phpdt.html.for_array" context="javascript" enabled="true" ->for (var ${index} = 0, ${index2} = ${array}.length; ${index} < ${index2}; ${index}++) { - ${line_selection}${cursor} +<template name="class" description="php4 class template with constructor" id="net.sourceforge.phpdt.php.class1" context="php" enabled="true" +>class ${class_name} { + function ${class_name}() { + ${cursor} + } }</template> - <template name="xml" description="html page with head,title,body" - id="net.sourceforge.phpdt.xml.templates.xml" context="xml" enabled="true" - ><?xml version="1.0" encoding="UTF-8" ?></template> - - <template name="<html" description="html page with head,title,body" - id="net.sourceforge.phpdt.html.html" context="html" enabled="true" - ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" - "http://www.w3.org/TR/html4/loose.dtd"> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta http-equiv="Content-Language" content="en" /> - <meta name="GENERATOR" content="PHPEclipse 1.2.0" /> - <title>${title}</title> -</head> -<body> -${cursor} -</body> -</html></template> - <template name="<html" description="xhtml page with doctype, head, title and body" - id="net.sourceforge.phpdt.html.xhtml" context="html" enabled="true" - ><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta http-equiv="Content-Language" content="en" /> - <meta name="GENERATOR" content="PHPEclipse 1.2.0" /> - <title>${title}</title> -</head> -<body> -${cursor} -</body> -</html></template> - <template name="<title" description="title" id="net.sourceforge.phpdt.html.title" context="html" enabled="true" - ><title>${title}</title></template> - - <template name="<table" description="3x3 table" id="net.sourceforge.phpdt.html.table" context="html" enabled="true" - ><table> - <tr> - <td>${t00}</td> - <td>${t01}</td> - <td>${t02}</td> - </tr> - <tr> - <td>${t10}</td> - <td>${t11}</td> - <td>${t12}</td> - </tr> - <tr> - <td>${t20}</td> - <td>${t21}</td> - <td>${t22}</td> - </tr> -</table> -${cursor}</template> - <template name="<table" description="3x3 table with header" id="net.sourceforge.phpdt.html.table_header" context="html" enabled="true" - ><table> - <tr> - <th>${header0}</th> - <th>${header1}</th> - <th>${header2}</th> - </tr> - <tr> - <td>${t00}</td> - <td>${t01}</td> - <td>${t02}</td> - </tr> - <tr> - <td>${t10}</td> - <td>${t11}</td> - <td>${t12}</td> - </tr> - <tr> - <td>${t20}</td> - <td>${t21}</td> - <td>${t22}</td> - </tr> -</table> -${cursor}</template> - - <template name="<a" description="hyperlink (href)" id="net.sourceforge.phpdt.html.a" context="html" enabled="true" - ><a href="${link}">${description}</a>${cursor}</template> - <template name="<a" description="hyperlink image" id="net.sourceforge.phpdt.html.a_image" context="html" enabled="true" - ><a href="${link}"><img src="${image}" alt="${alt}" /></a>${cursor}</template> - <template name="<p" description="paragraph" id="net.sourceforge.phpdt.html.p" context="html" enabled="true" - ><p>${cursor}</p></template> - <template name="<h1" description="heading 1" id="net.sourceforge.phpdt.html.h1" context="html" enabled="true" - ><h1>${cursor}</h1></template> - <template name="<h2" description="heading 2" id="net.sourceforge.phpdt.html.h2" context="html" enabled="true" - ><h2>${cursor}</h2></template> - <template name="<h3" description="heading 3" id="net.sourceforge.phpdt.html.h3" context="html" enabled="true" - ><h3>${cursor}</h3></template> - <template name="<h4" description="heading 4" id="net.sourceforge.phpdt.html.h4" context="html" enabled="true" - ><h4>${cursor}</h4></template> - <template name="<h5" description="heading 5" id="net.sourceforge.phpdt.html.h5" context="html" enabled="true" - ><h5>${cursor}</h5></template> - <template name="<h6" description="heading 6" id="net.sourceforge.phpdt.html.h6" context="html" enabled="true" - ><h6>${cursor}</h6></template> - <template name="<address" description="address" id="net.sourceforge.phpdt.html.address" context="html" enabled="true" - ><address>${cursor}</address></template> - <template name="<pre" description="preformat" id="net.sourceforge.phpdt.html.pre" context="html" enabled="true" - ><pre>${cursor}</pre></template> - <template name="<code" description="code block" id="net.sourceforge.phpdt.html.code" context="html" enabled="true" - ><code>${cursor}</code></template> - <template name="<blockquote" description="blockquote" id="net.sourceforge.phpdt.html.blockquote" context="html" enabled="true" - ><blockquote> - <p>${cursor}</p> -</blockquote></template> - <template name="<hr" description="horizontal line" id="net.sourceforge.phpdt.html.hr" context="html" enabled="true" - ><hr /></template> - <template name="<ul" description="bulleted list" id="net.sourceforge.phpdt.html.ul" context="html" enabled="true" - ><ul> - <li>${item1}</li> - <li>${item2}</li> -</ul></template> - <template name="<ol" description="numbered list" id="net.sourceforge.phpdt.html.ol" context="html" enabled="true" - ><ol> - <li>${item1}</li> - <li>${item2}</li> -</ol></template> - <template name="<dl" description="term list" id="net.sourceforge.phpdt.html.dl_term" context="html" enabled="true" - ><dl> - <dt>${term1}</dt> - <dt>${term2}</dt> -</dl></template> - <template name="<dl" description="definition list" id="net.sourceforge.phpdt.html.dl_list" context="html" enabled="true" - ><dl> - <dt>${term1}</dt> - <dd>${definition1}</dd> - <dt>${term2}</dt> - <dd>${definition2}</dd> -</dl></template> - <template name="<form" description="form get" id="net.sourceforge.phpdt.html.form_get" context="html" enabled="true" - ><form action="${link}" method="get"> +<template name="class" description="php4 class with attribute" id="net.sourceforge.phpdt.php.class2" context="php" enabled="true" +>class ${class_name} { + var $$${attribute}; + + function ${class_name}() { + ${cursor} + } + + function set_${attribute}( $$${attr} ) { + $$this->${attribute} = $$${attr}; + } + + function get_${attribute}() { + return $$this->${attribute}; + } +}</template> +<template name="class" description="php5 class template with constructor" id="net.sourceforge.phpdt.php.class3" context="php" enabled="true" +>class ${class_name} { + public function __construct() { + ${cursor} + } +}</template> +<template name="class" description="php5 class template with constructor and destructor" id="net.sourceforge.phpdt.php.class4" context="php" enabled="true" +>class ${class_name} { + public function __construct() { + ${cursor} + } + + public function __destruct() { + } +}</template> +<template name="class" description="php5 class with protected attribute" id="net.sourceforge.phpdt.php.class5" context="php" enabled="true" +>class ${class_name} { + protected $$${attribute}; + + public function __construct() { + ${cursor} + } + + public function __destruct() { + } + + public function set${Attribute}( $$${attr} ) { + $$this->${attribute} = $$${attr}; + } + + public function get${Attribute}() { + return $$this->${attribute}; + } +}</template> +<template name="class" description="php5 class with private attribute" id="net.sourceforge.phpdt.php.class6" context="php" enabled="true" +>class ${class_name} { + private $$${attribute}; + + public function __construct() { + ${cursor} + } + + public function __destruct() { + } + + public function set${Attribute}( $$${attr} ) { + $$this->${attribute} = $$${attr}; + } + + public function get${Attribute}() { + return $$this->${attribute}; + } +}</template> +<template name="for" description="iterate over array" id="net.sourceforge.phpdt.php.for1" context="php" enabled="true" +>for ( $$${index} = 0, $$${max_count} = sizeof( $$${array} ); $$${index} < $$${max_count}; $$${index}++ ) { + ${cursor} +}</template> +<template name="for" description="iterate over array w/ temporary variable" id="net.sourceforge.phpdt.php.for2" context="php" enabled="true" +>for ($$${index} = 0, $$${max_count} = sizeof( $$${array} ); $$${index} < $$${max_count}; $$${index}++) { + $$${array_element} = $$${array}[ $$${index} ]; + ${cursor} +}</template> +<template name="foreach" description="iterate over array - value" id="net.sourceforge.phpdt.php.foreach1" context="php" enabled="true" +>foreach ( $$${array} as $$${value} ) { + ${cursor} +}</template> +<template name="foreach" description="iterate over array - key/value" id="net.sourceforge.phpdt.php.foreach2" context="php" enabled="true" +>foreach ( $$${array} as $$${key} => $$${value} ) { + ${cursor} +}</template> +<template name="try-catch" description="try-catch block - default" id="net.sourceforge.phpdt.php.try1" context="php" enabled="true" +>try { + ${try} +}</template> +<template name="try-catch" description="try-catch block - default" id="net.sourceforge.phpdt.php.try1" context="php" enabled="true" +>try { + ${try} +} +catch( Exception $$${e} ) { + ${catch} +}</template> +<template name="try-catch" description="try-catch block - custom Exception" id="net.sourceforge.phpdt.php.try2" context="php" enabled="true" +>try { + ${try} +} +catch( ${Exception} $$${e} ) { + ${catch} +}</template> +<template name="function" description="function template" id="net.sourceforge.phpdt.php.function1" context="php" enabled="true" +>function ${function_name}() { ${cursor} -</form></template> - <template name="<form" description="form post" id="net.sourceforge.phpdt.html.form_post1" context="html" enabled="true" - ><form action="${link}" method="post"> +}</template> +<template name="function" description="function template with return" id="net.sourceforge.phpdt.php.function2" context="php" enabled="true" +>function ${function_name}() { + return ${cursor} ; +}</template> +<template name="function" description="function template with parameter" id="net.sourceforge.phpdt.php.function3" context="php" enabled="true" +>function ${function_name}( $$${param} ) { ${cursor} -</form></template> - <template name="<form" description="form post with enctype" id="net.sourceforge.phpdt.html.form_post2" context="html" enabled="true" - ><form action="${link}" method="post" enctype="application/x-www-form-urlencoded"> +}</template> +<template name="function" description="function template with parameter and return" id="net.sourceforge.phpdt.php.function4" context="php" enabled="true" +>function ${function_name}( $$${param} ) { + return ${cursor} ; +}</template> +<template name="while" description="while iteration" id="net.sourceforge.phpdt.php.while" context="php" enabled="true" +>while ( ${condition} ) { ${cursor} -</form></template> - <template name="<form" description="form upload file" id="net.sourceforge.phpdt.html.form_upload" context="html" enabled="true" - ><form action="${link}" method="post" enctype="multipart/form-data"> - <label for="${name}">${text}</label> - <input type="file" id="${name}" name="${name}" size="50" maxlength="100000" accept="text/*" /> +}</template> +<template name="do" description="do iteration" id="net.sourceforge.phpdt.php.do" context="php" enabled="true" +>do { + ${line_selection} +} while ( ${condition} );</template> +<template name="switch" description="switch case statement" id="net.sourceforge.phpdt.php.switch" context="php" enabled="true" +>switch ( ${key} ) { + case ${value}: + ${cursor} + break; + + default: + break; +}</template> +<template name="if" description="if statement" id="net.sourceforge.phpdt.php.if" context="php" enabled="true" +>if ( ${condition} ) { ${cursor} - <input type="submit" value="${value}" /> -</form></template> - <template name="<input" description="input type=text (form)" id="net.sourceforge.phpdt.html.form_input_text" context="html" enabled="true" - ><input type="text" class="text" name="${name}" value="${value}" size="${size}" maxlength="${size}" /></template> - <template name="<input" description="input type=text (form) with id" id="net.sourceforge.phpdt.html.form_input_text2" context="html" enabled="true" - ><input type="text" class="text" name="${name}" id="${name}" value="${value}" size="${size}" maxlength="${size}" /></template> - <template name="<input" description="input type=password (form)" id="net.sourceforge.phpdt.html.form_input_password" context="html" enabled="true" - ><input type="password" class="password" name="${name}" size="${size}" maxlength="${size}" /></template> - <template name="<input" description="input type=password (form) with id" id="net.sourceforge.phpdt.html.form_input_password2" context="html" enabled="true" - ><input type="password" class="password" name="${name}" id="${name}" size="${size}" maxlength="${size}" /></template> - <template name="<input" description="input type=radio (form)" id="net.sourceforge.phpdt.html.form_input_radio" context="html" enabled="true" - ><input type="radio" class="radio" name="${name}" value="${value}" /></template> - <template name="<input" description="input type=checkbox (form)" id="net.sourceforge.phpdt.html.form_input_checkbox" context="html" enabled="true" - ><input type="checkbox" class="checkbox" name="${name}" value="${value}" /></template> - <template name="<input" description="input type=button (form button)" id="net.sourceforge.phpdt.html.form_input_button" context="html" enabled="true" - ><input type="button" class="button" name="${name}" value="${value}" /></template> - <template name="<input" description="input type=submit (form button)" id="net.sourceforge.phpdt.html.form_input_submit" context="html" enabled="true" - ><input type="submit" class="submit button" name="${name}" value="${value}" /></template> - <template name="<input" description="input type=reset (form button)" id="net.sourceforge.phpdt.html.form_input_reset" context="html" enabled="true" - ><input type="reset" class="reset button" name="${name}" value="${value}" /></template> - <template name="<textarea" description="textarea (form)" id="net.sourceforge.phpdt.html.form_input_textarea" context="html" enabled="true" - ><textarea name="${name}" rows="10" cols="50" wrap="off">${text}</textarea></template> - <template name="<select" description="select option (form)" id="net.sourceforge.phpdt.html.form_input_select" context="html" enabled="true" - ><select name="${name}" size="3"> - <option value="${value1}">${option1}</option> - <option value="${value2}">${option2}</option> - <option value="${value3}">${option3}</option> -</select></template> - <template name="<xml" description="xml version=1.0" id="net.sourceforge.phpdt.html.xml" context="html" enabled="true" - ><?xml version="1.0"?></template> - <template name="<xml" description="xml-stylesheet type=text/xsl" id="net.sourceforge.phpdt.html.xml_stylesheet" context="html" enabled="true" - ><?xml-stylesheet type="text/xsl" href="${url}"?></template> - <template name="<script" description="JavaScript inline" id="net.sourceforge.phpdt.html.javascript_inline" context="html" enabled="true" - ><script type="text/javascript"> -${cursor} -</script></template> - <template name="<script" description="JavaScript file" id="net.sourceforge.phpdt.html.javascript_file" context="html" enabled="true" - ><script type="text/javascript" src="${jsfile}.js"></script>${cursor}</template> - <template name="<style" description="style text/css" id="net.sourceforge.phpdt.html.css" context="html" enabled="true" - ><style type="text/css"> -${cursor} -</style></template> - <template name="&quot" description="quot" id="net.sourceforge.phpdt.html.quot" context="html" enabled="true">&quot;</template> - <template name="&amp" description="ampersand" id="net.sourceforge.phpdt.html.ampersand" context="html" enabled="true">&amp;</template> - <template name="&lt" description="less than" id="net.sourceforge.phpdt.html.less_than" context="html" enabled="true">&lt;</template> - <template name="&gt" description="greater than" id="net.sourceforge.phpdt.html.greater" context="html" enabled="true">&gt;</template> - - <template name="&nbsp" description="no-break space" id="net.sourceforge.phpdt.html." context="html" enabled="true">&nbsp;</template> - <template name="&iexcl" description="iexcl" id="net.sourceforge.phpdt.html." context="html" enabled="true">&iexcl;</template> - <template name="&cent" description="cent" id="net.sourceforge.phpdt.html." context="html" enabled="true">&cent;</template> - <template name="&pound" description="pound" id="net.sourceforge.phpdt.html." context="html" enabled="true">&pound;</template> - <template name="&curren" description="curren" id="net.sourceforge.phpdt.html." context="html" enabled="true">&curren;</template> - <template name="&yen" description="yen" id="net.sourceforge.phpdt.html." context="html" enabled="true">&yen;</template> - <template name="&brvbar" description="brvbar" id="net.sourceforge.phpdt.html." context="html" enabled="true">&brvbar;</template> - <template name="&brkbar" description="brkbar" id="net.sourceforge.phpdt.html." context="html" enabled="true">&brkbar;</template> - <template name="&sect" description="sect" id="net.sourceforge.phpdt.html." context="html" enabled="true">&sect;</template> - <template name="&uml" description="uml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&uml;</template> - <template name="&die" description="die" id="net.sourceforge.phpdt.html." context="html" enabled="true">&die;</template> - <template name="&copy" description="copy" id="net.sourceforge.phpdt.html." context="html" enabled="true">&copy;</template> - <template name="&ordf" description="ordf" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ordf;</template> - <template name="&laquo" description="laquo" id="net.sourceforge.phpdt.html." context="html" enabled="true">&laquo;</template> - <template name="&not" description="not" id="net.sourceforge.phpdt.html." context="html" enabled="true">&not;</template> - <template name="&shy" description="shy" id="net.sourceforge.phpdt.html." context="html" enabled="true">&shy;</template> - <template name="&reg" description="reg" id="net.sourceforge.phpdt.html." context="html" enabled="true">&reg;</template> - <template name="&macr" description="macr" id="net.sourceforge.phpdt.html." context="html" enabled="true">&macr;</template> - <template name="&hibar" description="hibar" id="net.sourceforge.phpdt.html." context="html" enabled="true">&hibar;</template> - <template name="&deg" description="deg" id="net.sourceforge.phpdt.html." context="html" enabled="true">&deg;</template> - <template name="&plusmn" description="plusmn" id="net.sourceforge.phpdt.html." context="html" enabled="true">&plusmn;</template> - <template name="&sup2" description="sup2" id="net.sourceforge.phpdt.html." context="html" enabled="true">&sup2;</template> - <template name="&sup3" description="sup3" id="net.sourceforge.phpdt.html." context="html" enabled="true">&sup3;</template> - <template name="&acute" description="acute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&acute;</template> - <template name="&micro" description="micro" id="net.sourceforge.phpdt.html." context="html" enabled="true">&micro;</template> - <template name="&para" description="para" id="net.sourceforge.phpdt.html." context="html" enabled="true">&para;</template> - <template name="&middot" description="middot" id="net.sourceforge.phpdt.html." context="html" enabled="true">&middot;</template> - <template name="&cedil" description="cedil" id="net.sourceforge.phpdt.html." context="html" enabled="true">&cedil;</template> - <template name="&sup1" description="sup1" id="net.sourceforge.phpdt.html." context="html" enabled="true">&sup1;</template> - <template name="&ordm" description="ordm" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ordm;</template> - <template name="&raquo" description="raquo" id="net.sourceforge.phpdt.html." context="html" enabled="true">&raquo;</template> - <template name="&frac14" description="frac14" id="net.sourceforge.phpdt.html." context="html" enabled="true">&frac14;</template> - <template name="&frac12" description="frac12" id="net.sourceforge.phpdt.html." context="html" enabled="true">&frac12;</template> - <template name="&frac34" description="frac34" id="net.sourceforge.phpdt.html." context="html" enabled="true">&frac34;</template> - <template name="&iquest" description="iquest" id="net.sourceforge.phpdt.html." context="html" enabled="true">&iquest;</template> - <template name="&Agrave" description="Agrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Agrave;</template> - <template name="&Aacute" description="Aacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Aacute;</template> - <template name="&Acirc" description="Acirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Acirc;</template> - <template name="&Atilde" description="Atilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Atilde;</template> - <template name="&Auml" description="Auml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Auml;</template> - <template name="&Aring" description="Aring" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Aring;</template> - <template name="&AElig" description="AElig" id="net.sourceforge.phpdt.html." context="html" enabled="true">&AElig;</template> - <template name="&Ccedil" description="Ccedil" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ccedil;</template> - <template name="&Egrave" description="Egrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Egrave;</template> - <template name="&Eacute" description="Eacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Eacute;</template> - <template name="&Ecirc" description="Ecirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ecirc;</template> - <template name="&Euml" description="Euml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Euml;</template> - <template name="&lgrave" description="lgrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&lgrave;</template> - <template name="&lacute" description="lacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&lacute;</template> - <template name="&lcirc" description="lcirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&lcirc;</template> - <template name="&luml" description="luml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&luml;</template> - <template name="&ETH" description="ETH" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ETH;</template> - <template name="&Ntilde" description="Ntilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ntilde;</template> - <template name="&Ograve" description="Ograve" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ograve;</template> - <template name="&Oacute" description="Oacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Oacute;</template> - <template name="&Ocirc" description="Ocirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ocirc;</template> - <template name="&Otilde" description="Otilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Otilde;</template> - <template name="&Ouml" description="Ouml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ouml;</template> - <template name="&times" description="times" id="net.sourceforge.phpdt.html." context="html" enabled="true">&times;</template> - <template name="&Oslash" description="Oslash" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Oslash;</template> - <template name="&Ugrave" description="Ugrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ugrave;</template> - <template name="&Uacute" description="Uacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Uacute;</template> - <template name="&Ucirc" description="Ucirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Ucirc;</template> - <template name="&Uuml" description="Uuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Uuml;</template> - <template name="&Yacute" description="Yacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&Yacute;</template> - <template name="&THORN" description="THORN" id="net.sourceforge.phpdt.html." context="html" enabled="true">&THORN;</template> - <template name="&szlig" description="szlig" id="net.sourceforge.phpdt.html." context="html" enabled="true">&szlig;</template> - <template name="&agrave" description="agrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&agrave;</template> - <template name="&aacute" description="aacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&aacute;</template> - <template name="&acirc" description="acirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&acirc;</template> - <template name="&atilde" description="atilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&atilde;</template> - <template name="&auml" description="auml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&auml;</template> - <template name="&aring" description="aring" id="net.sourceforge.phpdt.html." context="html" enabled="true">&aring;</template> - <template name="&aelig" description="aelig" id="net.sourceforge.phpdt.html." context="html" enabled="true">&aelig;</template> - <template name="&ccedil" description="ccedil" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ccedil;</template> - <template name="&egrave" description="egrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&egrave;</template> - <template name="&eacute" description="eacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&eacute;</template> - <template name="&ecirc" description="ecirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ecirc;</template> - <template name="&euml" description="euml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&euml;</template> - <template name="&igrave" description="igrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&igrave;</template> - <template name="&iacute" description="iacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&iacute;</template> - <template name="&icirc" description="icirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&icirc;</template> - <template name="&iuml" description="iuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&iuml;</template> - <template name="&eth" description="eth" id="net.sourceforge.phpdt.html." context="html" enabled="true">&eth;</template> - <template name="&ntilde" description="ntilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ntilde;</template> - <template name="&ograve" description="ograve" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ograve;</template> - <template name="&oacute" description="oacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&oacute;</template> - <template name="&ocirc" description="ocirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ocirc;</template> - <template name="&otilde" description="otilde" id="net.sourceforge.phpdt.html." context="html" enabled="true">&otilde;</template> - <template name="&ouml" description="ouml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ouml;</template> - <template name="&divide" description="divide" id="net.sourceforge.phpdt.html." context="html" enabled="true">&divide;</template> - <template name="&oslash" description="oslash" id="net.sourceforge.phpdt.html." context="html" enabled="true">&oslash;</template> - <template name="&ugrave" description="ugrave" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ugrave;</template> - <template name="&uacute" description="uacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&uacute;</template> - <template name="&ucirc" description="ucirc" id="net.sourceforge.phpdt.html." context="html" enabled="true">&ucirc;</template> - <template name="&uuml" description="uuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&uuml;</template> - <template name="&yacute" description="yacute" id="net.sourceforge.phpdt.html." context="html" enabled="true">&yacute;</template> - <template name="&thorn" description="thorn" id="net.sourceforge.phpdt.html." context="html" enabled="true">&thorn;</template> - <template name="&yuml" description="yuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&yuml;</template> - - <template name="#00ffff" description="Aqua (Color Code)" id="net.sourceforge.phpdt.html.aqua" context="html" enabled="true">#00ffff</template> - <template name="#000000" description="Black (Color Code)" id="net.sourceforge.phpdt.html.black" context="html" enabled="true">#000000</template> - <template name="#0000ff" description="Blue (Color Code)" id="net.sourceforge.phpdt.html.blue" context="html" enabled="true">#0000ff</template> - <template name="#a52a2a" description="Brown (Color Code)" id="net.sourceforge.phpdt.html.brown" context="html" enabled="true">#a52a2a</template> - <template name="#00ffff" description="Cyan (Color Code)" id="net.sourceforge.phpdt.html.cyan" context="html" enabled="true">#00ffff</template> - <template name="#ff00ff" description="Fuchsia (Color Code)" id="net.sourceforge.phpdt.html.fuchsia" context="html" enabled="true">#ff00ff</template> - <template name="#ffd700" description="Gold (Color Code)" id="net.sourceforge.phpdt.html.gold" context="html" enabled="true">#ffd700</template> - <template name="#808080" description="Gray (Color Code)" id="net.sourceforge.phpdt.html.gray" context="html" enabled="true">#808080</template> - <template name="#008000" description="Green (Color Code)" id="net.sourceforge.phpdt.html.green" context="html" enabled="true">#008000</template> - <template name="#00ff00" description="Lime (Color Code)" id="net.sourceforge.phpdt.html.lime" context="html" enabled="true">#00ff00</template> - <template name="#ff00ff" description="Magenta (Color Code)" id="net.sourceforge.phpdt.html.magenta" context="html" enabled="true">#ff00ff</template> - <template name="#800000" description="Maroon (Color Code)" id="net.sourceforge.phpdt.html.maroon" context="html" enabled="true">#800000</template> - <template name="#000080" description="Navy (Color Code)" id="net.sourceforge.phpdt.html.navy" context="html" enabled="true">#000080</template> - <template name="#808000" description="Olive (Color Code)" id="net.sourceforge.phpdt.html.olive" context="html" enabled="true">#808000</template> - <template name="#ffa500" description="Orange (Color Code)" id="net.sourceforge.phpdt.html.orange" context="html" enabled="true">#ffa500</template> - <template name="#ffc0cb" description="Pink (Color Code)" id="net.sourceforge.phpdt.html.pink" context="html" enabled="true">#ffc0cb</template> - <template name="#800080" description="Purple (Color Code)" id="net.sourceforge.phpdt.html.purple" context="html" enabled="true">#800080</template> - <template name="#ff0000" description="Red (Color Code)" id="net.sourceforge.phpdt.html.red" context="html" enabled="true">#ff0000</template> - <template name="#c0c0c0" description="Silver (Color Code)" id="net.sourceforge.phpdt.html.silver" context="html" enabled="true">#c0c0c0</template> - <template name="#008080" description="Teal (Color Code)" id="net.sourceforge.phpdt.html.teal" context="html" enabled="true">#008080</template> - <template name="#ffffff" description="White (Color Code)" id="net.sourceforge.phpdt.html.white" context="html" enabled="true">#ffffff</template> - <template name="#ffff00" description="Yellow (Color Code)" id="net.sourceforge.phpdt.html.yellow" context="html" enabled="true">#ffff00</template> +}</template> +<template name="ifelse" description="if else statement" id="net.sourceforge.phpdt.php.ifelse" context="php" enabled="true" +>if ( ${condition} ) { + ${cursor} +} +else { + +}</template> +<template name="elseif" description="else if block" id="net.sourceforge.phpdt.php.elseif" context="php" enabled="true" +>elseif ( ${condition} ) { + ${cursor} +}</template> +<template name="else" description="else block" id="net.sourceforge.phpdt.php.else" context="php" enabled="true" +>else { + ${cursor} +}</template> +<template name="filecomment" description="file comment used by the class and interface wizards" id="net.sourceforge.phpdt.php.filecomment" context="php" enabled="true" +>/** + * Created on ${date} by ${user} + * + */</template> +<template name="functioncomment" description="function comment" id="net.sourceforge.phpdt.php.functioncomment" context="php" enabled="true" +>/** + * @author ${user} + * + */</template> + <template name="echo" description="echo a string" id="net.sourceforge.phpdt.php.echo" context="php" enabled="true" + >echo '${string}';</template> - <template name="Aqua" description="Aqua (Color Code)" id="net.sourceforge.phpdt.html.ccaqua" context="html" enabled="true">#00ffff</template> - <template name="Black" description="Black (Color Code)" id="net.sourceforge.phpdt.html.ccblack" context="html" enabled="true">#000000</template> - <template name="Blue" description="Blue (Color Code)" id="net.sourceforge.phpdt.html.ccblue" context="html" enabled="true">#0000ff</template> - <template name="Brown" description="Brown (Color Code)" id="net.sourceforge.phpdt.html.ccbrown" context="html" enabled="true">#a52a2a</template> - <template name="Cyan" description="Cyan (Color Code)" id="net.sourceforge.phpdt.html.cccyan" context="html" enabled="true">#00ffff</template> - <template name="Fuchsia" description="Fuchsia (Color Code)" id="net.sourceforge.phpdt.html.ccfuchsia" context="html" enabled="true">#ff00ff</template> - <template name="Gold" description="Gold (Color Code)" id="net.sourceforge.phpdt.html.ccgold" context="html" enabled="true">#ffd700</template> - <template name="Gray" description="Gray (Color Code)" id="net.sourceforge.phpdt.html.ccgray" context="html" enabled="true">#808080</template> - <template name="Green" description="Green (Color Code)" id="net.sourceforge.phpdt.html.ccgreen" context="html" enabled="true">#008000</template> - <template name="Lime" description="Lime (Color Code)" id="net.sourceforge.phpdt.html.cclime" context="html" enabled="true">#00ff00</template> - <template name="Magenta" description="Magenta (Color Code)" id="net.sourceforge.phpdt.html.ccmagenta" context="html" enabled="true">#ff00ff</template> - <template name="Maroon" description="Maroon (Color Code)" id="net.sourceforge.phpdt.html.ccmaroon" context="html" enabled="true">#800000</template> - <template name="Navy" description="Mavy (Color Code)" id="net.sourceforge.phpdt.html.ccnavy" context="html" enabled="true">#000080</template> - <template name="Olive" description="Olive (Color Code)" id="net.sourceforge.phpdt.html.ccolive" context="html" enabled="true">#808000</template> - <template name="Orange" description="Orange (Color Code)" id="net.sourceforge.phpdt.html.ccorange" context="html" enabled="true">#ffa500</template> - <template name="Pink" description="Pink (Color Code)" id="net.sourceforge.phpdt.html.ccpink" context="html" enabled="true">#ffc0cb</template> - <template name="Purple" description="Purple (Color Code)" id="net.sourceforge.phpdt.html.ccpurple" context="html" enabled="true">#800080</template> - <template name="Red" description="Red (Color Code)" id="net.sourceforge.phpdt.html.ccred" context="html" enabled="true">#ff0000</template> - <template name="Silver" description="Silver (Color Code)" id="net.sourceforge.phpdt.html.ccsilver" context="html" enabled="true">#c0c0c0</template> - <template name="Teal" description="Teal (Color Code)" id="net.sourceforge.phpdt.html.ccteal" context="html" enabled="true">#008080</template> - <template name="White" description="White (Color Code)" id="net.sourceforge.phpdt.html.ccwhite" context="html" enabled="true">#ffffff</template> - <template name="Yellow" description="Yellow (Color Code)" id="net.sourceforge.phpdt.html.ccyellow" context="html" enabled="true">#ffff00</template> - <template name="<br>" description="<br>" id="net.sourceforge.phpdt.html.br" context="html" enabled="true"><br />${cursor}</template> - <template name="<div>" description="div block with id" id="net.sourceforge.phpdt.html.div" context="html" enabled="true"><div id="${id}">${cursor}</div></template> - <template name="<strong>" description="<strong>" id="net.sourceforge.phpdt.html.strong" context="html" enabled="true"><strong>${cursor}</strong></template> + <!-- phpdoc --> -<!-- Smarty templates --> + <template description="<code></code>" name="<code>" id="net.sourceforge.phpdt.phpdoc.code1" context="phpdoc" + ><code>${cursor}</code></template> - <template name="{" description="{* *} (Smarty comment)" id="net.sourceforge.phpdt.html.smarty_comment" context="html" enabled="true">{* ${cursor} *}</template> - <template name="{assign" description="{assign var= value= } (Smarty)" id="net.sourceforge.phpdt.html.smarty_assign" context="html" enabled="true">{assign var="${name}" value="${value}"}</template> - <template name="{capture" description="{capture }{/capture} (Smarty)" id="net.sourceforge.phpdt.html.smarty_capture" context="html" enabled="true">{capture name=${name}} -${cursor} -{/capture}</template> -<template name="{config_load" description="{config_load} (Smarty)" id="net.sourceforge.phpdt.html.smarty_config_load1" context="html" enabled="true">{config_load file="${file}"}</template> -<template name="{config_load" description="{config_load} with section (Smarty)" id="net.sourceforge.phpdt.html.smarty_config_load2" context="html" enabled="true">{config_load file="${file}" section="${section}"}</template> -<template name="{counter" description="{counter start= skip= print= } (Smarty)" id="net.sourceforge.phpdt.html.smarty_counter1" context="html" enabled="true">{counter start=${start} skip=${skip} print=false}</template> -<template name="{counter" description="{counter} (Smarty)" id="net.sourceforge.phpdt.html.smarty_counter2" context="html" enabled="true">{counter}</template><template name="{cycle" description="{cycle values= } (Smarty)" id="net.sourceforge.phpdt.html." context="html" enabled="true">{cycle values="${values}"}</template> -<template name="{eval" description="{eval var=#conf#} (Smarty)" id="net.sourceforge.phpdt.html.smarty_eval1" context="html" enabled="true">{eval var=#${conf}#}</template> -<template name="{eval" description="{eval var=$var} (smarty)" id="net.sourceforge.phpdt.html.smarty_eval2" context="html" enabled="true">{eval var=$$${var}}</template> -<template name="{fetch" description="{fetch file=} (Smarty)" id="net.sourceforge.phpdt.html.smarty_fetch" context="html" enabled="true">{fetch file="${file}"}</template> -<template name="{foreach" description="{foreach}{/foreach} (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach1" context="html" enabled="true">{foreach from=$$${from} item=${item}} -${cursor} -{/foreach}</template> -<template name="{foreach" description="{foreach}{/foreach} with key (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach2" context="html" enabled="true">{foreach from=$$${from} item=${item} key=${key}} -${cursor} -{/foreach}</template> -<template name="{foreach" description="{foreach}{/foreach} with name (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach3" context="html" enabled="true">{foreach from=$$${from} item=${item} name=${name}} -${cursor} -{/foreach}</template> -<template name="{foreach" description="{foreach}{foreachelse}{/foreach} (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach4" context="html" enabled="true">{foreach from=$$${from} item=${item}} -${cursor} -{foreachelse} -{/foreach}</template> -<template name="{foreach" description="{foreach}{foreachelse}{/foreach} with key (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach5" context="html" enabled="true">{foreach from=$$${from} item=${item} key=${key}} -${cursor} -{foreachelse} -{/foreach}</template> -<template name="{foreach" description="{foreach}{foreachelse}{/foreach} with name (Smarty)" id="net.sourceforge.phpdt.html.smarty_foreach6" context="html" enabled="true">{foreach from=$$${from} item=${item} name=${name}} -${cursor} -{foreachelse} -{/foreach}</template> -<template name="{if" description="{if}{/if} (Smarty)" id="net.sourceforge.phpdt.html.smarty_if1" context="html" enabled="true">{if $$${var}}${cursor}{/if}</template><template name="{if" description="{if}{elseif}{/if} (Smarty)" id="net.sourceforge.phpdt.html." context="html" enabled="true">{if $$${var}} -${cursor} -{elseif $$${var2}} + <template description="<code>null</code>" name="<code>" id="net.sourceforge.phpdt.phpdoc.code2" context="phpdoc" + ><code>null</code></template> -{/if}</template><template name="{if" description="{if}{elseif}{else}{/if} (Smarty)" id="net.sourceforge.phpdt.html.smarty_if2" context="html" enabled="true">{if $$${var}} -${cursor} -{elseif $$${var2}} + <template description="<pre></pre>" name="<pre>" id="net.sourceforge.phpdt.phpdoc.pre" context="phpdoc" + ><pre>${cursor}</pre></template> -{else} + <template description="<b></b>" name="<b>" id="net.sourceforge.phpdt.phpdoc.b" context="phpdoc" + ><b>${cursor}</b></template> -{/if}</template> -<template name="{if" description="{if}{else}{/if} (Smarty)" id="net.sourceforge.phpdt.html.smarty_if3" context="html" enabled="true">{if $$${var}} -${cursor} -{else} + <template description="<i></i>" name="<i>" id="net.sourceforge.phpdt.phpdoc.i" context="phpdoc" + ><i>${cursor}</i></template> -{/if}</template> -<template name="{include" description="{include file=""} (Smarty)" id="net.sourceforge.phpdt.html.smarty_include1" context="html" enabled="true">{include file="${file}"}</template> -<template name="{include_php" description="{include_php file=""} (Smarty)" id="net.sourceforge.phpdt.html.smarty_include2" context="html" enabled="true">{include_php file="${file}"}</template> -<template name="{ldelim}" description="{ldelim} (Smarty)" id="net.sourceforge.phpdt.html.smarty_ldelim" context="html" enabled="true">{ldelim}</template> -<template name="{literal" description="{literal}{/literal} (Smarty)" id="net.sourceforge.phpdt.html.smarty_literal" context="html" enabled="true">{literal} -${cursor} -{/literal}</template> -<template name="{rdelim}" description="{rdelim} (Smarty)" id="net.sourceforge.phpdt.html.smarty_rdelim" context="html" enabled="true">{rdelim}</template> -<template name="{section" description="{section }{/section} (Smarty)" id="net.sourceforge.phpdt.html.smarty_section1" context="html" enabled="true">{section name=${name} loop=$$${loop}} -${cursor} -{/section}</template> -<template name="{section" description="{section}{sectionelse}{/section} (Smarty)" id="net.sourceforge.phpdt.html.smarty_section2" context="html" enabled="true">{section name=${name} loop=$$${loop}} -${cursor} -{sectionelse} + <template name="@abstract" description="abstract" id="net.sourceforge.phpdt.phpdoc.abstract" context="phpdoc" enabled="true">@abstract</template> + <template name="@access" description="access private" id="net.sourceforge.phpdt.phpdoc.access1" context="phpdoc" enabled="true">@access private</template> + <template name="@access" description="access protected" id="net.sourceforge.phpdt.phpdoc.access2" context="phpdoc" enabled="true">@access protected</template> + <template name="@access" description="access public" id="net.sourceforge.phpdt.phpdoc.access3" context="phpdoc" enabled="true">@access public</template> + <template name="@author" description="author name" id="net.sourceforge.phpdt.phpdoc.author" context="phpdoc">@author ${user}</template> + <template name="@author" description="author name email" id="net.sourceforge.phpdt.phpdoc.author" context="phpdoc" enabled="true">@author ${user} <${email}></template> + <template name="@category" description="category" id="net.sourceforge.phpdt.phpdoc.category" context="phpdoc" enabled="true">@category ${categoryname}</template> + <template name="@copyright" description="copyright" id="net.sourceforge.phpdt.phpdoc.copyright" context="phpdoc" enabled="true">@copyright Copyright &copy; ${year}, ${user}</template> + <template name="@deprecated" description="deprecated version date" id="net.sourceforge.phpdt.phpdoc.deprected" context="phpdoc" enabled="true">@deprecated ${version} - ${date}</template> + <template name="@example" description="example path description" id="net.sourceforge.phpdt.phpdoc.example1" context="phpdoc" enabled="true">@example ${path} ${description}</template> + <template name="@final" description="final" id="net.sourceforge.phpdt.phpdoc.final" context="phpdoc" enabled="true">@final</template> + <template name="@filesource" description="filesource" id="net.sourceforge.phpdt.phpdoc.filesource" context="phpdoc" enabled="true">@filesource</template> + <template name="@global" description="global datatype globalvariable" id="net.sourceforge.phpdt.phpdoc.global1" context="phpdoc" enabled="true">@global ${datatype} $$GLOBALS['${globalvariable}']</template> + <template name="@global" description="global datatype description" id="net.sourceforge.phpdt.phpdoc.global2" context="phpdoc" enabled="true">@global ${datatype} ${description}</template> + <template name="@ignore" description="ignore" id="net.sourceforge.phpdt.phpdoc.ignore" context="phpdoc" enabled="true">@ignore</template> + <template name="@internal " description="internal comment" id="net.sourceforge.phpdt.phpdoc.internal" context="phpdoc" enabled="true">@internal ${comment}</template> + <template name="@license" description="license url name" id="net.sourceforge.phpdt.phpdoc.license" context="phpdoc" enabled="true">@license ${url} ${nameoflicense}</template> + <template name="@link" description="link url description" id="net.sourceforge.phpdt.phpdoc.link1" context="phpdoc" enabled="true">@link ${url} ${description}</template> + <template name="@method" description="method returntype description" id="net.sourceforge.phpdt.phpdoc.method" context="phpdoc" enabled="true">@method ${returntype} ${description}</template> + <template name="@name" description="name globalvariable" id="net.sourceforge.phpdt.phpdoc.name" context="phpdoc" enabled="true">@name ${globalvariable}</template> + <template name="@package" description="package packagename" id="net.sourceforge.phpdt.phpdoc.package" context="phpdoc" enabled="true">@package ${packagename}</template> + <template name="@param" description="param datatype paramname description" id="net.sourceforge.phpdt.phpdoc.param1" context="phpdoc" enabled="true">@param ${datatype} ${paramname} ${description}</template> + <template name="@param" description="param datatype paramname" id="net.sourceforge.phpdt.phpdoc.param2" context="phpdoc" enabled="true">@param ${datatype} ${paramname}</template> + <template name="@param" description="param datatype1|datatype2 paramname description" id="net.sourceforge.phpdt.phpdoc.param3" context="phpdoc" enabled="true">@param ${datatype1}|${datatype2} ${paramname} ${description}</template> + <template name="@property" description="property datatype description" id="net.sourceforge.phpdt.phpdoc.property1" context="phpdoc" enabled="true">@property ${datatype} ${paramname} ${description}</template> + <template name="@property-read" description="property-read datatype description" id="net.sourceforge.phpdt.phpdoc.property2" context="phpdoc" enabled="true">@property-read ${datatype} ${paramname} ${description}</template> + <template name="@property-write" description="property-write datatype description" id="net.sourceforge.phpdt.phpdoc.property3" context="phpdoc" enabled="true">@property-write ${datatype} ${paramname} ${description}</template> + <template name="@return" description="return datatype description" id="net.sourceforge.phpdt.phpdoc.return" context="phpdoc" enabled="true">@return ${datatype} ${description}</template> + <template name="@see" description="see element" id="net.sourceforge.phpdt.phpdoc" context="phpdoc.see" enabled="true">@see ${element}</template><template name="@since" description="since version date" id="net.sourceforge.phpdt.phpdoc" context="phpdoc" enabled="true">@since ${version} - ${date}</template> + <template name="@since" description="since version/info string [unspecified format]" id="net.sourceforge.phpdt.phpdoc.since" context="phpdoc" enabled="true">@since ${version}</template> + <template name="@static" description="static" id="net.sourceforge.phpdt.phpdoc.static" context="phpdoc" enabled="true">@static</template> + <template name="@staticvar" description="staticvar datatype description" id="net.sourceforge.phpdt.phpdoc.staticvar" context="phpdoc" enabled="true">@staticvar ${datatype} ${description}</template> + <template name="@subpackage" description="subpackage subpackagename" id="net.sourceforge.phpdt.phpdoc.subpackage" context="phpdoc" enabled="true">@subpackage ${subpackagename}</template> + <template name="@todo" description="@todo information_string" id="net.sourceforge.phpdt.phpdoc.todo" context="phpdoc" enabled="true">@todo ${information_string}</template> + <template name="@tutorial" description="tutorial string description" id="net.sourceforge.phpdt.phpdoc.tutorial" context="phpdoc" enabled="true">@tutorial ${string} ${description}</template> + <template name="@uses" description="uses element description" id="net.sourceforge.phpdt.phpdoc.uses" context="phpdoc" enabled="true">@uses ${element} ${description}</template> + <template name="@var" description="var datatype description" id="net.sourceforge.phpdt.phpdoc.var" context="phpdoc" enabled="true">@var ${datatype} ${description}</template> + <template name="@version" description="version versionstring" id="net.sourceforge.phpdt.phpdoc.version" context="phpdoc" enabled="true">@version ${versionstring}</template> -{/section}</template> -<template name="{smarty.cookies.var}" description="{$smarty.cookies.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_cookies" context="html" enabled="true">{$$smarty.cookies.${var}}</template> -<template name="{smarty.env.var}" description="{$smarty.env.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_env" context="html" enabled="true">{$$smarty.env.${var}}</template> -<template name="{smarty.get.var}" description="{$smarty.get.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_get" context="html" enabled="true">{$$smarty.get.${var}}</template> -<template name="{smarty.now|date_format}" description="{$smarty.now|date_format} (Smarty)" id="net.sourceforge.phpdt.html.smarty__now1" context="html" enabled="true">{$$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}</template> -<template name="{smarty.now}" description="{$smarty.now} (Smarty)" id="net.sourceforge.phpdt.html.smarty_now2" context="html" enabled="true">{$$smarty.now}</template> -<template name="{smarty.post.var}" description="{$smarty.post.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_post" context="html" enabled="true">{$$smarty.post.${var}}</template> -<template name="{smarty.request.var}" description="{$smarty.request.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_request" context="html" enabled="true">{$$smarty.request.${var}}</template> -<template name="{smarty.server.var}" description="{$smarty.server.var} (Smarty)" id="net.sourceforge.phpdt.html.smarty_server" context="html" enabled="true">{$$smarty.server.${var}}</template> -<template name="{strip" description="{strip}{/strip} (Smarty)" id="net.sourceforge.phpdt.html.smarty_strip" context="html" enabled="true">{strip} -${cursor} -{/strip}</template> -<template name="{var|capitalize}" description="{$var|capitalize} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_capitalize" context="html" enabled="true">{$$${var}|capitalize}</template> -<template name="{var|count_characters}" description="{$var|count_characters} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_count_charcters" context="html" enabled="true">{$$${var}|count_characters}</template> -<template name="{var|count_paragraphs}" description="{$var|count_paragraphs} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_count_Paragraphs" context="html" enabled="true">{$$${var}|count_paragraphs}</template> -<template name="{var|count_sentences}" description="{$var|count_sentences} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_count_sentences" context="html" enabled="true">{$$${var}|count_sentences}</template> -<template name="{var|count_words}" description="{$var|count_words} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_count_words" context="html" enabled="true">{$$${var}|count_words}</template> -<template name="{var|date_format}" description="{$var|date_format} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_date_format" context="html" enabled="true">{$$${var}|date_format:"%Y-%m-%d %H:%M:%S"}</template> -<template name="{var|default}" description="{$var|default} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_default" context="html" enabled="true">{$$${var}|default:"${text}"}</template> -<template name="{var|escape:value}" description="{$var|escape:value} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_escape1" context="html" enabled="true">{$$${var}|escape:"${value}"}</template> -<template name="{var|escape}" description="{$var|escape} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_escape2" context="html" enabled="true">{$$${var}|escape}</template> -<template name="{var|indent:nr}" description="{$var|indent:nr} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_indent1" context="html" enabled="true">{$$${var}|indent:${nr}}</template> -<template name="{var|indent}" description="{$var|indent} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_indent2" context="html" enabled="true">{$$${var}|indent}</template> -<template name="{var|lower}" description="{$var|lower} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_lower" context="html" enabled="true">{$$${var}|lower}</template> -<template name="{var|nl2br}" description="{$var|nl2br} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_nl2br" context="html" enabled="true">{$$${var}|nl2br}</template> -<template name="{var|regex_replace}" description="{$var|regex_replace} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_regex_replace" context="html" enabled="true">{$$${var}|regex_replace:"${regex}":"${replace}"}</template> -<template name="{var|replace}" description="{$var|replace} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_replace" context="html" enabled="true">{$$${var}|replace:"${find}":"${replace}"}</template> -<template name="{var|spacify}" description="{$var|spacify} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_spacify" context="html" enabled="true">{$$${var}|spacify}</template> -<template name="{var|string_format}" description="{$var|string_format} (Smarty)" id="net.sourceforge.phpdt.html.smarty_string_format" context="html" enabled="true">{$$${var}|string_format:"%.2f"}</template> -<template name="{var|strip_tags}" description="{$var|strip_tags} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_strip_tags" context="html" enabled="true">{$$${var}|strip_tags}</template> -<template name="{var|strip}" description="{$var|strip} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_strip" context="html" enabled="true">{$$${var}|strip}</template> -<template name="{var|truncate}" description="{$var|truncate} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_truncate" context="html" enabled="true">{$$${var}|truncate:${nr}}</template> -<template name="{var|upper}" description="{$var|upper} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_upper" context="html" enabled="true">{$$${var}|upper}</template> -<template name="{var|wordwrap}" description="{$var|wordwrap} (Smarty)" id="net.sourceforge.phpdt.html.smarty_var_wordwrap" context="html" enabled="true">{$$${var}|wordwrap:${nr}:"${sign}"}</template> + <template name="@example" description="inline {@example uri_or_path_to_file startline number_of_lines}" id="net.sourceforge.phpdt.phpdoc.example2" context="phpdoc" enabled="true" + >{@example ${uri_or_path_to_file} ${startline} ${number_of_lines}}</template> + <template name="@id" description="inline {@id sectionname}" id="net.sourceforge.phpdt.phpdoc.id" context="phpdoc" enabled="true">{@id ${sectionname}}</template> + <template name="@internal" description="inline {@internal any_text}}" id="net.sourceforge.phpdt.phpdoc.internal2" context="phpdoc" enabled="true">{@internal ${any_text}}}</template> + <template name="@inheritdoc" description="inline {@inheritdoc}" id="net.sourceforge.phpdt.phpdoc.inheritdoc" context="phpdoc" enabled="true">{@inheritdoc}</template> + <template name="@link" description="inline {@link URL description}" id="net.sourceforge.phpdt.phpdoc.link2" context="phpdoc" enabled="true">{@link ${URL} ${description}}</template> + <template name="@link" description="inline {@link element description}" id="net.sourceforge.phpdt.phpdoc.link3" context="phpdoc" enabled="true">{@link ${element} ${description}}</template> + <template name="@source" description="inline {@source}" id="net.sourceforge.phpdt.phpdoc.source1" context="phpdoc" enabled="true">{@source}</template> + <template name="@source" description="inline {@source startline}" id="net.sourceforge.phpdt.phpdoc.source2" context="phpdoc" enabled="true">{@source ${startline}}</template> + <template name="@source" description="inline {@source startline number_of_lines}" id="net.sourceforge.phpdt.phpdoc.source3" context="phpdoc" enabled="true">{@source ${startline} ${number_of_lines}}</template> </templates> -- 1.7.1