Was expecting full html markup with colours etc like in most IDEs. maybe add that as a optional feature? <a href="http://qbnz.com/highlighter/" rel="nofollow">http://qbnz.com/highlighter/</a> or similar library might help there.<p>This seems like a slightly extended htmlentities(nl2br($input)) (if done in php). handy in those times you need stuff converted so it'll output the same way as what you are pasting in.