Testing code blocks

I’m trying to define the flavour of the code block by adding the programming language (none, python, fortran, bash) after the three backticks (`)

This is a general code block
for _ in range(5):
    print("This is a test Python code")
PROGRAM TEST
    implicit none
    print *, "Fortran Code"
END PROGRAM TEST
$ echo "This is a Bash script"

It does not like Fortran much. The forgotten language.

Ask and you shall receive

PROGRAM test
    implicit none
    print *, "Fortran Code"
END PROGRAM test

I have set the style to “androidstudio”, see here for all the possibilities

https://highlightjs.org/static/demo/

Note that they look nicer on the highlightjs page than here, might be the CSS interacting poorly. This one at least didn’t look too garish.

Interesting, it’s rendering your version correctly, but hasn’t changed the way my original text rendered it. (Even though it did change the background to black in the other code blocks. But I don’t think I did anything different.

I’m going to edit my original post and see what happens.

Once I changed anything (in my case I capitalised the TEST, it worked.