Code example
val message = "Hello"
println(message)A paragraph after the listing.
Code blocks keep their line breaks and a typed language info string.
ToggleCodeBlock converts the current block. Inside code, Enter inserts a newline; the toolbar can set Scala as the language and indent or outdent the current line.
Place the caret in code and use the Code toolbar group. Watch the Markdown fence update.
val message = "Hello"
println(message)A paragraph after the listing.
CodeInfo separates the language from optional fence metadata. Indentation inserts two spaces.