3 Answers
3

Editing files in the first directory requires root permissions, and the syntax highlighting file will be available to every kate user in your environment. When the directory does not exist, create it in order to place the file.
Find the <language> tag, and modify the extensions attribute, as follows:

thanks, i got it already, forgot about this. Actaully you dont need to edit files at all.
–
wayneJun 16 '12 at 10:38

@wayne You only have to edit files if you want to use existing syntax files for new extensions. But if you use less.xml, then there's indeed no need to edit the file.
–
Rob WJun 16 '12 at 10:39

Hmm? Actually you are wrong you can just type the extensions in there (the options i pointed to in my answer) with a semicolons between them.
–
wayneJun 17 '12 at 14:34

@wayne The fact that it can also be done through the GUI does not invalidate my answer. As for the dates: My answer contained the link to the latest version of the file, the displayed command was an illustration of how to apply the files.
–
Rob WJun 17 '12 at 14:47

"You only have to edit files if you want to use existing syntax files for new extensions. But if you use less.xml, then there's indeed no need to edit the file." That IS wrong! I bet you did not know about the option and the fact that you do not "have to" edit the files at all is right! End if story!I never said it is invalid to say it can also be edited in the files itself. You also said nothing about just an illustration its the latest version from today and if someone comes here a year from now he reads "copy paste this" and thats a bad idea to do so.My answer is better!
–
wayneJun 17 '12 at 16:35

I think there is no option needed additional to that. But you only have to go to settings -> configure kate -> open/save -> modes & filetypes inside kate to edit what syntax files to be used for what filetypes. No need to edit files for that, good hidden option tough ;).

It's not recommended to use the css syntax for less because it simply not enough and it comletly breaks after comments among other stuff.

No need to go to a website to copy any files or change any settings, just go to your Kate settings and simply download the Less CSS highlighting file that is available through the GUI. Somebody made it very easy.