Sajjad schrieb:

I have installed LyX 2.6.1 and trying to insert C++ code. I am trying as
follows:

1. Inserted a float algorithm .
2. Pasted the code snippet inside that

The better solution is to use the listings inset. This is described in sec. 7 of the EmbeddedObjects manual that you find in LyX's Help menu.

regards Uwe

Reply via email to