If you are using FileMaker 12 or newer, the Delineate option in layout setup might do what you need just by having that option selected. The layout format options then apply only to the current record.
Another option that has a bit more flexibility is to right click the group of fields on your layout for which you want to all have the same format change if they are on the current records and select "conditional format" from the menu that pops up.
Enter this expression:
Get ( RecordID ) = $$RecordID
Then specify the fill color, text color, text style... that you want when the fields are from the current record.
Write this script:
Set Variable [$$RecordID ; value: Get ( RecordID ) ]
and use Layout Setup to specify that the OnRecordLoad script trigger perform this script.
Worked like a charm.