Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Cursor Position in characters

2. Help
gek22
2010-07-05
2013-03-19
  • gek22
    gek22
    2010-07-05

    Hi,
    Is there any way of displaying the character position of the cursor within a document?
    There is the line and column position if I click around the document but knowing the numerical character position would be useful too.
    Sorry if this is an easy one!

     
  • cchris
    cchris
    2010-07-05

    You need to send the SCI_GETCURRENTPOS message to the current Scintilla and to retieve the returned value. You can do this using a scripting plugin or NppExec - probably the simplest way.

    CChris

     
  • Fool4UAnyway
    Fool4UAnyway
    2010-07-05

    Perhaps switch to Hex Editor mode temporarily?