lilypond-user
[Top][All Lists]
Advanced

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

Re: Editing lilypond files with Geany


From: Tanguy Léost
Subject: Re: Editing lilypond files with Geany
Date: Mon, 31 May 2010 22:33:16 +0200
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Federico Bruni a écrit :
Hi Tanguy,



Hi,



Then I launched Geany and opened Tool>>Configuration
files>>filetype_extensions.conf

I've added the line:
LilyPond=*.ly;

and saved in ~/.config/geany/filetype_extensions.conf

That's ok


Then I created the file ~/.config/geany/filedefs/filetypes.lilypond
(see the attached file, very basic... if you want to share your file I'd
be curious)


I think your file should be named filetypes.lilypond.conf

I've closed and launched again Geany, but there is not any new filetype
in Document>>Set filetype>>Custom filetypes

What I wrote above should fix this ;-)
Btw, you don't have to close and open geany again, you can just go to the tools menu, and reload the settings (I'm not quite sure how it is named in your software, my menus are in french)

And if I open a .ly file Geany does not understand it's a LilyPond file.

I'm surely missing something.
Can you help me?

I paste my filetypes.lily.conf file here, hope this helps :
(I copied the C filetype, and changed a few things in it, so some
settings may be useless. Make sure you have the [settings] section,
it is important for the syntax highlighting)

<-----------------------------------------------------
[settings]
lexer_filetype=Perl


# if only single comment char is supported like # in this file, leave comment_close blank
comment_open=%
comment_close=

# set to false if a comment character/string should start at column 0 of a line, true uses any # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
   #command_example();
# setting to false would generate this
#    command_example();
# This setting works only for single line comments
comment_use_indent=true

# context action command (please see Geany's main documentation for details)
context_action_cmd=

[styling]
# foreground;background;bold;italic
default=default
comment=comment
commentline=comment
commentdoc=commentdoc
number=number
word=word
word2=word2
string=string
character=string
uuid=0x404080
preprocessor=preprocessor
operator=operator
identifier=default
stringeol=stringeol
# @"verbatim"
verbatim=0x101030
# (/regex/)
regex=0x105090
commentlinedoc=commentdoc,bold
commentdockeyword=commentdoc,bold,italic
commentdockeyworderror=commentdoc
globalclass=type

[keywords]
# all items must be in one line
primary=version book Score Staff score relative version header layout midi context paper simultaneous include time times key major minor bar grace afterGrace acciaccatura stemDown stemUp
secondary=
# these are some doxygen keywords (incomplete)
docComment=attention author brief bug class code date def enum example exception file fn namespace note param remarks return see since struct throw todo typedef var version warning union

[lexer_properties]
styling.within.preprocessor=1
preprocessor.symbol.$(file.patterns.cpp)=#
preprocessor.start.$(file.patterns.cpp)=if ifdef ifndef
preprocessor.middle.$(file.patterns.cpp)=else elif
preprocessor.end.$(file.patterns.cpp)=endif

[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
compiler=gcc "%f"
linker=gcc -Wall -o "%e" "%f"
run_cmd="./%e"


[build-menu]
FT_00_LB=lilypond
FT_00_CM=lilypond %f
FT_00_WD=
FT_01_LB=Visualiser le pdf
FT_01_CM=evince %e.pdf
FT_01_WD=
----------------------------------------------------->

--
_Unix IS user friendly, it is just selective about who his friends are
(°>   IM GoogleTalk:  address@hidden
//\   JID: address@hidden @msn: address@hidden
v_/_  http://tanguy.leost.free.fr







reply via email to

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