Ubuntu – LibreOffice Writer – How to format text as code

libreoffice

Is is possible to put code snippets into an OpenDocument Text file (.odt) file? I want it to be inside a bordered box, etc…

And I would like to know whether there is any way to add plugins to LibreOffice Writer?

Best Answer

See the following images to know how to create a text-box.

Click the icon with an A with a vertical bar next to it: enter image description here

Type whatever code you want to put in the box and then right-click on the border on the box. Select Line from the menu. enter image description here

Select the style you want for the box's border and click ok.

enter image description here

Related Question