<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card id="discuz_wml" title="CnPack Forum">
<p>#1 Suggestion for input helper feature<br /><small>Suggestion :<br />
<br />
Use RegEx to check the current line and next line to decide whether to insert a template.<br />
<br />
IE : when I press enter, and the line reads &lt;symbol&gt; := &lt;symbol&gt;.Create&lt;anything&gt;;  and the next does NOT read TRY, insert :<br />
Try<br />
  |<br />
Finally<br />
  &lt;first symbol&gt;.Free;<br />
End;<br />
<br />
You can use RegEx expressions for this.<br />
<br />
Also, another example, if I type IF and then space, and then hit space and nothing else is on the line, you could insert<br />
(|) Then<br />
Begin<br />
End;<br />
<br />
So a regex for text b ..</small><br />
</p>
<p>#1 <a href="index.php?action=thread&amp;tid=1199&amp;start=0&amp;offset=497&amp;sid=JATP1y">&gt;&gt;Next Page</a><br />
<br />Forum:<a href="index.php?action=forum&amp;fid=25&amp;sid=JATP1y">CnWizards IDE Wizard ...</a>
<br />Thread:<a href="index.php?action=thread&amp;tid=1199&amp;sid=JATP1y">Suggestion for input ...</a>
<br />Next Thread:<a href="index.php?action=thread&amp;tid=1184&amp;sid=JATP1y">Search in help</a>
</p>
<p align="center"><br /><a href="index.php?sid=JATP1y">Home</a><br />
<a href="index.php?action=login&amp;sid=">Login</a><br /><br />
<small>Powered by Discuz!</small></p>
</card>
</wml>