Skip to content

Instantly share code, notes, and snippets.

@bakeddean
Created March 26, 2019 02:12
Show Gist options
  • Save bakeddean/26fb5ed454b701dae85de26bc3206c58 to your computer and use it in GitHub Desktop.
Save bakeddean/26fb5ed454b701dae85de26bc3206c58 to your computer and use it in GitHub Desktop.

Have Xcode render markdown

To make Xcode render markdown, create an empty .plist file named .xcodesamplecode.plist in your .xcodeproj/ folder, or .workspace/ folder if you have one.

To Allow Editing

  • With the file selected, go to Editor > Syntax Coloring and select None
  • Select another file
  • Select the markdown file again

To Switch back to rendering

  • With the file selected, go to Editor > Syntax Coloring and select Default For Filetype (should be Markdown)
  • Select another file
  • Select the markdown file again

Bit of a nuisance. Unfortunately I couldn't find any key bindings for Editor > Syntax Coloring either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment