The Stackoverflow widget only formats text as code if it has spaces before the line. However, StackOverflow also supports regular Markdown code formatting, which uses "`" for inline code and "```" for multiline code. Currently, Kagi just displays that as regular text.
Example for the search query "create class julia":
It should be formatted as code