alexwforsythe / code-blocks

Syntax highlighting for Google Docs
https://www.alexwforsythe.com/code-blocks/
MIT License
701 stars 89 forks source link

Code and text disappears when add the second block of code #106

Open tofanelli opened 5 years ago

tofanelli commented 5 years ago

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 image

Screen #02, after Code Blocks tried to format a second block of code image

Any idea why this is happening?

Cheers =)

micahjsmith commented 4 years ago

I frequently encounter this same issue.

micahjsmith commented 4 years ago

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

image

You should see that the second block is "inside" the table

image

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

LyleZiegelmiller commented 1 year ago

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.