title: HTML command-line-like text box
body: <p>I am trying to make a text box that executes custom commands with custom syntax, it is for teaching children how to program.</p>
  
  <p>A simple example is that if the user wrote a <code>$</code> sign the program alerts by a message (you are now writing a variable name), on the same text box if he added <code>!=</code> the alert says not equal, and so on.</p>
  
  <p>Right now I'm doing it using jQuery <code>KeyUp</code> event, by running several regex tests and on each test the alert box alerts.</p>
  
  <p>I want to ask if there is a better approach to do this?</p>