[gedit-list] Syntax highlighting and mime types (was: Documentation for syntax highlighting files?)
- From: "Colin Brace" <cb lim nl>
- To: gedit-list gnome org
- Subject: [gedit-list] Syntax highlighting and mime types (was: Documentation for syntax highlighting files?)
- Date: Tue, 5 Dec 2006 13:23:52 +0100
Hi all,
What exactly are the criteria gedit uses to switch on syntax
highlighting? I have noticed that when I edit Rexx files, syntax
highlight is disabled *unless* the first line begins with "/*" (the
start of a comment), which is the customary way of identifying Rexx
files under OS/2. Under *nix however it is less than satisfactory, as
the first line is where the bash shebang needs to go
(#!/usr/bin/regina).
On 11/30/06, Matej Cepl <mcepl redhat com> wrote:
Seems to work well, only I had to create manually new mime-type to
~/.local/share/mime/packages/Override.xml
[...]
Seeing this thread made me take a look at some of the files in
/usr/share/mime and at Override.xml, but I don't see any indication
they would have any effect on this behavior. Given that gedit appears
to be taking the content of the file into consideration, would it be
possible to configure it to switch syntax highlighting on for Rexx,
when, for example, the first line is #!/usr/bin/regina?
Thanks.
--
Colin Brace
Amsterdam
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]