Possible to add keywords through user properties file?

99 views
Skip to first unread message

sdaau

unread,
Oct 26, 2011, 9:25:05 AM10/26/11
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!

Neil Hodgson

unread,
Oct 26, 2011, 7:05:12 PM10/26/11
to scite-i...@googlegroups.com
sdaau:

> I would like to add the keywords "define" and "endef" so they are in
> different color for the Makefile style in Scite.

There are no keyword lists for make files.

Neil

sdaau

unread,
Oct 28, 2011, 2:38:32 PM10/28/11
to scite-interest
Many thanks for the answer, Neil - cheers!
Reply all
Reply to author
Forward
0 new messages