If you want to post code, mark it as code the way you would in Obsidian: Basic formatting syntax - Obsidian Help