Was trying to solve this problem for two days before finally finding the solution somewhere else online! This worked for me:
1) Target your block of code, ideally using a class that you set within the block rather than a page section, and make sure you've applied the following (as folks have mentioned above):
2) CRITICAL: If it hasn't worked, edit your code block's settings and set the Content Width to "L." (See attached.)