/// <summary> /// Open the file and navigate to the 0-based line and column position. /// </summary> /// <param name="file"></param> /// <param name="line"></param> /// <param name="column"></param> static public void NavigateToFileContent(this ScintillaGateway document, string file, int line, int column) { try { Npp.Editor.Open(file); document.GrabFocus(); document.GotoLine(line); //SCI lines are 0-based //at this point the caret is at the most left position (col=0) var currentPos = document.GetCurrentPos(); document.GotoPos(currentPos + column - 1); } catch { } }