How do I catch up the C# comments?
Code:// This is a comment /// This is a comment /* This is a comment */Didn't work. Any help is greatly appreciated. Thank you.Code:$comments="/(\/\/.*\n)/"; $string=preg_replace($comments,"<span style='color:#007700'>$1</span>",$string);![]()




Reply With Quote