I need a text editor which tells me the position of the cursor (so I can determine ranges of text to then load into strings). Unfortunately the text editors ive tried (TextWrangler, Aquamacs, EditPad) only tell me the line number the cursor is on, and the character index on that line. I need the index from the beginning of the file to that point - ie the absolute index. Any recommendations for an editor (or a technique im missing in the editors ive already got) which can tell me this?
相关问题
- React Native Inline style for multiple Text in sin
- How to change the first two uppercase characters o
- How to change the first two uppercase characters o
- Is there a way to rotate text around (or inside) a
- QML creating Text element takes long time
相关文章
- 放在input的text下文本一直出现一个/(即使还没输入任何值)是什么情况
- Rendering plain text through PHP
- Python thinks a 3000-line text file is one line lo
- How to get all distinct words of a specified minim
- saving cProfile results to readable external file
- How do I give focus to a python Tkinter text widge
- Convert one row to multiple rows per subject in a
- Convert Text to Table (Space Delimited or Fixed le
Emacs and Vim tell you. If you have Aquamacs, it's probably just as case of setting it up to show in your modeline:
As you can see - my modeline shows that the caret is on line 3, column 8 -> the (3,8)
If you select some text in TextWrangler you will find 3 numbers at the bottom right of the screen. The first says how many characters are selected, the second how many words and the last how many lines. If you select everything from the beginning of the file until the position you are interested in, the first number will give you what you want.