How to detect the syntax of code whether it's CSS or JS using jQuery or PHP? : <p>I'm writing a simple PHP code for minifying CSS and JS files. And in the code I want it to be able to detect whether the source code is CSS or JS. Can anyone show me an example?</p>
