Re: adding a language (lilypond)

Federico Bruni <[email protected]> Sun, 11 Dec 2011 23:55:00 +0100
Newsgroups gmane.comp.gnu.source-highlight.general
Message-ID <[email protected]>
Il 11/12/2011 23:10, Lorenzo Bettini ha scritto:
>> Then I run again make and make install, but the changes I made are not
>> copied to /usr/local. I mean: lang.map misses my edit and there's no
>> lilypond.lang
>
> mh... that should not happen... are you sure that make install complete
> successfully...  and that (after make install) you're actually running
> the installed source-highlight executable (please try 'which
> source-highlight').  Note also that source-highlight starts searching
> for its files in the current directory.  You may want to check the lang
> files source-highlight is actually handling by running it with the
> command line option --lang-list
>

'which source-highlight' gave /usr/local/bin as path
I tried also --lang-list but it was not listed

> Please, also consider that, when developing a new language, and in
> general, you can avoid installing: you can use the command line option
> --data-dir of source-highlight to force it to use the files (.lang, .map).
>

I'll go this way.
Actually, I'll run this command to test (in the directory where I have 
my new language file):

source-highlight -s lilypond.lang -i test.ly -o test.html

> Finally, if you add a .lang file in the lang.map file, if you want to
> install it, you'll also have to modify Makefile.am by adding your .lang
> file to the installed ones (you can take a look at src/Makefile.am).
>

I think that's what I was missing.
I'll think about it when I get a working file.

> hope to hear from you soon!

I hope it too :)
Ciao,
Federico