Figma Support Forum

Code block syntax highlighting breaks with windows line endings?

Syntax highlighting in code blocks seem to break if the code has windows line endings. I encountered this when copy/pasting some code from notepad in to figjam. It took a while to figure out, but there seemed to be some whitespace character on the end of each line and deleting those in the codeblock fixed the syntax highlighting