Thanks. I didn't think of there being a scope issue. What puzzles me more is the fact that it ran OK on my machines, but not on others. JavaScript, eh?
Anyway, as for working example; i know this works: change the highlighter to 'PHP', type in 'fopen', then press ctrl+I (or whatever you said on the addMenuItem() call. This is how it works. Perhaps it could give you some hints: 1 ShowTip() method of the tip object is called. 2 The 7th cell on status bar is read, to detect the current highlighter mode 3 The corresponding file in the Context sub directory is read (and cached) 4 The function that the cursor is over or in is found. 5 A clip from the file that matches the function is retreived 6 The screen position of the function is detected 7 A window is displayed This is just a weekend hack, which probably depends on several things that is unique to my setup. Who knows... Good luck! Steve -- <http://forum.pspad.com/read.php?2,35782,41766> PSPad freeware editor http://www.pspad.com
