Question regarding highlight_string.....
Posted: Wed Jun 25, 2003 4:15 pm
I'm in the process of building a website where people can submit articles and such. As part of the "enhancements" we are trying to do is color coding code peices. I'm trying to use highlight_string since that seems to already to the functionality I need. However, I'm having a bit of a problem with it.
If I pass it a piece of code that uses double-quites " for the string, it turns on the right color, but never seems to turn it off.....If we use single quoes ' it comes out OK.
What gives? Any clues?
If I pass it a piece of code that uses double-quites " for the string, it turns on the right color, but never seems to turn it off.....If we use single quoes ' it comes out OK.
What gives? Any clues?