lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSPad: a Lily-friendly editor for Windows


From: jimbob
Subject: Re: PSPad: a Lily-friendly editor for Windows
Date: Sun, 22 Jul 2007 06:42:28 -0700 (PDT)


madhg wrote:
> 
> 
> Eduardo Vieira-3 wrote:
>> 
>> Can you use point-and-click features with this editor?
>> 
> 
> PS you asked about point-and-click, I assume this means clicking on a note
> in Adobe Acrobat Reader and getting the editor's cursor display the
> relevant piece of code.   I don't see why it shouldn't work with any text
> editor, but I haven't been able to get this to work at all on WinXP.  The
> browser doesn't seem to recognise and act on the message sent by Acrobat
> Reader.  I asked about this on the lilypond list (via Nabble) many months
> ago, and still can't fix the problem.   If you know how to do it, I'd be
> interested in any help you can give.  
> 
> 

Hi there,
I've done a bit of digging, and have found the following under XP:


http://www.stevecooper.org/blog wrote:
> 
> Registering a new protocol
> 
> When I click, my browser opens my editor, which then gets the file from my
> FTP server. I can edit in a nice editor, then hitting ctrl-s saves the
> file back up onto the web server.
> 
> How do you trigger your system to load files from an FTP server? You
> register a new url protocol.
> 
> Your system knows how to deal with address prefixes like http: and ftp:
> and mailto:. http loads in your web browser, mailto in your email program.
> No reason why you can’t make up your own, though.
> 
> I’ve registered textedit: as a new protocol. My site has links like this
> in it;
> 
> textedit:ftp(0):/running_a_text-file_wiki.text
> 
> If you’re using Windows, add this key to your registry;
> 
> [HKLM\SOFTWARE\Classes\textedit]
> 'URL Protocol' = ''
> [HKLM\SOFTWARE\Classes\textedit\DefaultIcon]
> (default) = 'Notepad.exe'
> [HKLM\SOFTWARE\Classes\textedit\Shell\open\command]
> (default) = '"C:\blah\editplusweb.cmd" %1'
> 
> That registers the ‘textedit’ protocol, and sends everything after
> ‘textedit:’as a command-line parameter to the script listed.
> 
> Here’s that script (C:\blah\editplusweb.cmd);
> 
> @echo off
> set address=%1
> set app=C:\Program Files\EditPlus 2\Editplus.exe
> FOR /F "tokens=1* delims=:" %%a IN ("%address%") DO set arg=%%b
> set cmd=@"%app%" "%arg%"
> %cmd%
> 
> The only line that’s really hairy is the FOR /F line. God knows what it
> does. I wrote it ages ago, but it works. I think it’s some obscure
> escaping thing.
> 
> I use editplus, which is good, and cheap. If you want to trial the idea, I
> think the freeware PSPad can do it.
> 

So by editing the textedit protocol in the registry, you can grab the
file:line:column from Acrobat.  I have no idea how to get PSPad to jump to a
given line:column from a script, though.

Hope this helps
-- 
View this message in context: 
http://www.nabble.com/PSPad%3A-a-Lily-friendly-editor-for-Windows-tf4034990.html#a11731048
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]