Here is a short example of a document that contains both prose and code. The prose section is written in normal Markdown paragraph syntax, using plain text.
class MixedProseAndCode
{
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
}
We intentionally put the prose section first, then the code block. This is particularly useful for examples where the reader needs to read a short explanation before they see the code.
No comments yet. Be the first to comment!