Some guidance would be nice - ok, it's probably out there somewhere - on
what attributes may be set under [Class]:
J6 had "items" such as "openquote", "unmatched parenthesis" which don't
appear in style.cfg but are extremely useful both for development of
scripts and immediate evaluation of expressions.
I've found it helpful to copy colour definitions from the xml files
(supplied with J7 or JGT? - I forget where I found them!), convert the
associated hexadecimal values to RGB triples, and find nearest matches
to these RGB triples in the default style.cfg - it's then easy enough to
back-engineer definitions in terms of colour-names - eg fore=black,
high=light-grey etc... These are debatably easier to appreciate.
So is Murray's overwriting problem - which has just caught me out too -
a feature of QT itself that puts it out of your control?
Getting better all the time...
Thanks
Mike
On 17/04/2013 4:34 PM, chris burke wrote:
Not much we can do about that, but it does explain the initial comment:
"This file is read and written by the Qt IDE. Make changes in the same
format as the original."
AFAIK, Qt has no way to preserve comments in a settings file.
On Wed, Apr 17, 2013 at 9:39 PM, Murray Eisenberg <[email protected]>wrote:
Aha! The real key was setting new color values in ~config/style/cfg,
especially for [Class].
However, there's a peculiarity in editing ~config/style/cfg from the jqt
Edit window: If I comment out the default values in a block such as [Class]
(and the block's header) using leading # symbols and then insert a new
block [Class] -- and even if I move the commented-out portion near the file
top, before any other block -- and insert a new block in its place, then
the commented out block simply disappears from the file after I save it and
later reopen it.
That's a very bad behavior!
On 17 Apr 2013 20:48:08 +1200, Ric Sherlock <[email protected]> wrote:
In the latest version [1.0.4] I think you need to follow the following
steps to get
syntax highlighting in the Term window (& in the Edit window).
Appropriate
defaults should be set in later versions.
in ~config/qtide.cfg set
TermSyntaxHighlight=true
in ~config/style.cfg
set some appropriate colours. For example:
[Edit]
fore=0 0 0
back=221 252 222
high=240 240 232
[Term]
fore=0 0 0
back=252 252 221
high=240 240 232
[Class]
adverb=221 68 68
comment=136 136 136 italic
conjunction=221 153 153
control=255 0 0
function=0 0 255
noun=0 0 255 bold
noundef=0 0 255
number=160 32 240
string=0 0 255
verb=0 153 102
Now close jqt and restart.
---
Murray Eisenberg [email protected]
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2838 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm