Forums

share my code format problem

When I share my code and click on 'Preview how it looks here' the code does not display in a readable format. Files used to display properly formatted. Trying to figure out how to fix this. -- Code looks like this:

b'# 7/1/2021\r\n# Metro M4, SuperLED, button switch\r\n# Change the state of a SuperLED with a momentary switch\r\n\r\nimport board\r\nfrom digitalio import DigitalInOut, Direction, Pull\r\n\r\nled = DigitalInOut(board.D13)\r\nled.direction = Direction.OUTPUT\r\nbutton = DigitalInOut(board.D8)\r\nbutton.direction = Direction.INPUT\r\nbutton.pull = Pull.UP\r\n\r\nwhile True:\r\n if button.value:\r\n # button released\r\n #led.value = True\r\n led.value = False\r\n else:\r\n # button pressed\r\n #led.value = False\r\n led.value = True\r\n'

It's a bug that we know of and it should be fixed soon.