Reputation: 5226
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?
Upvotes: 46
Views: 21748
Reputation: 1624
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
Upvotes: 23
Reputation: 2578
If you the other solutions from other do not work, please try objectivec that works in highlight.js and prism.js
Upvotes: 0
Reputation: 35394
The identifier is objective-c
.
Here you can find a full list: http://coapp.org/reference/garrett-flavored-markdown.html
Upvotes: 85