[rkward-users] [Help] RE: configure syntax highlighting for r script
noreply at sourceforge.net
Sun Oct 16 17:29:44 UTC 2011
The following forum message was posted by tfry at http://sourceforge.net/projects/rkward/forums/forum/165574/topic/4760536:
[quote]My question is : I'm not able to set colors for R control keywords such
as "for", "in" "while", etc, while I am able to set colors for many others.
Admittedly, I had to search hard to find this, myself: When a script window
is opened, go to "Settings->Configure Editor...->Fonts & Colors". There, open
the tab that reads "Highlighting Text Styles" (not "Normal Text Styles"), and
select "Scripts/R Script" in the dropdown box. Now you can customize all colors
used in the R syntax highlighting, while the "Normal Text Styles" allows you
to control generic styles used for all types of highlighting.
[quote]Also I notice the word "Schema" is used for color template, I wonder
if an xml is use as the color configuration file.[/quote]
Different applications which use "katepart" for text editing can use different
color schemes. The configuration for these is stored in
~/.kde/share/config/kateschemarc . In addition to this, the highlighting definition
itself is written in xml. You should find it in this directory: [code]cd `kde4-config
More info on these katepart internals can be found at http://kate-editor.org .
More information about the Rkward-users