[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ktexteditor-devel
Subject:    Automatic syntax colouring in Kate
From:       "Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com () siemens ! com>
Date:       2005-11-29 11:21:30
Message-ID: 6F0CB04509C11D46A54232E852E390AC8906F7 () MCHP7R6A ! ww002 ! siemens ! net
[Download RAW message or body]

I like the syntax colouring in Kate. It would be, however, convenient,
if
Kate could recognize by itself, how to choose syntax highlighting, when
opening a file.

Emacs for example, deduces the highlight mode by inspecting the first
line.
If it contains a certain string (easily embeddable inside a comment),
such
as -*- bash -*-, emacs uses syntax highlighting for bash. If there is no
such
string, but a #! line, it uses this information to turn on syntax
highlighting.

I don't know whether this is possible with Kate too. 

I'm using Kate 2.1 on RedHat 3.1.3.

Ronald
_______________________________________________
Ktexteditor-devel mailing list
Ktexteditor-devel@kde.org
https://mail.kde.org/mailman/listinfo/ktexteditor-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic