In the official github flavored markdown docs they show how we can use fences to mark code blocks, and optionally we can supply a language identifier, such as
```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```
Is there a language identifier for Objective C? I've searched and cannot find a reference.
Furthermore, is there a list of all supported language identifiers that can be used in github markdown?
3 Answers 3
The identifier is objective-c.
Here you can find a full list: http://coapp.org/reference/garrett-flavored-markdown.html
2 Comments
objective-c provides almost no syntax highlighting, which is why I wanted it. But thanks to your list I discovered smalltalk, which provides for very colorful Objective C code in github :)The identifier is
objc
See this example here where the author gets code highlighting to work: https://raw.githubusercontent.com/dchohfi/KeyValueObjectMapping/master/README.md
Here is another example as well: https://raw.githubusercontent.com/github/objective-c-style-guide/master/README.md
2 Comments
objective-c to provide little to no highlighting.If you the other solutions from other do not work, please try objectivec that works in highlight.js and prism.js