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

List:       ktexteditor-devel
Subject:    Re: Automatic syntax colouring in Kate
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2005-11-29 18:15:25
Message-ID: 200511291915.25643.dhdev () gmx ! de
[Download RAW message or body]

On Tuesday 29 November 2005 12:21, Com MN PG P E B Consultant 3 wrote:
> 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

http://www.kate-editor.org/index.php/Modelines
In your case something like: kate: hl Bash;

PS: Usually such questions go to kwrite-devel@kde.org :)

Greetings,
-- 
Dominik
_______________________________________________
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