How to add boundaries for code in ACE Editor that will be dynamically updated?

I want to add borders / outlines for a block of code in the ace editor. The border of the block should update / grow as and when I insert new code inside the block. This means that when creating a new line, the border should also wrap this line. Is this possible in the ace editor?

Please refer to the image below to better understand what I really need.

enter image description here

+3
source share

All Articles