I'm aware that I can do this:
This code is python:
print "Hello" print "World"
And this is javascript:
console.log("Hello") console.log("World")
But is it possible to correctly format this?
print "Hello" print "World"
That code was python
console.log("Hello") console.log("World")
And that was javascript
Which I've marked up as:
1. print "Hello"
print "World"
That code was python
2. console.log("Hello")
console.log("World")
And that was javascript
Currently, my attempts either:
- Drop the numbering for no obvious reason
- Result in a blank line before the code block
- Work only for a single line of code using
`
s