This is the first post on the TextMode demo site.

Code Examples

Here is some inline code and various highlighted blocks:

10 PRINT "HELLO WORLD"
20 GOTO 10
def greet(name):
    """A simple greeting function."""
    for i in range(3):
        print(f"Hello, {name}! #{i + 1}")

if __name__ == "__main__":
    greet("DOS")
#include <stdio.h>

int main(void) {
    char *msg = "Hello from C";
    printf("%s\n", msg);
    return 0;
}

Typography

Regular text looks like this. Bold text is highlighted in white. Emphasized text gets slash decorators.

Lists

  • First item
  • Second item
  • Third item
  1. Numbered one
  2. Numbered two
  3. Numbered three

This is a blockquote. It has a left border in gray.


That horizontal rule above uses a solid white bottom border.