User:DevSpenpai/sandbox/test

Keyboard keys
Outputs the following:

Ctrl+C

As you can see, Ctrl+C is formatted like computer code.

Arithmetic variables
Outputs the following: 1 + x

As you can see, the variable x is italicized.