Property with multiline code as value does not format/work properly

Setting multiline preformatted text as value of property does not work:

Example that does not work:

Screenshot_20230102_191300