Close
Close full mode
logo.NET Thailand

Markdown

Git RepositoryEdit on Github
Last update: 3 minutes ago by aaronammReading time: 2 min

Syntax highlighting

  • For some Markdown parser e.g. GitHub Markdown, they support syntax highlight in code block.
  • Therefore, you can add a language identifier to code block to enable syntax highlight.
  • For example, to syntax highlight Ruby code:
```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```
📘 Programming cookbook — Previous
NLog
Next — 📘 Programming cookbook
Visual Studio