Simple sentence (not verified):
Since you cannot format a text field, you can simulate it using a div with the contenteditable attribute and simple CSS formatting:
<div id='textarea' contenteditable style="overflow: scroll; border: 1px solid black; width: 200px; height: 100px;"></div>
Then a few lines of JavaScript (and jQuery):
// when user finished editing $('#textarea').blur(function() { // replace hashtags (parsing should prob. be enhanced) $(this).html($(this).html().replace(/(#\S+)/, '<span style="color: blue">$1</span>'); });
source share