Whimsical supports syntax highlighting for code blocks in Docs, comments, and discussions. While Boards also support code blocks, they don’t offer syntax highlighting at this time.
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.