public void MoveLineMarker()
        {
            int preRows  = (string.IsNullOrEmpty(preCode) ? 0 : preCode.Split('\n').Length) + 1;
            int selected = preRows + IDEPARSER.calcCurrentSelectedLine(theInputField.caretPosition, theInputField.text);

            IDELineMarker.SetIDEPosition(selected);
        }
        public void FocusCursor()
        {
            Canvas.ForceUpdateCanvases();
            int preCodeLines = preCode.Length == 0 ? 0 : preCode.Split('\n').Length;

            theScrollLord.FocusOnLineNumber(IDEPARSER.calcCurrentSelectedLine(theInputField.selectionAnchorPosition, theInputField.text) + preCodeLines);
            MoveLineMarker();
        }
 public void MoveLineMarker()
 {
     if (PMWrapper.IsDemoingLevel)
     {
         IDELineMarker.instance.SetState(IDELineMarker.State.Hidden);
     }
     else
     {
         int preRows  = (string.IsNullOrEmpty(preCode) ? 0 : preCode.Split('\n').Length) + 1;
         int selected = preRows + IDEPARSER.calcCurrentSelectedLine(theInputField.caretPosition, theInputField.text);
         IDELineMarker.SetIDEPosition(selected);
     }
 }