So for my site I needed a way to highlight a php file as css and also enable code hinting as css inside a php file. I am including the php file as a css file using <link href="css.php" rel="stylesheet" type="text/css" />
which works and displays the php file as css. However, the problem is that in Adobe Dreamweaver when I am editing the code for style.php it all shows as black font and code-hinting for css does not work.
This file includes many php variables for displaying the content differently based on user settings and other php variables made by the parent page.
condensed style.php
/*
Style Sheets
....
Copyright © 2012 All Rights Reserved
*/
@charset "utf-8";
#myID {
background:<?php echo $colorVar; ?>;
}
How can I get dreamweaver to recognize this php file as a css file?