Adding code

Wherever you add text in assignments you can include blocks of programming code. When you want to add programming code inline you start and end it with a ` (back tick) symbol. This text will be shown in a mono-space font suitable for displaying code. When you want to add a separate code block you start and end it with a line containing three back ticks: ```. Alternatively, you can indent every line with at least 4 spaces.

Quarterfall can automatically show syntax highlighting in code blocks, but you have to specify what the programming language is. To this end, put the name of the language behind the first ```. (Note that color coding is not possible for inline code.) Quarterfall supports a number of different languages. Currently the following languages are supported:

  • javascript
  • c
  • cpp (that is C++)
  • csharp
  • java
  • python
  • go
  • haskell
  • markup (that is HTML or XML)
  • css
  • sql

More languages will be added in the future. If your desired language is not supported (does not show syntax highlighting), please contact us and we will (try to) add it.

Here is an example:

function compareIt(a, b) {
  if (a < b) {
    return -1;
  if (a > b) {
    return 1;
  return 0;
class Person
    int Age;
    string Name;

    int YearOfBirth()
        return 2019 - Age;

The result will look as follows:

Still need help? Contact Us Contact Us