4

Please see this answer: Javascript Function toString

The response is quoting from http://shamansir.github.io/JavaScript-Garden/en/#object, which has some text segments and some code segments. What is the appropriate way to denote a code block within a quote?

0

1 Answer 1

6

What you have there is already rather ok, depending on the amount of code. It doesn't look too bad.

Some description

while (stuff) { doit(); }

More stuff

The other option is to put a code block inside the quotes, which requires five spaces after the >:

Some description

while (stuff) { doit(); }

More stuff

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .