jed-users mailing list

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

no syntax color in PHP (and several other questions)


	Dear friends,
	I have just found out about Jed, started using it and it seems to be very good indeed. But, of course, I am having a few problems, I've read a lot of documentation and tried to tweak everything I could find, to no avail. I hope you can help me.
	Like I said in another message, here is my environment: I intend to install a Linux box soon. So far, I use Windows and use a lot the Linux shell account at my Web hosting provider. I connect to my shell account with Putty, through SSH. My first problem was "no accented characters in Windows", which I posted separately because this mailing list can be searched by thread. My second problem is:
	
	2 - I convinced my Web hosting provider to install Jed in their environment. Great! I login every now and then to make minor changes to my PHP scripts, and doing that without syntax highlighting was such a pain. But it does not work. I open PHP scripts and it all looks like text. The same happens with HTML files.
	I know, there is no php.sl in the default distribution. But I found one in the Internet, I have it in my local Windows installation and it works fine. I uploaded a copy of php.sl to my $HOME directory and asked them to copy it to /jed/lib/ where all other .sl files are. I tried adding -*- php -*- to the first line of the script and it didn't work either. I actually close Jed and launch it again every time to check the new changes. I tried adding -*- html -*- to the first line of the script, and HTML syntax highlighting was applied to the file. But how come the php.sl file works in my local Windows installation but not in my shell account?
	I know that syntax highlighting is working because I can edit my local .jedrc file and it is full of color. And if I add -*- slang -*- to the top of the script instead of -*- php -*-, it comes alive with all slang colors, which by the way are just the colors I set up in my $HOME/.jedrc rather than slang.sl colors, I guess.
	What am I missing here, please? How can I make Jed recognize and apply syntax highlighting correctly?

	Feature request:
	Syntax highlighting applied automatically based on recognition of the file extension is not bad at all, but I really think the .jedrc should give us a chance to override it. I say that because I use mainly PHP and HTML pages. To make things worse, I have a lot of included files whose extension are either .inc or .txt. I use the two file extensions in the names of includes to identify their purpose in the whole setup. I really would like to be able to view all of these file formats with the same syntax highlighting definitions. In Windows, I made a global syntax highlighting definition in UltraEdit that applies to all files I open until I activate another definition with a shortcut. In other words, I wish that single set of color options we define in .jedrc could be applied to all file types.

	Some more assorted questions:
	- syntax highlighting is correctly applied to .html files, but not to .htm files. Can that be corrected without actually opening the html.sl file, learning how it works and hacking it?
	- I noticed that .jedrc (Linux) and jed.rc (Windows) are different in that in jed.rc you can point to a color-definition file. In Windows, you can change all the colors on the fly like a theme, but that is not possible in Linux. Is that correct?
	- in Windows, we cannot change Mode on the fly. Is that correct?
	- BTW, my %HOME/.jedrc file says that the menu bar should be visible, but it is not. How come?
	- hitting Esc ?? all the time to open the menu bar is such a pain. Is there any other keyboard shortcut? I haven't been able to find it.

	Thank you again,
	Luciano Espirito Santo
	Santos - SP - Brasil



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


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