Refactory.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / templates / default-templates.xml
index 924ed00..46deae9 100644 (file)
 <?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; ${index} &lt; ${array}.length; ${index}++) {
+<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} &lt; ${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">
-&lt;?xml ?&gt;</template> 
+    id="net.sourceforge.phpdt.xml.templates.xml" context="xml" enabled="true"
+  >&lt;?xml version="1.0" encoding="UTF-8" ?&gt;</template>
 
   <template name="&lt;html" description="html page with head,title,body" 
-  id="net.sourceforge.phpdt.html.html" context="html" enabled="true">
+  id="net.sourceforge.phpdt.html.html" context="html" enabled="true"
+  >&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+       "http://www.w3.org/TR/html4/loose.dtd"&gt;
 &lt;html&gt;
 &lt;head&gt;
-&lt;meta http-equiv="Content-Language" content="en" /&gt;
-&lt;meta name="GENERATOR" content="PHPEclipse 1.0" /&gt;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
-&lt;title&gt;${title}&lt;/title&gt;
+       &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
+       &lt;meta http-equiv="Content-Language" content="en" /&gt;
+       &lt;meta name="GENERATOR" content="PHPEclipse 1.2.0" /&gt;
+       &lt;title&gt;${title}&lt;/title&gt;
 &lt;/head&gt;
-&lt;body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99"&gt;
+&lt;body&gt;
 ${cursor}
 &lt;/body&gt;
-&lt;/html&gt;
-  </template>  
-  <template name="&lt;title" description="title" id="net.sourceforge.phpdt.html.title" context="html" enabled="true">
-  &lt;title&gt;${cursor}&lt;/title&gt;
-  </template> 
+&lt;/html&gt;</template>  
+  <template name="&lt;html" description="xhtml page with doctype, head, title and body" 
+  id="net.sourceforge.phpdt.html.xhtml" context="html" enabled="true"
+  >&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
+       &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en_US&quot; xml:lang=&quot;en_US&quot;&gt;
+&lt;head&gt;
+       &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
+       &lt;meta http-equiv=&quot;Content-Language&quot; content=&quot;en&quot; /&gt;
+       &lt;meta name=&quot;GENERATOR&quot; content=&quot;PHPEclipse 1.2.0&quot; /&gt;
+       &lt;title&gt;${title}&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+${cursor}
+&lt;/body&gt;
+&lt;/html&gt;</template>
+  <template name="&lt;title" description="title" id="net.sourceforge.phpdt.html.title" context="html" enabled="true"
+  >&lt;title&gt;${title}&lt;/title&gt;</template> 
   
-  <template name="&lt;table" description="3x3 table" id="net.sourceforge.phpdt.html.table" context="html" enabled="true">
-  &lt;table&gt;
-    &lt;tr&gt;
-      &lt;td&gt;${t00}&lt;/td&gt;&lt;td&gt;${t01}&lt;/td&gt;&lt;td&gt;${t02}&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;td&gt;${t10}&lt;/td&gt;&lt;td&gt;${t11}&lt;/td&gt;&lt;td&gt;${t12}&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;td&gt;${t20}&lt;/td&gt;&lt;td&gt;${t21}&lt;/td&gt;&lt;td&gt;${t22}&lt;/td&gt;
-    &lt;/tr&gt;    
-  &lt;/table&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;table" description="3x3 table with header" id="net.sourceforge.phpdt.html.table_header" context="html" enabled="true">
-  &lt;table&gt;
-    &lt;tr&gt;
-      &lt;th&gt;${header0}&lt;/th&gt;&lt;th&gt;${header1}&lt;/th&gt;&lt;th&gt;${header2}&lt;/th&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;td&gt;${t00}&lt;/td&gt;&lt;td&gt;${t01}&lt;/td&gt;&lt;td&gt;${t02}&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;td&gt;${t10}&lt;/td&gt;&lt;td&gt;${t11}&lt;/td&gt;&lt;td&gt;${t12}&lt;/td&gt;
-    &lt;/tr&gt;
-    &lt;tr&gt;
-      &lt;td&gt;${t20}&lt;/td&gt;&lt;td&gt;${t21}&lt;/td&gt;&lt;td&gt;${t22}&lt;/td&gt;
-    &lt;/tr&gt;    
-  &lt;/table&gt;
-  ${cursor}
-  </template>
+  <template name="&lt;table" description="3x3 table" id="net.sourceforge.phpdt.html.table" context="html" enabled="true"
+  >&lt;table&gt;
+       &lt;tr&gt;
+               &lt;td&gt;${t00}&lt;/td&gt;
+               &lt;td&gt;${t01}&lt;/td&gt;
+               &lt;td&gt;${t02}&lt;/td&gt;
+       &lt;/tr&gt;
+       &lt;tr&gt;
+               &lt;td&gt;${t10}&lt;/td&gt;
+               &lt;td&gt;${t11}&lt;/td&gt;
+               &lt;td&gt;${t12}&lt;/td&gt;
+       &lt;/tr&gt;
+       &lt;tr&gt;
+               &lt;td&gt;${t20}&lt;/td&gt;
+               &lt;td&gt;${t21}&lt;/td&gt;
+               &lt;td&gt;${t22}&lt;/td&gt;
+       &lt;/tr&gt;
+&lt;/table&gt;
+${cursor}</template>
+  <template name="&lt;table" description="3x3 table with header" id="net.sourceforge.phpdt.html.table_header" context="html" enabled="true"
+  >&lt;table&gt;
+       &lt;tr&gt;
+               &lt;th&gt;${header0}&lt;/th&gt;
+               &lt;th&gt;${header1}&lt;/th&gt;
+               &lt;th&gt;${header2}&lt;/th&gt;
+       &lt;/tr&gt;
+       &lt;tr&gt;
+               &lt;td&gt;${t00}&lt;/td&gt;
+               &lt;td&gt;${t01}&lt;/td&gt;
+               &lt;td&gt;${t02}&lt;/td&gt;
+       &lt;/tr&gt;
+       &lt;tr&gt;
+               &lt;td&gt;${t10}&lt;/td&gt;
+               &lt;td&gt;${t11}&lt;/td&gt;
+               &lt;td&gt;${t12}&lt;/td&gt;
+       &lt;/tr&gt;
+       &lt;tr&gt;
+               &lt;td&gt;${t20}&lt;/td&gt;
+               &lt;td&gt;${t21}&lt;/td&gt;
+               &lt;td&gt;${t22}&lt;/td&gt;
+       &lt;/tr&gt;
+&lt;/table&gt;
+${cursor}</template>
   
-  <template name="&lt;a" description="hyperlink (href)" id="net.sourceforge.phpdt.html.a" context="html" enabled="true">
-  &lt;a href="${link}"&gt;${description}&lt;/a&gt; ${cursor}
-  </template>  
-  <template name="&lt;a" description="hyperlink image" id="net.sourceforge.phpdt.html.a_image" context="html" enabled="true">
-  &lt;a href="${link}"&gt;&lt;img src="${image}"&gt;&lt;/a&gt; ${cursor}
-  </template> 
-  <template name="&lt;a" description="hyperlink fragment identifier (name)" id="net.sourceforge.phpdt.html.a_anchor" context="html" enabled="true">
-  &lt;a name="${anchor}"&gt;${description}&lt;/a&gt; ${cursor}
-  </template> 
-  <template name="&lt;p" description="paragraph" id="net.sourceforge.phpdt.html.p" context="html" enabled="true">
-  &lt;p&gt;${cursor}&lt;/p&gt;
-  </template>
-  <template name="&lt;h1" description="heading 1" id="net.sourceforge.phpdt.html.h1" context="html" enabled="true">
-  &lt;h1&gt;${cursor}&lt;/h1&gt;
-  </template>
-  <template name="&lt;h2" description="heading 2" id="net.sourceforge.phpdt.html.h2" context="html" enabled="true">
-  &lt;h2&gt;${cursor}&lt;/h2&gt;
-  </template>
-  <template name="&lt;h3" description="heading 3" id="net.sourceforge.phpdt.html.h3" context="html" enabled="true">
-  &lt;h3&gt;${cursor}&lt;/h3&gt;
-  </template>
-  <template name="&lt;h4" description="heading 4" id="net.sourceforge.phpdt.html.h4" context="html" enabled="true">
-  &lt;h4&gt;${cursor}&lt;/h4&gt;
-  </template>
-  <template name="&lt;h5" description="heading 5" id="net.sourceforge.phpdt.html.h5" context="html" enabled="true">
-  &lt;h5&gt;${cursor}&lt;/h5&gt;
-  </template>
-  <template name="&lt;h6" description="heading 6" id="net.sourceforge.phpdt.html.h6" context="html" enabled="true">
-  &lt;h6&gt;${cursor}&lt;/h6&gt;
-  </template>
-  <template name="&lt;address" description="address" id="net.sourceforge.phpdt.html.address" context="html" enabled="true">
-  &lt;address&gt;${cursor}&lt;/address&gt;
-  </template>
-  <template name="&lt;pre" description="preformat" id="net.sourceforge.phpdt.html.pre" context="html" enabled="true">
-  &lt;pre&gt;${cursor}&lt;/pre&gt;
-  </template>
-  <template name="&lt;code" description="code block" id="net.sourceforge.phpdt.html.code" context="html" enabled="true">
-  &lt;code&gt;${cursor}&lt;/code&gt;
-  </template>
-  <template name="&lt;blockquote" description="blockquote" id="net.sourceforge.phpdt.html.blockquote" context="html" enabled="true">
-  &lt;blockquote&gt;${cursor}&lt;br/&gt;
-  &lt;/blockquote&gt;
-  </template>
-  <template name="&lt;hr" description="horizontal line" id="net.sourceforge.phpdt.html.hr" context="html" enabled="true">
-  &lt;hr width="100%" size="2"&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;ul" description="bulleted list" id="net.sourceforge.phpdt.html.ul" context="html" enabled="true">
-  &lt;ul&gt;
-    &lt;li&gt;${item1}&lt;br/&gt;
-    &lt;/li&gt;
-    &lt;li&gt;${item2}&lt;br/&gt;
-    &lt;/li&gt;
-  &lt;/ul&gt;
-  </template>
-  <template name="&lt;ol" description="numbered list" id="net.sourceforge.phpdt.html.ol" context="html" enabled="true">
-  &lt;ol&gt;
-    &lt;li&gt;${item1}&lt;br/&gt;
-    &lt;/li&gt;
-    &lt;li&gt;${item2}&lt;br/&gt;
-    &lt;/li&gt;
-  &lt;/ol&gt;
-  </template>
-  <template name="&lt;dl" description="term list" id="net.sourceforge.phpdt.html.dl_term" context="html" enabled="true">
-  &lt;dl&gt;
-    &lt;dt&gt;${item1}&lt;br/&gt;
-    &lt;/dt&gt;
-    &lt;dt&gt;${item2}&lt;br/&gt;
-    &lt;/dt&gt;
-  &lt;/dl&gt;
-  </template>
-  <template name="&lt;dl" description="definition list" id="net.sourceforge.phpdt.html.dl_list" context="html" enabled="true">
-  &lt;dl&gt;
-    &lt;dd&gt;${item1}&lt;br/&gt;
-    &lt;/dd&gt;
-    &lt;dd&gt;${item2}&lt;br/&gt;
-    &lt;/dd&gt;
-  &lt;/dl&gt;
-  </template>
-  <template name="&lt;form" description="form get" id="net.sourceforge.phpdt.html.form_get" context="html" enabled="true">
-  &lt;form action="${link}" method="${get}"&gt;
-  ${cursor}
-  &lt;/form&gt;
-  </template>
-  <template name="&lt;form" description="form post" id="net.sourceforge.phpdt.html.form_post" context="html" enabled="true">
-  &lt;form action="${link}" method="${post}" enctype="text/plain"&gt;
-  ${cursor}
-  &lt;/form&gt;
-  </template>
-  <template name="&lt;form" description="form upload file" id="net.sourceforge.phpdt.html.form_upload" context="html" enabled="true">
-  &lt;form action="${link}" method="${post}" enctype="multipart/form-data"&gt;
-  &lt;p&gt;${text}&lt;/p&gt;
-  &lt;input type="file" name="${name}" size="50" maxlength="100000" accept="text/*"/&gt;&lt;br/&gt;
-  &lt;input type="submit" value="${value}"/&gt;
-  ${cursor}
-  &lt;/form&gt;
-  </template>
-  <template name="&lt;input" description="input type=text (form)" id="net.sourceforge.phpdt.html.form_input_text" context="html" enabled="true">
-  &lt;input type="text" name="${name}" value="${value}" size="40" maxlength="40"/&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;input" description="input type=password (form)" id="net.sourceforge.phpdt.html.form_input_password" context="html" enabled="true">
-  &lt;input type="password" name="${name}" size="40" maxlength="40"/&gt;
-  ${cursor}
-  </template>  
-  <template name="&lt;input" description="input type=radio (form)" id="net.sourceforge.phpdt.html.form_input_radio" context="html" enabled="true">
-  &lt;input type="radio" name="${name}" value="${value}"/&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;input" description="input type=checkbox (form)" id="net.sourceforge.phpdt.html.form_input_checkbox" context="html" enabled="true">
-  &lt;input type="checkbox" name="${name}" value="${value}"/&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;input" description="input type=button (form button)" id="net.sourceforge.phpdt.html.form_input_button" context="html" enabled="true">
-  &lt;input type="button" name="${name}" value="${value}"/&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;input" description="input type=submit (form button)" id="net.sourceforge.phpdt.html.form_input_submit" context="html" enabled="true">
-  &lt;input type="submit" name="${name}" value="${value}"/&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;input" description="input type=reset (form button)" id="net.sourceforge.phpdt.html.form_input_reset" context="html" enabled="true">
-  &lt;input type="reset" name="${name}" value="${value}"/&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;textarea" description="textarea (form)" id="net.sourceforge.phpdt.html.form_input_textarea" context="html" enabled="true">
-  &lt;textarea name="${name}" rows="10" cols="50" wrap="off"&gt;
-  ${text}
-  &lt;/textarea&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;select" description="select option (form)" id="net.sourceforge.phpdt.html.form_input_select" context="html" enabled="true">
-  &lt;select name="${name}" size="3"&gt;
-    &lt;option value="${value1}"&gt;${option1}&lt;/option&gt;
-    &lt;option value="${value2}"&gt;${option2}&lt;/option&gt;
-    &lt;option value="${value3}"&gt;${option3}&lt;/option&gt;
-  &lt;/select&gt;
-  </template>
-  <template name="&lt;xml" description="xml version=1.0" id="net.sourceforge.phpdt.html.xml" context="html" enabled="true">
-  &lt;?xml version="1.0"?&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;xml" description="xml-stylesheet type=text/xsl" id="net.sourceforge.phpdt.html.xml_stylesheet" context="html" enabled="true">
-  &lt;?xml-stylesheet type="text/xsl" href="${url}"&gt;
-  ${cursor}
-  </template>
-  <template name="&lt;script" description="JavaScript inline" id="net.sourceforge.phpdt.html.javascript_inline" context="html" enabled="true">&lt;script language="JavaScript" type="text/javascript"&gt;
-  ${cursor}
-&lt;/script&gt;
-  </template>
-  <template name="&lt;script" description="JavaScript file" id="net.sourceforge.phpdt.html.javascript_file" context="html" enabled="true">&lt;script language="JavaScript" type="text/javascript" src="${jsfile}.js"&gt;&lt;/script&gt;${cursor}
-  </template>
-  <template name="&lt;style" description="style text/css" id="net.sourceforge.phpdt.html.css" context="html" enabled="true">&lt;/style type="text/css"&gt;
-<!--
-  ${cursor}
--->
-&lt;/style&gt;
-  </template>
+  <template name="&lt;a" description="hyperlink (href)" id="net.sourceforge.phpdt.html.a" context="html" enabled="true"
+  >&lt;a href="${link}"&gt;${description}&lt;/a&gt;${cursor}</template>  
+  <template name="&lt;a" description="hyperlink image" id="net.sourceforge.phpdt.html.a_image" context="html" enabled="true"
+  >&lt;a href="${link}"&gt;&lt;img src="${image}" alt="${alt}" /&gt;&lt;/a&gt;${cursor}</template> 
+  <template name="&lt;p" description="paragraph" id="net.sourceforge.phpdt.html.p" context="html" enabled="true"
+  >&lt;p&gt;${cursor}&lt;/p&gt;</template>
+  <template name="&lt;h1" description="heading 1" id="net.sourceforge.phpdt.html.h1" context="html" enabled="true"
+  >&lt;h1&gt;${cursor}&lt;/h1&gt;</template>
+  <template name="&lt;h2" description="heading 2" id="net.sourceforge.phpdt.html.h2" context="html" enabled="true"
+  >&lt;h2&gt;${cursor}&lt;/h2&gt;</template>
+  <template name="&lt;h3" description="heading 3" id="net.sourceforge.phpdt.html.h3" context="html" enabled="true"
+  >&lt;h3&gt;${cursor}&lt;/h3&gt;</template>
+  <template name="&lt;h4" description="heading 4" id="net.sourceforge.phpdt.html.h4" context="html" enabled="true"
+  >&lt;h4&gt;${cursor}&lt;/h4&gt;</template>
+  <template name="&lt;h5" description="heading 5" id="net.sourceforge.phpdt.html.h5" context="html" enabled="true"
+  >&lt;h5&gt;${cursor}&lt;/h5&gt;</template>
+  <template name="&lt;h6" description="heading 6" id="net.sourceforge.phpdt.html.h6" context="html" enabled="true"
+  >&lt;h6&gt;${cursor}&lt;/h6&gt;</template>
+  <template name="&lt;address" description="address" id="net.sourceforge.phpdt.html.address" context="html" enabled="true"
+  >&lt;address&gt;${cursor}&lt;/address&gt;</template>
+  <template name="&lt;pre" description="preformat" id="net.sourceforge.phpdt.html.pre" context="html" enabled="true"
+  >&lt;pre&gt;${cursor}&lt;/pre&gt;</template>
+  <template name="&lt;code" description="code block" id="net.sourceforge.phpdt.html.code" context="html" enabled="true"
+  >&lt;code&gt;${cursor}&lt;/code&gt;</template>
+  <template name="&lt;blockquote" description="blockquote" id="net.sourceforge.phpdt.html.blockquote" context="html" enabled="true"
+  >&lt;blockquote&gt;
+       &lt;p&gt;${cursor}&lt;/p&gt;
+&lt;/blockquote&gt;</template>
+  <template name="&lt;hr" description="horizontal line" id="net.sourceforge.phpdt.html.hr" context="html" enabled="true"
+  >&lt;hr /&gt;</template>
+  <template name="&lt;ul" description="bulleted list" id="net.sourceforge.phpdt.html.ul" context="html" enabled="true"
+  >&lt;ul&gt;
+       &lt;li&gt;${item1}&lt;/li&gt;
+       &lt;li&gt;${item2}&lt;/li&gt;
+&lt;/ul&gt;</template>
+  <template name="&lt;ol" description="numbered list" id="net.sourceforge.phpdt.html.ol" context="html" enabled="true"
+  >&lt;ol&gt;
+       &lt;li&gt;${item1}&lt;/li&gt;
+       &lt;li&gt;${item2}&lt;/li&gt;
+&lt;/ol&gt;</template>
+  <template name="&lt;dl" description="term list" id="net.sourceforge.phpdt.html.dl_term" context="html" enabled="true"
+  >&lt;dl&gt;
+       &lt;dt&gt;${term1}&lt;/dt&gt;
+       &lt;dt&gt;${term2}&lt;/dt&gt;
+&lt;/dl&gt;</template>
+  <template name="&lt;dl" description="definition list" id="net.sourceforge.phpdt.html.dl_list" context="html" enabled="true"
+  >&lt;dl&gt;
+       &lt;dt&gt;${term1}&lt;/dt&gt;
+               &lt;dd&gt;${definition1}&lt;/dd&gt;
+       &lt;dt&gt;${term2}&lt;/dt&gt;
+               &lt;dd&gt;${definition2}&lt;/dd&gt;
+&lt;/dl&gt;</template>
+  <template name="&lt;form" description="form get" id="net.sourceforge.phpdt.html.form_get" context="html" enabled="true"
+  >&lt;form action="${link}" method="get"&gt;
+       ${cursor}
+&lt;/form&gt;</template>
+  <template name="&lt;form" description="form post" id="net.sourceforge.phpdt.html.form_post1" context="html" enabled="true"
+  >&lt;form action="${link}" method="post"&gt;
+       ${cursor}
+&lt;/form&gt;</template>
+  <template name="&lt;form" description="form post with enctype" id="net.sourceforge.phpdt.html.form_post2" context="html" enabled="true"
+  >&lt;form action="${link}" method="post" enctype="application/x-www-form-urlencoded"&gt;
+       ${cursor}
+&lt;/form&gt;</template>
+ <template name="&lt;form" description="form upload file" id="net.sourceforge.phpdt.html.form_upload" context="html" enabled="true"
+  >&lt;form action="${link}" method="post" enctype="multipart/form-data"&gt;
+       &lt;label for="${name}"&gt;${text}&lt;/label&gt;
+       &lt;input type="file" id="${name}" name="${name}" size="50" maxlength="100000" accept="text/*" /&gt;
+       ${cursor}
+       &lt;input type="submit" value="${value}" /&gt;
+&lt;/form&gt;</template>
+  <template name="&lt;input" description="input type=text (form)" id="net.sourceforge.phpdt.html.form_input_text" context="html" enabled="true"
+  >&lt;input type="text" class="text" name="${name}" value="${value}" size="${size}" maxlength="${size}" /&gt;</template>
+  <template name="&lt;input" description="input type=text (form) with id" id="net.sourceforge.phpdt.html.form_input_text2" context="html" enabled="true"
+  >&lt;input type="text" class="text" name="${name}" id="${name}" value="${value}" size="${size}" maxlength="${size}" /&gt;</template>
+  <template name="&lt;input" description="input type=password (form)" id="net.sourceforge.phpdt.html.form_input_password" context="html" enabled="true"
+  >&lt;input type="password" class="password" name="${name}" size="${size}" maxlength="${size}" /&gt;</template>
+  <template name="&lt;input" description="input type=password (form) with id" id="net.sourceforge.phpdt.html.form_input_password2" context="html" enabled="true"
+  >&lt;input type="password" class="password" name="${name}" id="${name}" size="${size}" maxlength="${size}" /&gt;</template>
+  <template name="&lt;input" description="input type=radio (form)" id="net.sourceforge.phpdt.html.form_input_radio" context="html" enabled="true"
+  >&lt;input type="radio" class="radio" name="${name}" value="${value}" /&gt;</template>
+  <template name="&lt;input" description="input type=checkbox (form)" id="net.sourceforge.phpdt.html.form_input_checkbox" context="html" enabled="true"
+  >&lt;input type="checkbox" class="checkbox" name="${name}" value="${value}" /&gt;</template>
+  <template name="&lt;input" description="input type=button (form button)" id="net.sourceforge.phpdt.html.form_input_button" context="html" enabled="true"
+  >&lt;input type="button" class="button" name="${name}" value="${value}" /&gt;</template>
+  <template name="&lt;input" description="input type=submit (form button)" id="net.sourceforge.phpdt.html.form_input_submit" context="html" enabled="true"
+  >&lt;input type="submit" class="submit button" name="${name}" value="${value}" /&gt;</template>
+  <template name="&lt;input" description="input type=reset (form button)" id="net.sourceforge.phpdt.html.form_input_reset" context="html" enabled="true"
+  >&lt;input type="reset" class="reset button" name="${name}" value="${value}" /&gt;</template>
+  <template name="&lt;textarea" description="textarea (form)" id="net.sourceforge.phpdt.html.form_input_textarea" context="html" enabled="true"
+  >&lt;textarea name="${name}" rows="10" cols="50" wrap="off"&gt;${text}&lt;/textarea&gt;</template>
+  <template name="&lt;select" description="select option (form)" id="net.sourceforge.phpdt.html.form_input_select" context="html" enabled="true"
+  >&lt;select name="${name}" size="3"&gt;
+       &lt;option value="${value1}"&gt;${option1}&lt;/option&gt;
+       &lt;option value="${value2}"&gt;${option2}&lt;/option&gt;
+       &lt;option value="${value3}"&gt;${option3}&lt;/option&gt;
+&lt;/select&gt;</template>
+  <template name="&lt;xml" description="xml version=1.0" id="net.sourceforge.phpdt.html.xml" context="html" enabled="true"
+  >&lt;?xml version="1.0"?&gt;</template>
+  <template name="&lt;xml" description="xml-stylesheet type=text/xsl" id="net.sourceforge.phpdt.html.xml_stylesheet" context="html" enabled="true"
+  >&lt;?xml-stylesheet type="text/xsl" href="${url}"?&gt;</template>
+  <template name="&lt;script" description="JavaScript inline" id="net.sourceforge.phpdt.html.javascript_inline" context="html" enabled="true"
+  >&lt;script type="text/javascript"&gt;
+${cursor}
+&lt;/script&gt;</template>
+  <template name="&lt;script" description="JavaScript file" id="net.sourceforge.phpdt.html.javascript_file" context="html" enabled="true"
+  >&lt;script type="text/javascript" src="${jsfile}.js"&gt;&lt;/script&gt;${cursor}</template>
+  <template name="&lt;style" description="style text/css" id="net.sourceforge.phpdt.html.css" context="html" enabled="true"
+  >&lt;style type="text/css"&gt;
+${cursor}
+&lt;/style&gt;</template>
   <template name="&amp;quot" description="quot" id="net.sourceforge.phpdt.html.quot" context="html" enabled="true">&amp;quot;</template>
   <template name="&amp;amp" description="ampersand" id="net.sourceforge.phpdt.html.ampersand" context="html" enabled="true">&amp;amp;</template>
   <template name="&amp;lt" description="less than" id="net.sourceforge.phpdt.html.less_than" context="html" enabled="true">&amp;lt;</template>
   <template name="&amp;gt" description="greater than" id="net.sourceforge.phpdt.html.greater" context="html" enabled="true">&amp;gt;</template>
-  
+
   <template name="&amp;nbsp" description="no-break space" id="net.sourceforge.phpdt.html." context="html" enabled="true">&amp;nbsp;</template>
   <template name="&amp;iexcl" description="iexcl" id="net.sourceforge.phpdt.html." context="html" enabled="true">&amp;iexcl;</template>
   <template name="&amp;cent" description="cent" id="net.sourceforge.phpdt.html." context="html" enabled="true">&amp;cent;</template>
@@ -320,56 +301,59 @@ ${cursor}
   <template name="&amp;thorn" description="thorn" id="net.sourceforge.phpdt.html." context="html" enabled="true">&amp;thorn;</template>
   <template name="&amp;yuml" description="yuml" id="net.sourceforge.phpdt.html." context="html" enabled="true">&amp;yuml;</template>
 
-  <template name="#00FFFF" description="Aqua (Color Code)" id="net.sourceforge.phpdt.html.aqua" context="html" enabled="true">#00FFFF</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="#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="#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="#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="#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="#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="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="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="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="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="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="&lt;br&gt;" description="&lt;br&gt;" id="net.sourceforge.phpdt.html.br" context="html" enabled="true">&lt;br/&gt;${cursor}</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="&lt;br&gt;" description="&lt;br&gt;" id="net.sourceforge.phpdt.html.br" context="html" enabled="true">&lt;br /&gt;${cursor}</template>
   <template name="&lt;div&gt;" description="div block with id" id="net.sourceforge.phpdt.html.div" context="html" enabled="true">&lt;div id=&quot;${id}&quot;&gt;${cursor}&lt;/div&gt;</template>
   <template name="&lt;strong&gt;" description="&lt;strong&gt;" id="net.sourceforge.phpdt.html.strong" context="html" enabled="true">&lt;strong&gt;${cursor}&lt;/strong&gt;</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=&quot;${name}&quot; values=&quot;${value}&quot;}</template>
