Close full mode
logo.NET Thailand


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:
require 'redcarpet'
markdown ="Hello World!")
puts markdown.to_html
📘 Programming cookbook — Previous
Next — 📘 Programming cookbook
Visual Studio