code-blocks
code-blocks copied to clipboard
Code and text disappears when add the second block of code
Hey guys...
how's going? Hope fine....
So, this is happening with me, the code block and text are disappearing after formatting a second block of code.
Screen #01, only one block of code formated
Screen #02, after Code Blocks tried to format a second block of code
Any idea why this is happening?
Cheers =)
I frequently encounter this same issue.
I guess this is caused by issues with the table being invisible when no background is selected.
I expect that your second code block is actually part of the invisible table created by Code Blocks from your first code block. To confirm this, mouse to the top right of the first code block and click the small arrow that appears and select the table border that is on the outside
You should see that the second block is "inside" the table

If this is the case, fix your document so that the second code block and intermediate text is in the body of the document rather than the table created by Code Blocks
See https://github.com/alexwforsythe/code-blocks/issues/27
I copied all the code into Notepad, then deleted all the code out of Google Docs, then pasted the code back in, and then reformatted it with Code Blocks. I made sure that all of the code parsed properly. I had some output of the code interspersed with the code itself, so I made sure that the output was commented out so as to not confuse the parser. Then it worked ok.