Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 如何覆盖记事本+;的默认文件扩展名+;?_Objective C_Notepad++ - Fatal编程技术网

Objective c 如何覆盖记事本+;的默认文件扩展名+;?

Objective c 如何覆盖记事本+;的默认文件扩展名+;?,objective-c,notepad++,Objective C,Notepad++,我想在Notepad++中打开iOS objective-c文件(扩展名为.m),并将其指定为objective-c文件。在settings-->style configurator中,我知道我可以为Objective-C添加一个“user ext.”(m)。问题是Matlab已经使用.m扩展名作为默认扩展名字段,无法编辑。是否有可以访问的文件来更改此设置?由于某些原因,记事本++默认不会将.h、.m和.mm文件列为Objective-C文件(.mm是Objective-C++) 您可以修改la

我想在Notepad++中打开iOS objective-c文件(扩展名为.m),并将其指定为objective-c文件。在settings-->style configurator中,我知道我可以为Objective-C添加一个“user ext.”(m)。问题是Matlab已经使用.m扩展名作为默认扩展名字段,无法编辑。是否有可以访问的文件来更改此设置?

由于某些原因,记事本++默认不会将
.h
.m
.mm
文件列为Objective-C文件(
.mm
是Objective-C++)

您可以修改
langs.xml
文件,让记事本++将这些扩展名与Objective-C关联。打开文件
%AppData%\Notepad++\langs.xml
,然后向下滚动到以下区域:


if else开关情况默认中断转到返回while do continue typedef sizeof NULL self super nil nil
接口实现协议端私有保护的公共类选择器encode defs
void struct union enum char short int long双浮点有符号无符号常量静态外部自动寄存器volatile id类SEL IMP BOOL
单向输入输出输入输出bycopy byref
然后将
hmm
添加到
ext
属性:


if else开关情况默认中断转到返回while do continue typedef sizeof NULL self super nil nil
接口实现协议端私有保护的公共类选择器encode defs
void struct union enum char short int long双浮点有符号无符号常量静态外部自动寄存器volatile id类SEL IMP BOOL
单向输入输出输入输出bycopy byref
然后重新启动记事本++


如果编辑
%AppData%\Notepad++
文件夹中的
langs.xml
文件不起作用,则必须打开
%ProgramFiles%\Notepad++
文件夹中的文件。确保备份原始版本,以防你在某个地方搞砸。

投票结束,因为我相信这个问题属于打开状态(当它收到足够的投票时会自动迁移)。@fireeyedboy:Hm,如果常见问题解答不这么说,我希望有人在它实际移动之前清理结束投票。记事本++在常见问题解答中提到的“程序员常用的工具”。