Mine
public text v1 · immutable//javascript
function checkTerm()
{
var searchFor = document.form1.area1.value.lastIndexOf("\n");
var critera = document.form1.area1.value.substring(searchFor);
if (critera=="help") {
document.form1.area1.value+="\n\nHelp is here\n";
document.form1.area1.value+=searchFor;
}
}
//html
<html>
<body>
<form name="form1" method="post">
<textarea name="area1" onKeyDown="checkTerm();" style="width: 100.4%;" rows="18">
</textarea>
</body>
</html>