xcode 9.2 syntax coloring

Dear all,


I've updated x-code to version 9.2 (with the hope to get code folding back) but instead am now not able to set the syntax coloring any more.


In the menue Editor -> Syntax Coloring shows an arrow, but if I click on the menu item nothing happens. i.e. no list of languages apears. Is this a known problem or is there something wrong with my installation? (Mac OS Sierra 10.12.6, macBook Pro 2016)


Best wishes,

Maurits

Answered by m.w.h. in 296822022

I found a way to turn on/off the menu. If the column Compare/Blame ... is shown the Syntax Coloring menu does not apear. If the right column is not visible one can edit the Color scheme of the code ....

The Editor menu is specific to what you're editing. If I'm editing a source file, the Syntax Coloring submenu appears properly.


The only way I was able to get the behavior you describe was to close the project, so Xcode had no windows open. In that case, the Editor menu had all its items "left over" from the project, but the submenu did not appear.

The fact that you're seeing the menu, means your approach is correct...you're trying against the correct file type. What is the name of that file?


If it also fails to add the langs sub-menu against other (.swift) files (such as AppDelegate.swift), you might want to confirm the file in question is unlocked for editing; still no joy, maybe an Xcode reinstall will help.

Accepted Answer

I found a way to turn on/off the menu. If the column Compare/Blame ... is shown the Syntax Coloring menu does not apear. If the right column is not visible one can edit the Color scheme of the code ....

xcode 9.2 syntax coloring
 
 
Q