Archi Forum

Archi => General Archi Discussion => Topic started by: m4ttmcg on June 07, 2023, 01:18:43 AM

Title: Different formatting within an element
Post by: m4ttmcg on June 07, 2023, 01:18:43 AM
Hello,

Is it possible to have different formatting applied within an element, using label expressions or some other technique? How are others doing this for more visually appealing/readable to non-architects views?

What I would like to do (if markdown was supported in a label expression):

--------------
##{name}##
{documentation}
--------------
Title: Re: Different formatting within an element
Post by: Phil Beauvoir on June 07, 2023, 07:59:51 AM
Hi, different font sizes and colours are not supported in diagram objects. There are technical reasons for this - the graphical Draw2d control only supports one font and one colour.
Title: Re: Different formatting within an element
Post by: Jean-Baptiste Sarrodie on June 07, 2023, 09:22:39 AM
Hi,

One workaround is to add visual notes inside an element, make them transparent, and set their label using "$parent{...}" expressions. Each note can then has its own font size and colour.

Regards,

JB
Title: Re: Different formatting within an element
Post by: m4ttmcg on June 07, 2023, 13:24:03 PM
Perfect! I had tried notes but didn't realise they could be so easily nested and the ${parent} expression.

Slight hassle but less than re-creating in Visio :) Thanks JB!