jasper182 Posted January 15, 2007 Share Posted January 15, 2007 I'm trying to show some php code in a textarea, and I'd really like it to have syntax highlighting. I have found a function called highlight_string() that works fine for normal text, but it hasn't worked for me at all with textareas. Is there something else that I can use to do this? Thanks. Link to comment https://forums.phpfreaks.com/topic/34208-highlighting-problem/ Share on other sites More sharing options...
matto Posted January 15, 2007 Share Posted January 15, 2007 You would need to use CCS to do that, but I think you wouldn't have much luck having various colors in the one textarea...... Link to comment https://forums.phpfreaks.com/topic/34208-highlighting-problem/#findComment-160942 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.