I have a file called site_css.php that is in fact a CSS file (and not a PHP file).
I can manually change the language everytime I load it, however I have a lot of these files for each site I work on. Can I tell NP++ to automatically set the language for files with this name to CSS and not PHP?
Thanks for any help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Open the file C:\Program Files\Notepad++\langs.xml
Locate the line
<Language name="php" ext="php php3 phtml" commentLine="//" commentStart="/*" commentEnd="*/">
Remove the first "php" after ext=
Use similar trick to get CSS to work.
Hope this helps.
Podi
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a file called site_css.php that is in fact a CSS file (and not a PHP file).
I can manually change the language everytime I load it, however I have a lot of these files for each site I work on. Can I tell NP++ to automatically set the language for files with this name to CSS and not PHP?
Thanks for any help.
You could also perform following in command shell:
notepad++.exe -lcss [fullfilepathname]
Best Regards
Jens
Open the file C:\Program Files\Notepad++\langs.xml
Locate the line
<Language name="php" ext="php php3 phtml" commentLine="//" commentStart="/*" commentEnd="*/">
Remove the first "php" after ext=
Use similar trick to get CSS to work.
Hope this helps.
Podi