Hi,
I am working on a plugin which creates customizable comments based on the type of file.
Eg if the file is a CSS file or JS file it uses the /* …*/ as commenter lines.
Is there a way to determine what kind of file it is as I would like the plugin to check whether its an HTML file or css or js and then add the type of commenting structure.
So if it an HTML file, my output would be something like
<!--//my comment-->
if it is a CSS or JS file, my output would be
/* my comment */
Appreciate your help. I tried searching for something like this but havent had much success.
Thanks,
Gautam