Language selection for fenced code blocks syntax highlighting

Multi-line (fenced) code blocks feature has been recently added, but the auto-detection algorithm does not always work correctly.

FEATURE REQUEST:
Please add a GitHub style (or similar) language identifiers for fenced code blocks:

so blocks may look like

`` `ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
`` `
11 Likes

Seconded! I love the new code blocks – they are such an aid for readability and finding what I’m looking for quickly. But I agree that the auto-picker often gets the language wrong.

The style suggested above is respected by most Markdown engines, and I think it would be a good choice for Dynalist.

3 Likes

This is something that’s really needed!

Please add language id! Saving PowerShell snippets, and have yet to see them auto-detected correctly. Also, an explicit id “txt” could be useful for creating plain monospace preformatted blocks.