How to make Xcode recognize a custom file extension as Objective-C for syntax highlighting?

后端 未结 3 1324
小鲜肉
小鲜肉 2021-02-01 02:02

I\'d like to get Xcode 4 to recognize a custom file extension (e.g. *.lx) as Objective-C for syntax highlighting and indentation purposes. How do I get the tool to automatically

3条回答
  •  名媛妹妹
    2021-02-01 02:51

    In Xcode when your file is active in the editor, you go to the Editor Menu -> Syntax Coloring -> Objective-C

    This will apply objective-c syntax coloring to a file. Worked for me with a plain text file regardless of its extension.

    This seemed to work for automatic indentation also

提交回复
热议问题