Re: PSPad: a Lily-friendly editor for Windows

2007-07-23 Thread David Griffel


jimbob wrote:
 
 
 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
 
 
 

Thanks for this.  I tried it, but it didn't work.  The reason may be that
Lilypond sets up a complex chain of events for point-and-click, which sends
messages to a browser, then to some Lilypond entity entity (I'm being vague
here because I don't understand the details) which responds via two Win32
environment variables specifying the editor to be used.  So getting it to
work may have to involve that lilypond machinery.  

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



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: PSPad: a Lily-friendly editor for Windows

2007-07-22 Thread jimbob


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.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: PSPad: a Lily-friendly editor for Windows

2007-07-07 Thread Eduardo Vieira
Citando madhg [EMAIL PROTECTED]:


 I used to use Crimson for writing lilypond.  Excellent for small projects,
 less convenient for a large project with one main file to be compiled and
 several other files contaning the music for individual staves.

 I can now recommend another editor, PSPad, which like Crimson is a general
 programmer's editor and useful for Lilypond.

  * freeware

  * supports compilation, viewing compiler output, and parsing the output to
 jump to a line in the source file which produces an error or warning

  * [This is what made me move from Crimson to PSPad]  supports projects in
 which you can specify a Main file, so that when you press the button to
 compile, lilypond is run on the main file that you have specified, even if
 you are currently working on a different file (for instance, if you have the
 music for different staves held in individual files)

  * support for UTF-8, so accented characters are handled easily

  * syntax highlighting; I attach a PSPad highlighter file for lilypond

  * configurable keyboard shortcuts, so you can set up keys for compiling,
 and for viewing the result in GSView or other viewers.

 PSPad is Windows only, available from  http://www.pspad.com/

 There are many editors, and I don't want to start an argument about whether
 X is better than Y.  Just to point interested users to one that has a
 broadly similar style to Crimson but has an extra feature that saves me a
 lot of trouble.  And is freeware.

 David Griffel

 http://www.nabble.com/file/p11462658/Lilypond.INI Lilypond.INI
 --
 View this message in context:

http://www.nabble.com/PSPad%3A-a-Lily-friendly-editor-for-Windows-tf4034990.html#a11462658
 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


Hello! I've downloaded it. What else do I need to do after installing the
program and copying the Lilypond.ini to the folder syntax, so it can start
working, that is, using syntax highlighting?
Can you use point-and-click features with this editor?

Eduardo

Have a good day!
___
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: PSPad: a Lily-friendly editor for Windows

2007-07-07 Thread madhg



Eduardo Vieira-3 wrote:
 
 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.

 
 Hello! I've downloaded it. What else do I need to do after installing the
 program and copying the Lilypond.ini to the folder syntax, so it can start
 working, that is, using syntax highlighting?
 Can you use point-and-click features with this editor?
 
 

* put the file into the Syntax subfolder of the PSPad application folder
(usually in  C:\Program Files)

* Open PSPad

* In the Settings menu open Highlighters Settings

* Get a dialog with a list of programming languages etc. in a left-hand
pane.

* There will probably be an item called Lilypond.  If not, go to the items
at the end labelled not assigned, check the checkbox and highlight that
line  There will be various things to be done next, I forget exactly what,
try the program help, and if no luck, email me (but I'm away Sunday-Tuesday)

* In the Compiler tab for the Lilypond syntax:
  - in Compiler enter the path of the lilypond executable
  - in Parameters enter %Name% or maybe %Name%.ly  (I run lilypond via a
batchfile which requires only the %Name% without extension
  - in Default Directory enter %Dir%
  - check all 3 checkboxes
  - in LOG Parser enter  %F:%L:%C  (that enables automatic jumping to an
error-producing line in your lilypond code - very nice!

* In the External Applications tab enter
C:\Programs\gs\Ghostgum\gsview\gsview32.exe %Name%.pdf for Ghostview
(obviously you may have a different path) and/or similar for Acrobat

* In the colours tab you can choose the highlighting colours.

To set your own keyboard shortcuts, choose Program Settings in the Settings
menu, go to the last item, Key Map, look in the File menu item settings, you
should find Compile and Acrord and/or Ghostview, double-click to enter a new
shortcut (can use Ctrl+shift+Z etc. if you want).

Hope this helps.  There's a user forum on the PSPad website.

David 

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.  
-- 
View this message in context: 
http://www.nabble.com/PSPad%3A-a-Lily-friendly-editor-for-Windows-tf4034990.html#a11481532
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


PSPad: a Lily-friendly editor for Windows

2007-07-06 Thread madhg

I used to use Crimson for writing lilypond.  Excellent for small projects,
less convenient for a large project with one main file to be compiled and
several other files contaning the music for individual staves.

I can now recommend another editor, PSPad, which like Crimson is a general
programmer's editor and useful for Lilypond.

 * freeware

 * supports compilation, viewing compiler output, and parsing the output to
jump to a line in the source file which produces an error or warning

 * [This is what made me move from Crimson to PSPad]  supports projects in
which you can specify a Main file, so that when you press the button to
compile, lilypond is run on the main file that you have specified, even if
you are currently working on a different file (for instance, if you have the
music for different staves held in individual files)

 * support for UTF-8, so accented characters are handled easily

 * syntax highlighting; I attach a PSPad highlighter file for lilypond

 * configurable keyboard shortcuts, so you can set up keys for compiling,
and for viewing the result in GSView or other viewers.

PSPad is Windows only, available from  http://www.pspad.com/

There are many editors, and I don't want to start an argument about whether
X is better than Y.  Just to point interested users to one that has a
broadly similar style to Crimson but has an extra feature that saves me a
lot of trouble.  And is freeware.

David Griffel

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



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user