Menu

Current Character Position

jtrick
2009-07-13
2012-11-13
  • jtrick

    jtrick - 2009-07-13

    Hello,

    Is there a way to easily determine the current character location of the cursor from Notepad++?  It would be ideal to have functionality similar to the Ln / Col / Sel area, but specifically detailing the character count up to the cursor point.  Thanks.

     
    • cchris

      cchris - 2009-07-15

      I submitted a patch that fixes this and a few other issues with the displayed char count, a couple weeks ago. Hopefully it makes it into release code some day.

      CChris

       
    • jtrick

      jtrick - 2009-07-16

      Cool, thanks for the reply.  I hope it makes it in as well.

       
    • jtrick

      jtrick - 2009-07-13

      Also, just to clarify, I tried selecting the text from the first character up to the location I wanted to know the character count for, but all tabs were counted as multiple chars (# of spaces set for 'tab size'), so this isn't a good option.  

       
    • jtrick

      jtrick - 2009-07-13

      Actually I just realized that it is not the tabs causing an issue in the character count, but line breaks.  In any case, the characters as counted in php using strpos() produces different results than reflected in Notepad++'s 'Sel:' field.  I thought this was worth noting even though it is a separate issue from my original post.

       
MongoDB Logo MongoDB