This is actually a combination js, php, htaccess question so it could go in either one of those categories.
I, like every combo server/client/ajax programmer like to mix my php with my js. I'm just curious about something, I know that you can configure .htaccess to refer to new extensions as something else. Actually let me start here.
Many times I will use external js files but will include them using a php include, for example include("phpjs/main.js.php");
which will allow my editor to treat it more like a regular php file rather than a js file. I know it looks dirty if you view source but I never care about that anyway, well actually, maybe I do which is why I am asking this question:
Can I configure apache, through .htaccess to parse a .js file like a .php file. I'm pretty sure it will have no effect on the client, and then I can configure my editor to parse the .js file more like a .php file(for code completion and coloring), and then include it using the standard <script src= include, allowing me to be able to include php in a .js file.