Auto-lay-out example and function definition blocks in contract editor