+  <template name="{assign" description="{assign var= value= } (Smarty)" id="net.sourceforge.phpdt.html.smarty_assign" context="html" enabled="true">{assign var=&quot;${name}&quot; value=&quot;${value}&quot;}</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>
@@ -392,17 +376,14 @@ ${cursor}
 <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}
-${cursor}
 {/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}
-${cursor}
 {/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}
-${cursor}
 {/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}
@@ -419,7 +400,8 @@ ${cursor}
 ${cursor}
 {else}
 
-{/if}</template><template name="{include" description="{include file=&quot;&quot;} (Smarty)" id="net.sourceforge.phpdt.html.smarty_include1" context="html" enabled="true">{include file=&quot;${file}&quot;}</template>
+{/if}</template>
+<template name="{include" description="{include file=&quot;&quot;} (Smarty)" id="net.sourceforge.phpdt.html.smarty_include1" context="html" enabled="true">{include file=&quot;${file}&quot;}</template>
 <template name="{include_php" description="{include_php file=&quot;&quot;} (Smarty)" id="net.sourceforge.phpdt.html.smarty_include2" context="html" enabled="true">{include_php file=&quot;${file}&quot;}</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}
@@ -428,11 +410,13 @@ ${cursor}
 <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}}
+{/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>
+{/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:&quot;%Y-%m-%d %H:%M:%S&quot;}</template>
@@ -465,4 +449,4 @@ ${cursor}
 <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}:&quot;${sign}&quot;}</template>
-</templates>
\ No newline at end of file
+</templates>