Is it possible to provide a hint for Kate which highlighting to use for a given document (inside the document itself) so that I don't have to set it manually? If so, in which syntax?


This is called a modeline. Kate has support for this. E.g. you can add this to your file:

# kate: syntax python;

See here, here or here for some documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.