X-Git-Url: http://secure.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse.ui/templates/default-templates.xml b/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
index 43746d5..46deae9 100644
--- a/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
+++ b/net.sourceforge.phpeclipse.ui/templates/default-templates.xml
@@ -1,468 +1,452 @@
-for (var ${index} = 0; ${index} < ${array}.length; ${index}++) {
+for (var ${index} = 0, ${index2} = ${array}.length; ${index} < ${index2}; ${index}++) {
${line_selection}${cursor}
}
-<?xml ?>
+ id="net.sourceforge.phpdt.xml.templates.xml" context="xml" enabled="true"
+ ><?xml version="1.0" encoding="UTF-8" ?>
+ 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-Language" content="en" />
-<meta name="GENERATOR" content="PHPEclipse 1.0" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>${title}</title>
+ <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 bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
+<body>
${cursor}
</body>
-</html>
-
-
- <title>${cursor}</title>
-
-
-
- <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}
-
-
+</html>
+ <!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>
+ <title>${title}</title>
-
- <a href="${link}">${description}</a> ${cursor}
-
-
- <a href="${link}"><img src="${image}"></a> ${cursor}
-
-
- <a name="${anchor}">${description}</a> ${cursor}
-
-
- <p>${cursor}</p>
-
-
- <h1>${cursor}</h1>
-
-
- <h2>${cursor}</h2>
-
-
- <h3>${cursor}</h3>
-
-
- <h4>${cursor}</h4>
-
-
- <h5>${cursor}</h5>
-
-
- <h6>${cursor}</h6>
-
-
- <address>${cursor}</address>
-
-
- <pre>${cursor}</pre>
-
-
- <code>${cursor}</code>
-
-
- <blockquote>${cursor}<br/>
- </blockquote>
-
-
- <hr width="100%" size="2">
- ${cursor}
-
-
- <ul>
- <li>${item1}<br/>
- </li>
- <li>${item2}<br/>
- </li>
- </ul>
-
-
- <ol>
- <li>${item1}<br/>
- </li>
- <li>${item2}<br/>
- </li>
- </ol>
-
-
- <dl>
- <dt>${item1}<br/>
- </dt>
- <dt>${item2}<br/>
- </dt>
- </dl>
-
-
- <dl>
- <dd>${item1}<br/>
- </dd>
- <dd>${item2}<br/>
- </dd>
- </dl>
-
-
- <form action="${link}" method="${get}">
- ${cursor}
- </form>
-
-
- <form action="${link}" method="${post}" enctype="text/plain">
- ${cursor}
- </form>
-
-
- <form action="${link}" method="${post}" enctype="multipart/form-data">
- <p>${text}</p>
- <input type="file" name="${name}" size="50" maxlength="100000" accept="text/*"/><br/>
- <input type="submit" value="${value}"/>
- ${cursor}
- </form>
-
-
- <input type="text" name="${name}" value="${value}" size="40" maxlength="40"/>
- ${cursor}
-
-
- <input type="password" name="${name}" size="40" maxlength="40"/>
- ${cursor}
-
-
- <input type="radio" name="${name}" value="${value}"/>
- ${cursor}
-
-
- <input type="checkbox" name="${name}" value="${value}"/>
- ${cursor}
-
-
- <input type="button" name="${name}" value="${value}"/>
- ${cursor}
-
-
- <input type="submit" name="${name}" value="${value}"/>
- ${cursor}
-
-
- <input type="reset" name="${name}" value="${value}"/>
- ${cursor}
-
-
- <textarea name="${name}" rows="10" cols="50" wrap="off">
- ${text}
- </textarea>
- ${cursor}
-
-
- <select name="${name}" size="3">
- <option value="${value1}">${option1}</option>
- <option value="${value2}">${option2}</option>
- <option value="${value3}">${option3}</option>
- </select>
-
-
- <?xml version="1.0"?>
- ${cursor}
-
-
- <?xml-stylesheet type="text/xsl" href="${url}">
- ${cursor}
-
- <script language="JavaScript" type="text/javascript">
- ${cursor}
-</script>
-
- <script language="JavaScript" type="text/javascript" src="${jsfile}.js"></script>${cursor}
-
- </style type="text/css">
-
-</style>
-
- "
- &
- <
- >
+ <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}
+
-
- ¡
- ¢
- £
- ¤
- ¥
- ¦
- &brkbar;
- §
- ¨
- ¨
- ©
- ª
- «
- ¬
- ­
- ®
- ¯
- &hibar;
- °
- ±
- ²
- ³
- ´
- µ
- ¶
- ·
- ¸
- ¹
- º
- »
- ¼
- ½
- ¾
- ¿
- À
- Á
- Â
- Ã
- Ä
- Å
- Æ
- Ç
- È
- É
- Ê
- Ë
- &lgrave;
- ĺ
- &lcirc;
- &luml;
- Ð
- Ñ
- Ò
- Ó
- Ô
- Õ
- Ö
- ×
- Ø
- Ù
- Ú
- Û
- Ü
- Ý
- Þ
- ß
- à
- á
- â
- ã
- ä
- å
- æ
- ç
- è
- é
- ê
- ë
- ì
- í
- î
- ï
- ð
- ñ
- ò
- ó
- ô
- õ
- ö
- ÷
- ø
- ù
- ú
- û
- ü
- ý
- þ
- ÿ
+ <a href="${link}">${description}</a>${cursor}
+ <a href="${link}"><img src="${image}" alt="${alt}" /></a>${cursor}
+ <p>${cursor}</p>
+ <h1>${cursor}</h1>
+ <h2>${cursor}</h2>
+ <h3>${cursor}</h3>
+ <h4>${cursor}</h4>
+ <h5>${cursor}</h5>
+ <h6>${cursor}</h6>
+ <address>${cursor}</address>
+ <pre>${cursor}</pre>
+ <code>${cursor}</code>
+ <blockquote>
+ <p>${cursor}</p>
+</blockquote>
+ <hr />
+ <ul>
+ <li>${item1}</li>
+ <li>${item2}</li>
+</ul>
+ <ol>
+ <li>${item1}</li>
+ <li>${item2}</li>
+</ol>
+ <dl>
+ <dt>${term1}</dt>
+ <dt>${term2}</dt>
+</dl>
+ <dl>
+ <dt>${term1}</dt>
+ <dd>${definition1}</dd>
+ <dt>${term2}</dt>
+ <dd>${definition2}</dd>
+</dl>
+ <form action="${link}" method="get">
+ ${cursor}
+</form>
+ <form action="${link}" method="post">
+ ${cursor}
+</form>
+ <form action="${link}" method="post" enctype="application/x-www-form-urlencoded">
+ ${cursor}
+</form>
+ <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>
+ <input type="text" class="text" name="${name}" value="${value}" size="${size}" maxlength="${size}" />
+ <input type="text" class="text" name="${name}" id="${name}" value="${value}" size="${size}" maxlength="${size}" />
+ <input type="password" class="password" name="${name}" size="${size}" maxlength="${size}" />
+ <input type="password" class="password" name="${name}" id="${name}" size="${size}" maxlength="${size}" />
+ <input type="radio" class="radio" name="${name}" value="${value}" />
+ <input type="checkbox" class="checkbox" name="${name}" value="${value}" />
+ <input type="button" class="button" name="${name}" value="${value}" />
+ <input type="submit" class="submit button" name="${name}" value="${value}" />
+ <input type="reset" class="reset button" name="${name}" value="${value}" />
+ <textarea name="${name}" rows="10" cols="50" wrap="off">${text}</textarea>
+ <select name="${name}" size="3">
+ <option value="${value1}">${option1}</option>
+ <option value="${value2}">${option2}</option>
+ <option value="${value3}">${option3}</option>
+</select>
+ <?xml version="1.0"?>
+ <?xml-stylesheet type="text/xsl" href="${url}"?>
+ <script type="text/javascript">
+${cursor}
+</script>
+ <script type="text/javascript" src="${jsfile}.js"></script>${cursor}
+ <style type="text/css">
+${cursor}
+</style>
+ "
+ &
+ <
+ >
- #00FFFF
- #000000
- #0000FF
- #A52A2A
- #00FFFF
- #FF00FF
- #FFD700
- #808080
- #008000
- #00FF00
- #FF00FF
- #800000
- #000080
- #808000
- #FFA500
- #FFC0CB
- #800080
- #FF0000
- #C0C0C0
- #008080
- #FFFFFF
- #FFFF00
+
+ ¡
+ ¢
+ £
+ ¤
+ ¥
+ ¦
+ &brkbar;
+ §
+ ¨
+ ¨
+ ©
+ ª
+ «
+ ¬
+ ­
+ ®
+ ¯
+ &hibar;
+ °
+ ±
+ ²
+ ³
+ ´
+ µ
+ ¶
+ ·
+ ¸
+ ¹
+ º
+ »
+ ¼
+ ½
+ ¾
+ ¿
+ À
+ Á
+ Â
+ Ã
+ Ä
+ Å
+ Æ
+ Ç
+ È
+ É
+ Ê
+ Ë
+ &lgrave;
+ ĺ
+ &lcirc;
+ &luml;
+ Ð
+ Ñ
+ Ò
+ Ó
+ Ô
+ Õ
+ Ö
+ ×
+ Ø
+ Ù
+ Ú
+ Û
+ Ü
+ Ý
+ Þ
+ ß
+ à
+ á
+ â
+ ã
+ ä
+ å
+ æ
+ ç
+ è
+ é
+ ê
+ ë
+ ì
+ í
+ î
+ ï
+ ð
+ ñ
+ ò
+ ó
+ ô
+ õ
+ ö
+ ÷
+ ø
+ ù
+ ú
+ û
+ ü
+ ý
+ þ
+ ÿ
- #00FFFF
- #000000
- #0000FF
- #A52A2A
- #00FFFF
- #FF00FF
- #FFD700
- #808080
- #008000
- #00FF00
- #FF00FF
- #800000
- #000080
- #808000
- #FFA500
- #FFC0CB
- #800080
- #FF0000
- #C0C0C0
- #008080
- #FFFFFF
- #FFFF00
- <br/>${cursor}
- <div id="${id}">${cursor}</div>
- <strong>${cursor}</strong>
-
- {assign var="${name}" values="${value}"}
- {capture name=${name}}
+ #00ffff
+ #000000
+ #0000ff
+ #a52a2a
+ #00ffff
+ #ff00ff
+ #ffd700
+ #808080
+ #008000
+ #00ff00
+ #ff00ff
+ #800000
+ #000080
+ #808000
+ #ffa500
+ #ffc0cb
+ #800080
+ #ff0000
+ #c0c0c0
+ #008080
+ #ffffff
+ #ffff00
+
+ #00ffff
+ #000000
+ #0000ff
+ #a52a2a
+ #00ffff
+ #ff00ff
+ #ffd700
+ #808080
+ #008000
+ #00ff00
+ #ff00ff
+ #800000
+ #000080
+ #808000
+ #ffa500
+ #ffc0cb
+ #800080
+ #ff0000
+ #c0c0c0
+ #008080
+ #ffffff
+ #ffff00
+ <br />${cursor}
+ <div id="${id}">${cursor}</div>
+ <strong>${cursor}</strong>
+
+
+
+
+ {assign var="${name}" value="${value}"}
+ {capture name=${name}}
${cursor}
{/capture}
-{config_load file="${file}"}
-{config_load file="${file}" section="${section}"}
-{counter start=${start} skip=${skip} print=false}
-{counter}{cycle values="${values}"}
-{eval var=#${conf}#}
-{eval var=$$${var}}
-{fetch file="${file}"}
-{foreach from=$$${from} item=${item}}
+{config_load file="${file}"}
+{config_load file="${file}" section="${section}"}
+{counter start=${start} skip=${skip} print=false}
+{counter}{cycle values="${values}"}
+{eval var=#${conf}#}
+{eval var=$$${var}}
+{fetch file="${file}"}
+{foreach from=$$${from} item=${item}}
${cursor}
{/foreach}
-{foreach from=$$${from} item=${item} key=${key}}
+{foreach from=$$${from} item=${item} key=${key}}
${cursor}
{/foreach}
-{foreach from=$$${from} item=${item} name=${name}}
+{foreach from=$$${from} item=${item} name=${name}}
${cursor}
{/foreach}
-{foreach from=$$${from} item=${item}}
+{foreach from=$$${from} item=${item}}
${cursor}
{foreachelse}
-${cursor}
{/foreach}
-{foreach from=$$${from} item=${item} key=${key}}
+{foreach from=$$${from} item=${item} key=${key}}
${cursor}
{foreachelse}
-${cursor}
{/foreach}
-{foreach from=$$${from} item=${item} name=${name}}
+{foreach from=$$${from} item=${item} name=${name}}
${cursor}
{foreachelse}
-${cursor}
{/foreach}
-{if $$${var}}${cursor}{/if}{if $$${var}}
+{if $$${var}}${cursor}{/if}{if $$${var}}
${cursor}
{elseif $$${var2}}
-{/if}{if $$${var}}
+{/if}{if $$${var}}
${cursor}
{elseif $$${var2}}
{else}
{/if}
-{if $$${var}}
+{if $$${var}}
${cursor}
{else}
-{/if}{include file="${file}"}
-{include_php file="${file}"}
-{ldelim}
-{literal}
+{/if}
+{include file="${file}"}
+{include_php file="${file}"}
+{ldelim}
+{literal}
${cursor}
{/literal}
-{rdelim}
-{section name=${name} loop=$$${loop}}
+{rdelim}
+{section name=${name} loop=$$${loop}}
${cursor}
-{/section}{section name=${name} loop=$$${loop}}
+{/section}
+{section name=${name} loop=$$${loop}}
${cursor}
{sectionelse}
-{/section}{$$smarty.cookies.${var}}
-{$$smarty.env.${var}}
-{$$smarty.get.${var}}
-{$$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
-{$$smarty.now}
-{$$smarty.post.${var}}
-{$$smarty.request.${var}}
-{$$smarty.server.${var}}
-{strip}
+{/section}
+{$$smarty.cookies.${var}}
+{$$smarty.env.${var}}
+{$$smarty.get.${var}}
+{$$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
+{$$smarty.now}
+{$$smarty.post.${var}}
+{$$smarty.request.${var}}
+{$$smarty.server.${var}}
+{strip}
${cursor}
{/strip}
-{$$${var}|capitalize}
-{$$${var}|count_characters}
-{$$${var}|count_paragraphs}
-{$$${var}|count_sentences}
-{$$${var}|count_words}
-{$$${var}|date_format:"%Y-%m-%d %H:%M:%S"}
-{$$${var}|default:"${text}"}
-{$$${var}|escape:"${value}"}
-{$$${var}|escape}
-{$$${var}|indent:${nr}}
-{$$${var}|indent}
-{$$${var}|lower}
-{$$${var}|nl2br}
-{$$${var}|regex_replace:"${regex}":"${replace}"}
-{$$${var}|replace:"${find}":"${replace}"}
-{$$${var}|spacify}
-{$$${var}|string_format:"%.2f"}
-{$$${var}|strip_tags}
-{$$${var}|strip}
-{$$${var}|truncate:${nr}}
-{$$${var}|upper}
-{$$${var}|wordwrap:${nr}:"${sign}"}
-
\ No newline at end of file
+{$$${var}|capitalize}
+{$$${var}|count_characters}
+{$$${var}|count_paragraphs}
+{$$${var}|count_sentences}
+{$$${var}|count_words}
+{$$${var}|date_format:"%Y-%m-%d %H:%M:%S"}
+{$$${var}|default:"${text}"}
+{$$${var}|escape:"${value}"}
+{$$${var}|escape}
+{$$${var}|indent:${nr}}
+{$$${var}|indent}
+{$$${var}|lower}
+{$$${var}|nl2br}
+{$$${var}|regex_replace:"${regex}":"${replace}"}
+{$$${var}|replace:"${find}":"${replace}"}
+{$$${var}|spacify}
+{$$${var}|string_format:"%.2f"}
+{$$${var}|strip_tags}
+{$$${var}|strip}
+{$$${var}|truncate:${nr}}
+{$$${var}|upper}
+{$$${var}|wordwrap:${nr}:"${sign}"}
+