Adding new file extension on Kwrite
Did you know on Kwrite editor can be added a new file extension?. So, Kwrite can directly recognizing when you opened that file. Here some tips to do that.
First, after you opened Kwrite editor, please click on menu > settings > configure editor.
After that, a new window viewed on you.
On the left column select icon diskette (Open/Save) and on the right select modes & Filetypes button bar.
To add a new file extension, please click on the new button. Please write below on the properties a new file extension, for example, if you want to added a file extension *.tpl (file HTML template) like:
name : HTML
Template Section :Markup
Variables: kate;
Highlighting : Markup/HTML
File extension : *.tpl
MIME types : text/html
And then click ok. If you want to adding a new extension into existing file extension, you just click on filetype button, and choose a file extension that you want and then, on the file extensions row please write a new extension on that with a separate “;”. Now your Kwrite editor ready to read a new file extensions with a highlighting on it.
That’s simple don’t ya…?
