I’ve just added something that might prove useful for people who post/view code chunks on the forum…code numbering. This adds line numbers in front of lines of code (only where there are two or more lines of code). Some examples…
# This code should have line numbers
print("Hello World!")
<?php
echo "Hello World!";
?>
<?php
echo "Hello World!";
?>
This is what the post text looked like to generate these…
The second and third chunks of PHP code are different in that the second has “PHP” as its header. You can indicate the code language by including the language immediately following the three code ‘quotes’.