Menu

the default filetype in "Find in files"

2009-04-14
2012-11-13
  • qingping wang

    qingping wang - 2009-04-14

    How to append a filetype in "Find in files" Dialog??

    The default filetype are "*.h *.hpp *.hxx *.cpp *.cxx *.cc", when I want to search a text in files by using "Find in files" dialog.
    How to append a filetype "*.c" in default filetype.

    Waitting for your help.
    Thanks.

     
    • qingping wang

      qingping wang - 2009-04-14

      All Right.

      After below modify, notepad++ will highlight c files as c++. But I think it doesn't matter for me read a c file by c++ format.

       
    • Nechifor George-Daniel

      Well the solution is to edit your langs.xml file in the notepad++.exe directory
      <Language name="cpp" ext="h hpp hxx cpp cxx cc" commentLine="//" commentStart="/*" commentEnd="*/">
      edit to
      <Language name="cpp" ext="h hpp hxx c cpp cxx cc" commentLine="//" commentStart="/*" commentEnd="*/">
      The problem is that c extension is associated with c files and you will probably need to remove it from there. After that i think notepad++ will highlight c files as c++.