On Fri, 23 Apr 1999, Raymond Kelly wrote:
> On Fri, 23 Apr 1999, John P. Looney wrote:
>> A while back (slackware 2.x - 3.(small number)) I used to use jed as an
> editor of choice, smaller/faster than emacs with roughly the same
> keybindings, and FAR less cryptic than vi. it's major advantage for me
> was that it had nifty syntax highlighting setup by default. Once I moved
> to red hat as my dist of choice this option was gone & I couldn't find any
> fm to r that would let me in on how to set this up (I didn't have net
> access from home to search more thouroughly). Would anyone have come
> across this before & figured out a solution so I can get my nice colours
> back. Someday I'd like to revisit the jed that I rememberd & loved, time
> permitting of course :)
Hurrah - the voice of reason at last!
To switch colour on edit /usr/lib/jed/lib/jed.rc and look for
USE_ANSI_COLOR = 1; % 0 is off, 1+ is on
Later in the same file are the colour attributes for the various
syntax structures
To make sure syntax highlighting works for your language of choice
depends on the file extension (ie. .c .pl .html etc) and sometimes
#!/bin/sh in the first line. File extensions can be extended by
adding lines like
add_mode_for_extension("c", "c++");
usually at the end of the jed.rc file. Language specific syntax
highlighting is defined for tex, perl, c, shell-scripts, html and
maybe others.
Early versions of RedHat 5 had a broken/binary-incompatible slang library which choked
jed to death. If you experience this, I think a simple recompile of
jed and slang fixes it.
[written in jed emulating Emacs pretending its pico]
Andy Ferguson
~~~~~~~~~~~~~
Sysop MOIL BBS +44-1247-273357
andy at moil.demon.co.uk
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!