jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Hi + Questions


On Mon, Mar 15, 2004 at 09:39:23AM +0000, first last wrote:
> Hi everyone. I have just started using JED (thanks god for the windows 
> version, that means I can use one editor at work and at home) and I 
> have a few questions.
> 
> I use Emacs mode all the time.
> 
> -Is it any way of mapping ^X-^D to "change working directory", just 
> like emacs?

I don't know about emacs, but how about writing in your .jedrc|jed.rc

define chdir_cmd()
{
   chdir(read_file_from_mini("Change working directory"));
}
setkey("chdir_cmd", "^X^D");

 
> -meta(alt)+key does not seem to work properly on my computers, but 
> esc+key does, where should I start looking to change the behaviour?

Have a look at the variable ALT_CHAR (in .jedrc and in the online help
Help>Describe_Variable)

Use e.g. quoted_insert() (usually bound to accent-grave '`') to find out
what strings are sent by Alt-something compared to ESC-something.
 
> -PHP syntax highlighting does not highlight variables ($whatever) and
> does not seem to care about the dollar sign when using auto-completion,
> is it possible to enable that? Is it possible to enable that within
> double quoted strings too?

Do you mean dabbrev with auto-completion? How about declaring the $ a
word-char?

mode_set_mode_info("php", "dabbrev_word_chars", get_word_chars+"_$");

> -Is it possible to make auto completion use the list of sytax highlight
> recognised words too, apart from the text? That will be a lot of help.
> (EG: I type incl, press M-/ and I get include, as that is a recognised
> keyword).

Two options: use Klaus Schmidts html/css/php suite (you might search the
list archive http://www.ruptured-duck.com/jed-users/maillist.html for the
posting or ask for a private mail with a copy)
 
> -Is there a way to enable multiple highlight + indentation modes in the
> same page (EG: .php files can contain PHP, JavaScript and HTML in the
> same file).

Currently not. What I am thinking about is a PHP/HTML toggle that either
just toggles or finds out the current scope and sets the mode accordingly.
Also, IMHO the php and html mode menu should contain the toggle (my
upcoming html_mode will do so).

> -Is there an html mode with indentation?

Yes, http://profs.sci.univr.it/~gonzato/jed/html.sl


> -If I have a long word that matches another smaller syntax highlight
> the longer one never gets highlighted (IE, text-align never gets
> highlighted 'cos text gets highlited first). Is there any way to change
> that?

No idea. Also, there are two grossly different highlighting schemes,
traditional and dfa. You might have a look at the quite sophisticated
latex mode by Guido Gonzato to see what can be done with dfa
highlighting...
 
> -How do you change the highlight for different types of keywords? In
> the css mode I would like to have different colors for keys and values
> (border-color and black, respectively).

There is provision for up to 9 (or 10) keyword colors, although the most
color schemes only set 2 to 3 (and in some jeds the rest comes out black
on black :-( ) Have a look at the online help for define_keywords_n and
related functions (and at Guidos latex.sl for the dfa case).

Günter

-- 
G.Milde at web.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]