How do I markup command line examples with HTML5?
For example:
cmd1
cmd2 --help
cmd3 --verbose
Wrapping that in a <pre> doesn’t feel correct. Is there a better way to use HTML5 elements to express command line examples?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can combine
<pre>and<code>.http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element