HTML command-line-like text box
<p>I'm trying to make a text box that executes custom commands with custom syntax, it's for teaching children how to program, a simple example is that if the user wrote an ($) sign the program alerts a message (you are now writing a variable name), on the same text box if he added (!=) the alert says not equal, and so on.</p>

<p>Right now I'm doing it using jqyery keyup event, by running several regex tests and on each test the alert box alerts, I want to ask if there's a better approach to do this. is there a better one?</p>
