Menu

Force a language?

2007-03-16
2012-11-13
  • Nobody/Anonymous

    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.

     
    • Jens Lorenz

      Jens Lorenz - 2007-03-17

      You could also perform following in command shell:

      notepad++.exe -lcss [fullfilepathname]

      Best Regards
      Jens

       
    • Nobody/Anonymous

      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