How to set up NetBeans to view .htaccess in Project or Files view

A few days ago I run in an issue that by default NetBeans doesn't show files which starts with dot, which is exactly the case of .htaccess file. This is the tip how to do it.

Go to the Options->Miscellaneous->Files and the content of Ingnored Files Pattern field replace with:

\^(CVS|SCCS|vssver.?\\.scc|#.\*#|%.\*%|\\.(cvsignore|svn|DS_Store)|_svn)$|~$|\^\\.(?!htaccess$)

If you have already .htaccess in the project and the file is not still displayed, then close the project and open again. There is issue #139582, which is entered against the project.


Comments:

I'm using Netbean 6.5 Milestone 1.

In my Options->Miscellaneous I don't have Files, but File Associations.

Which doesn't have the File Ignored by the IDE section. Is this only in the latest builds?

Posted by Jacob on July 11, 2008 at 12:01 AM CEST #

Hi Jacon,

you are true. I'm sorry, I haven't check it, whether this is in M1. M1 for me is old build and things are changing very quickly.

Anyway I think that defining the query through regular expression is to hard for many users and our team entered issue http://www.netbeans.org/issues/show_bug.cgi?id=139023, where we are asking for improving the situation. If you want, you can express your thought there or change the priority, if you thing that it doesn't reflect the reality.

I'm sorry for confusing again.

Thanks,
Petr

Posted by Petr on July 11, 2008 at 01:46 AM CEST #

Hello,

Im using Netbeans IDE 6.9 but still have same problem with files beginning with dot.
I tried to change "File Ignore Pattern" to
\^(CVS|SCCS|vssver.?\\.scc|#.\*#|%.\*%|\\.(cvsignore|svn|DS_Store)|_svn)$|~$|\^\\.(?!htaccess$)

and

\^(CVS|SCCS|vssver.?\\.scc|#.\*#|%.\*%|\\.(cvsignore|svn|DS_Store)|_svn)$

but no chance to get access to the dot-Files!
Closing and reopen project or the complete IDE doesn't change anything.

Wahts the matter? Where is my mistake?
Thanks a lot.

ps: netbeans ide 6.9 on window xp sp2

Posted by Arne on June 30, 2010 at 02:33 AM CEST #

Personnally, I also want to see .htpasswd files and I sometimes also have some variations of .htaccess files (for example if I quickly have to put the a site offline and serve some static pages instead).

This is why I changed the end of the pattern in order to see all files starting with ".ht" :

^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!ht).*$

Posted by Patrick on November 13, 2013 at 01:20 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« July 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today