Customize font style

Having trouble installing Oxygen? Got a bug to report? Post it all here.
[Stupid]_[User]
Posts: 21
Joined: Mon Dec 05, 2022 9:35 am

Customize font style

Post by [Stupid]_[User] »

Hello!

I have a lot of code fragments in my document. I use <msgph> to separate those fragments from simple text. I use HTML5 & CSS transormation scenario. I trying to add text-decoration-color, but it doesn't work. Is it any way to add colored highlight for my code fragments using css?
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

Re: Customize font style

Post by andrei_pomacu »

Hi,
Since you have code fragments in your document you could use <codeblock> instead of <msgph>. It will separate your code fragments from your simple text, and also will add text decoration on your key elements from code.
You could read more about codeblock here.
Regards,
Andrei
Erwan52
Posts: 1
Joined: Wed Feb 01, 2023 2:34 am
Contact:

Re: Customize font style

Post by Erwan52 »

Hello and thank you for the link. It is very helpful for me too.
[Stupid]_[User]
Posts: 21
Joined: Mon Dec 05, 2022 9:35 am

Re: Customize font style

Post by [Stupid]_[User] »

Hi, Andrey!
Thanks a lot, it was helpfull for me!
andrei_pomacu wrote: Wed Jan 25, 2023 11:14 am Hi,
Since you have code fragments in your document you could use <codeblock> instead of <msgph>. It will separate your code fragments from your simple text, and also will add text decoration on your key elements from code.
You could read more about codeblock here.
Regards,
Andrei
Post Reply