            textarea.addEventListener('scroll', () => {
                mirroredEle.scrollTop = textarea.scrollTop;
            });

            const coordinatesButton = document.getElementById('coordinates-button');
            coordinatesButton.addEventListener('click', () => {
                const cursorPos = textarea.selectionStart;
                const textBeforeCursor = textarea.value.substring(0, cursorPos);
                const textAfterCursor = textarea.value.substring(cursorPos);

            