I'm trying to implement same like tweet box feature in my application.
whenever user enters normal text it should come as normal text,
if a user enters a username ('@') or hashtag('#'), I want to differentiate the color and I want to hit the search API to get the username or hashtag. Can anyone help me on that.
http://stackoverflow.com/questions/28820293/how-does-twitter-implement-its-tweet-box