I have a CSS parser thats printing out stylesheet to the browser like so:
$cssParser->parse( 'style.css' );
echo '<pre>'; print_r( $cssParser ); echo '</pre>';
Can I ‘syntax highlight’ the output CSS somehow?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to code-highlight something using PHP, getting some HTML code as output, GeSHi – Generic Syntax Highlighter is a nice solution (used by many software, should I add), that supports lots of languages — and CSS seems to be one of those.
If you want to try it without integrating it into your application first, there is a demo page available, btw.