Sometimes when working on larger pieces of code or on a larger package I really miss the option to bookmark the current line/position in the code.
Since the front-end is quite extendable my question is: How could one implement bookmarks in the fronted when editing a package (.m) file?
So the requirements are that a short cut (e.g. Ctrl-Alt-Numpad 1) would set the bookmark and another short cut (e.g. Ctrl-Numpad 1) would move the cursor to the bookmark.
(* ::Bookmarks::1:: *)) at the current cursor position and then somehow find the string and move the cursor there again. But of course I'd except any answer that fulfils the bookmar requirements. – Ajasja May 11 '12 at 14:24(* BOOKMARK *)and then just find it again. I don't mind if such comments are visible. The front end already uses special comment tags in packages, for example(* ::Code::Bold:: *). This is where I got my original idea from. – Ajasja May 11 '12 at 14:52Developer`CellInformationcertanly seems useful, but when I tried it it just returns$Failed(This is what I triedDeveloperCellInformation[EvaluationNotebook[]]`) – Ajasja May 11 '12 at 14:58$Failed. I wasn't able to fully understand what are these conditions. I was able to make it work reliably for code cells ("Program" style text cells), which I use for the highlighter. I am actually thinking of switching to those also for my Mathematica coding - I just have to generate a highlighter for Mathematica language, and add semantic highlighting module. No time for that so far, hopefully soon... – Leonid Shifrin May 11 '12 at 15:01