Jonathan Beebe
Jonathan Beebe

Reputation: 5226

Is there a github markdown language identifier for Objective C code?

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

Answers (3)

Vincil Bishop
Vincil Bishop

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

aquajach
aquajach

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

Felix
Felix

Reputation: 35394

The identifier is objective-c.

Here you can find a full list: http://coapp.org/reference/garrett-flavored-markdown.html

Upvotes: 85

Related Questions