>>>> "Phanender" == Phanender N
<phanendernn(a)infotech.stph.net> writes:
Phanender> Hi Adrian,
Phanender> Thanks for the information provided. But from the link
Phanender> provided, I am
Phanender> unable to open the section 45.3 Colors. Until 45.2.3 is
Phanender> only downloadable. So, here Iam describing my problem.
Phanender> In Xemacs, there's a provision to highlight in colours
Phanender> based on the type of
Phanender> the file (viz., C, C++, TeX, LaTeX files etc). But the
Phanender> file which I am operating on Xemacs belongs to none of
Phanender> these. Its a *.runin (text)file where we write a series
Phanender> of $RUN and $END commands and execute this runin file
Phanender> by using some external non-commercial package. So,
Phanender> what I need is whether I can highlight this $RUN and
Phanender> $END commands in some user defined color for my easy
Phanender> reference? Will this possible in Xemacs editor? Kindly
Phanender> clarify me on the same. Thanks Phanender
Yes, this is possible.
Try
M-x find-library RET font-lock RET
You will have to create your own
runin-font-lock-keywords
and put them on a runin-mode.
You can create runin-mode as a derived mode based on some other
major-mode.
See
C-h f define-derived-mode
Hope this helps,
Adrian
Phanender> ====
Phanender> Regards
Phanender> Phanender N
Phanender> Design Engineer, IEL, India
Phanender> Off: +91 - 40 - 23110357 Ext:252
Phanender> | -----Original Message-----
Phanender> | From: Adrian Aichner [mailto:adrian@xemacs.org]
Phanender> | Sent: Saturday, April 12, 2003 1:29 AM
Phanender> | To: phanendernn(a)infotech.stph.net
Phanender> | Cc: xemacs-beta(a)xemacs.org
Phanender> | Subject: Re: Query on xemacs
Phanender> |
Phanender> |
Phanender> | >>>>> "Phanender" == Phanender N
Phanender> | <phanendernn(a)infotech.stph.net> writes:
Phanender> |
Phanender> | Phanender> Dear Sir,
Phanender> |
Phanender> | Hi Phanender!
Phanender> |
Phanender> | Phanender> I am using 'xemacs' editor on unix
Phanender> | system which is
Phanender> | Phanender> remotely connected via
Phanender> | Phanender> Exceed on a windows 2000 version. In my macro which
I
Phanender> | Phanender> am editing using xemacs, I want to colour some
words
Phanender> | Phanender> which are repeated in the code such that I can
easily
Phanender> | Phanender> visualize them by seeing at once. The words which
are
Phanender> |
Phanender> | What programming language are those macros written in?
Phanender> |
Phanender> | Phanender> repeated, I want to colour them with different
colours
Phanender> | Phanender> for different words. Is there any provision in
Xemacs
Phanender> | Phanender> editor to perform this operation? If so, kindly
help
Phanender> | Phanender> me in this regard.
Phanender> |
Phanender> | Support for visualising and editing constructs of many programming
Phanender> | languages is one of the strengths of XEmacs.
Phanender> |
Phanender> | See
Phanender> |
http://www.xemacs.org/cgi-bin/namazu.cgi?query=major+modes&whe
Phanender> nce=0&lang=en
Phanender> Best regards,
Phanender> Adrian
Phanender> Thanks
Phanender> Phanender
Phanender> ====
Phanender> Regards
Phanender> Phanender N
Phanender> Design Engineer, IEL, India
Phanender> Off: +91 - 40 - 23110357 Ext:252
Phanender> --
Phanender> Adrian Aichner
Phanender> mailto:adrian@xemacs.org
Phanender>
http://www.xemacs.org/
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/