I’m currently trying to insert HTML into a LibreOffice Calc Cell.
So far, I’ve tried something like:
<b>Hello</b> <i>world</i>
But currently this is rendered as plain text instead of rich html text.
Is there any way to solve this and possibly add an image too?
2
Answers
LibreOffice formulas do not use HTML syntax.
However, you can select "Hello" and press Ctrl+B to make it bold, then select "world" and press Ctrl+I for italics. To insert an image, go to Insert > Image.
Substitution and formatting could also be done with a macro, for example, use a regex to find
<b>...</b>
, strip the markers, and change that TextPortion formatting to bold.Another thing you can do is copy from a webpage and paste HTML formatting with Ctrl+Shift+V. Calc will do its best to convert into LibreOffice formatting, including hyperlinks.
A workaround is to load your HTML into a temporary writer doc and then copy its content to the target calc cell. This works with basic formatting, but not with images, though.