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?
Many Markdown processors support syntax highlighting for fenced code blocks. This feature allows you to add color highlighting for whatever language your code was written in. To add syntax highlighting, specify a language next to the backticks before the fenced code block.
There are two ways to format code in Markdown. You can either use inline code, by putting backticks (`) around parts of a line, or you can use a code block, which some renderers will apply syntax highlighting to.
GitHub uses its own Markdown processor; GitHub Pages uses jekyll-commonmark. This means your README.md file will look different on GitHub's website than on your GitHub Pages website.
The identifier is objective-c
.
Here you can find a full list: http://coapp.org/reference/garrett-flavored-markdown.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With