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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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++.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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++.