Toph's Code Editor, Upgraded

Dock the code editor on the right, see exactly where your output differs from the expected, get your verdict without leaving the editor, and make the editor your own with themes and Vim or Emacs keys.

The code editor is where most of your time on Toph goes: on problem pages in the archive and in the contest arena. Today, we are releasing a round of improvements to it. You can place it where it suits you, see exactly what went wrong when an example fails, follow your submission without leaving the editor, and set it up the way you like to write code.

Click Open Editor on any problem to try it.

Bottom or Right

The editor can now sit on the right side of the page as well as at the bottom. Click the dock button in the editor’s corner to switch. With the editor on the right, the problem statement stays in full view next to your code.

Drag the editor’s edge to make it taller or wider. Toph remembers the size in your browser, so it opens the same way next time. Docking on the right needs a wide enough screen; on smaller screens, the editor stays at the bottom.

See What Went Wrong

Click Test to run your code against the problem’s examples. Each example now gets its own row with its verdict, time and memory, and the first one that fails opens on its own.

For a wrong answer, the editor shows the input, the expected output and your output side by side, and highlights where they first differ. No more squinting at two long lines to find the one character that’s off.

Custom runs your code with your own input, using the code that’s in the editor at the moment you click Execute. The result shows the time and memory your code used, and says so if it ran out of time or memory, or crashed.

Your Verdict in the Editor

When you click Submit, the editor now follows your submission right there. A progress bar shows the tests as they run, and the verdict, time and memory appear when judging is done. Click the submission number to see the full details.

Example results, custom runs and your latest submission stack below the editor, so you can compare them without switching back and forth. Dismiss any of them with the cross.

Make It Yours

Click the gear icon to open the new Code Editor Settings:

  • Theme: Same as Site, Light or Dark. Prefer a dark editor on a light page? Now you can have one.
  • Font size and tab size.
  • Key mapping: Default, Vim or Emacs.
  • Long lines: scroll, or wrap them onto the next line.
  • Position and width: dock at the bottom or on the right, and choose a narrow or wide editor.
  • Confirm contest submissions: have Toph ask before each submission during a contest.

Changes show in the editor as you make them. Click Save to keep them, or close the settings to put everything back the way it was. Reset to Defaults starts over.

The same settings are on the new Code Editor page in your account settings. They apply in the archive and in the arena, on every device you use.

Smaller Improvements

  • Fewer duplicate submissions. Submit is locked while your submission is on its way, and a submission sent again after a flaky connection is recognised as the same one. One click, one submission, even when the network hiccups.
  • No more endless waiting. If submitting takes too long, the editor tells you, so you can check your submissions before trying again.
  • Keyboard shortcuts. Press Ctrl+Enter to test the examples and Ctrl+Shift+Enter to submit (Cmd on a Mac). Ctrl+E opens and closes the editor.
  • Word completion for languages without full code completion, suggesting words already in your code.
  • Downloads named after your language, like solution.cpp or solution.py, and uploads that accept every file extension your language uses.
  • A proper monospaced font on phones and other devices that were falling back to a proportional one.

If you have any questions or need assistance, please don’t hesitate to contact Toph support or join the conversation in our community forum.


November 19, 2026

Spread the Word

Table of Contents

Subscribe to Toph Blog