sdaau
unread,Oct 26, 2011, 9:25:05 AM10/26/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scite-interest
Hi everyone,
I would like to add the keywords "define" and "endef" so they are in
different color for the Makefile style in Scite.
I noticed only reference to Makefile is in others.properties:
> file.patterns.make=makefile;Makefile;*.mak;configure
> lexer.$(file.patterns.make)=makefile
> lexer.*.iface=makefile
>
> preprocessor.symbol.$(file.patterns.make)=!
> preprocessor.start.$(file.patterns.make)=IF IFDEF IFNDEF
> preprocessor.middle.$(file.patterns.make)=ELSE ELSEIF ELSEIFDEF ELSEIFNDEF
> preprocessor.end.$(file.patterns.make)=ENDIF
>
> # Makefile styles
> # Default
> style.makefile.0=fore:#000000
> # Comment: #
> style.makefile.1=$(colour.other.comment),$(font.code.comment.box)
> # Pre-processor or other comment: !
> style.makefile.2=$(colour.preproc)
> # Variable: $(x)
> style.makefile.3=fore:#000080
> # Operator
> style.makefile.4=$(colour.other.operator)
> # Target
> style.makefile.5=fore:#A00000
> # Error
> style.makefile.9=$(colour.error),eolfilled
> # Matched Operators
> style.makefile.34=fore:#0000FF,notbold
> style.makefile.35=fore:#FF0000,notbold
>
> comment.block.makefile=#~
>
> command.build.makefile=make
> command.build.*.mak=make
... but I don't see any keywords there.
I tried to add the following to my .SciTEUser.properties:
#~ keywords.$(file.patterns.make)=$(keywordclass.make) define endef
keywordclass.makefile=$(keywordclass.makefile) define endef
keywords.$(file.patterns.make)=$(keywordclass.makefile)
... but it does nothing.
Is what I want to do (add keywords for a syntax color style in user
properties) even possible? If so, what should I do?
Many thanks in advance for any answers,
Cheers!