Yes! Whimsical offers syntax highlighting in code blocks in Docs and comments.
Click anywhere in a code block to show the dropdown and switch language, or use Cmd + Shift + K (Mac) or Ctrl + Shift + K (PC) to open the dropdown via a shortcut.
Jack Jenkins