Hmm, well if you are using a slicer that lets you add start and end g-code. It's really simple.
Unfortunately flashprint doesn't.

Simplify3d does.

Also doesn't the firmware actually let you keep heaters on after a print - pretty sure I've seen it as an option from the control panel.

what are you actually wanting to do ?