Menu

#10 Can't sniff php files with different extensions.(e.g..phtml)

open
None
5
2009-12-22
2009-12-21
Anonymous
No

Would like to be able to sniff files with a .phtml (or other abitrary) extension, but cannot get to the "--extensions=php,inc,lib, phtml" switch.
This might be more of a feature request.
Great work!

Discussion

  • Sven Kiera

    Sven Kiera - 2009-12-22
    • assigned_to: nobody --> skiera
     
  • Sven Kiera

    Sven Kiera - 2010-01-31

    Hi meriial,

    sorry for the late answer.

    All files associated with the "PHP Content Type" will be checked. To add a new file extension follow these steps:
    1. From the menu bar select Window -> Preferences
    2. From the tree view of Preferences page select General -> Content Types
    3. Expand the "Text" node and select "PHP Content Type"
    4. Click "Add..." to add a new file extension

    With the next release I add a feature similar to the extension parameter from PHP_CodeSniffer. But not that this is implemented in Eclipse and will not use this parameter.

    I hope this helps.

    Sven

     

Log in to post a comment.