Change directory for Kate syntax highlighting files
Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
I'm running Standard Debian Wheezy with KDE 4.8.4 and Kate 3.8.4.
The Kate text editor's syntax highlighting files are located in:
/usr/share/kde4/apps/katepart/syntax
If I run
kde4-config --prefix
this gives
/usr
and $KDEDIR is empty. This results in that only XML files in the upper direcory are used for highlighting.
In several other forums, I saw that it should work to create a folder "syntax" in
~/.kde/share/apps/katepart/
If I put syntax-highlighting files there on my system, they appear to be ignored.
How can someone change/set the directory for the syntax-highlighting files used by Kate to an arbitrary directory?
kde kde4 syntax-highlighting kate
add a comment |Â
up vote
6
down vote
favorite
I'm running Standard Debian Wheezy with KDE 4.8.4 and Kate 3.8.4.
The Kate text editor's syntax highlighting files are located in:
/usr/share/kde4/apps/katepart/syntax
If I run
kde4-config --prefix
this gives
/usr
and $KDEDIR is empty. This results in that only XML files in the upper direcory are used for highlighting.
In several other forums, I saw that it should work to create a folder "syntax" in
~/.kde/share/apps/katepart/
If I put syntax-highlighting files there on my system, they appear to be ignored.
How can someone change/set the directory for the syntax-highlighting files used by Kate to an arbitrary directory?
kde kde4 syntax-highlighting kate
I'm using Debian Wheezy, KDE 4.8.4, Kate 3.8.4 and the current directory is:/usr/share/kde4/apps/katepart/syntax
â Dr Beco
Sep 27 '14 at 3:18
You're right. This was only typo. I corrected this in my question, thanks.
â Chrispie
Oct 6 '14 at 13:32
reddit.com/r/kde/comments/67o0sd/â¦
â sancho.s
Oct 21 '17 at 10:19
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I'm running Standard Debian Wheezy with KDE 4.8.4 and Kate 3.8.4.
The Kate text editor's syntax highlighting files are located in:
/usr/share/kde4/apps/katepart/syntax
If I run
kde4-config --prefix
this gives
/usr
and $KDEDIR is empty. This results in that only XML files in the upper direcory are used for highlighting.
In several other forums, I saw that it should work to create a folder "syntax" in
~/.kde/share/apps/katepart/
If I put syntax-highlighting files there on my system, they appear to be ignored.
How can someone change/set the directory for the syntax-highlighting files used by Kate to an arbitrary directory?
kde kde4 syntax-highlighting kate
I'm running Standard Debian Wheezy with KDE 4.8.4 and Kate 3.8.4.
The Kate text editor's syntax highlighting files are located in:
/usr/share/kde4/apps/katepart/syntax
If I run
kde4-config --prefix
this gives
/usr
and $KDEDIR is empty. This results in that only XML files in the upper direcory are used for highlighting.
In several other forums, I saw that it should work to create a folder "syntax" in
~/.kde/share/apps/katepart/
If I put syntax-highlighting files there on my system, they appear to be ignored.
How can someone change/set the directory for the syntax-highlighting files used by Kate to an arbitrary directory?
kde kde4 syntax-highlighting kate
kde kde4 syntax-highlighting kate
edited Oct 6 '14 at 13:30
asked Jan 5 '14 at 12:58
Chrispie
1,8231914
1,8231914
I'm using Debian Wheezy, KDE 4.8.4, Kate 3.8.4 and the current directory is:/usr/share/kde4/apps/katepart/syntax
â Dr Beco
Sep 27 '14 at 3:18
You're right. This was only typo. I corrected this in my question, thanks.
â Chrispie
Oct 6 '14 at 13:32
reddit.com/r/kde/comments/67o0sd/â¦
â sancho.s
Oct 21 '17 at 10:19
add a comment |Â
I'm using Debian Wheezy, KDE 4.8.4, Kate 3.8.4 and the current directory is:/usr/share/kde4/apps/katepart/syntax
â Dr Beco
Sep 27 '14 at 3:18
You're right. This was only typo. I corrected this in my question, thanks.
â Chrispie
Oct 6 '14 at 13:32
reddit.com/r/kde/comments/67o0sd/â¦
â sancho.s
Oct 21 '17 at 10:19
I'm using Debian Wheezy, KDE 4.8.4, Kate 3.8.4 and the current directory is:
/usr/share/kde4/apps/katepart/syntax
â Dr Beco
Sep 27 '14 at 3:18
I'm using Debian Wheezy, KDE 4.8.4, Kate 3.8.4 and the current directory is:
/usr/share/kde4/apps/katepart/syntax
â Dr Beco
Sep 27 '14 at 3:18
You're right. This was only typo. I corrected this in my question, thanks.
â Chrispie
Oct 6 '14 at 13:32
You're right. This was only typo. I corrected this in my question, thanks.
â Chrispie
Oct 6 '14 at 13:32
reddit.com/r/kde/comments/67o0sd/â¦
â sancho.s
Oct 21 '17 at 10:19
reddit.com/r/kde/comments/67o0sd/â¦
â sancho.s
Oct 21 '17 at 10:19
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
8
down vote
accepted
I found a solution just by chance:
Settings -> Kate config -> Open/Save -> File types
If I click on "Download syntax-highlighting files", all files which are already installed and can be updated (a newer version is available) are marked here. Then a click on "Install" updates alle these files. After that the folder
~/.kde/share/apps/katepart/syntax
exists and includes all installed XML files. Now I can add additional files to that folder or can modify the existing files therein. The modifications will be applied after restarting Kate.
This solves my problem for the moment. But I don't understand why it works in this way! (Maybe someone can comment on that)
The other open task is how one can choose a different folder for the XML files.
5
As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
â Datalore
Feb 2 '15 at 0:37
add a comment |Â
up vote
2
down vote
For the latest version of Kate, placing syntax xml files in this directory works:
~/.local/share/katepart5/syntax
Thanks @Datalore
add a comment |Â
up vote
0
down vote
Yes, thank You, for new Kate version I need go to the new location from katepart5
and I need use version downloaded from Kate site, because version from Ubuntu repository is not working. Is not possible to add or change syntax if is needed.
~/.local/share/katepart5/syntax
New contributor
We already have an Answer with that path so thereâÂÂs no need to repeat it.
â Jeff Schaller
2 mins ago
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
accepted
I found a solution just by chance:
Settings -> Kate config -> Open/Save -> File types
If I click on "Download syntax-highlighting files", all files which are already installed and can be updated (a newer version is available) are marked here. Then a click on "Install" updates alle these files. After that the folder
~/.kde/share/apps/katepart/syntax
exists and includes all installed XML files. Now I can add additional files to that folder or can modify the existing files therein. The modifications will be applied after restarting Kate.
This solves my problem for the moment. But I don't understand why it works in this way! (Maybe someone can comment on that)
The other open task is how one can choose a different folder for the XML files.
5
As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
â Datalore
Feb 2 '15 at 0:37
add a comment |Â
up vote
8
down vote
accepted
I found a solution just by chance:
Settings -> Kate config -> Open/Save -> File types
If I click on "Download syntax-highlighting files", all files which are already installed and can be updated (a newer version is available) are marked here. Then a click on "Install" updates alle these files. After that the folder
~/.kde/share/apps/katepart/syntax
exists and includes all installed XML files. Now I can add additional files to that folder or can modify the existing files therein. The modifications will be applied after restarting Kate.
This solves my problem for the moment. But I don't understand why it works in this way! (Maybe someone can comment on that)
The other open task is how one can choose a different folder for the XML files.
5
As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
â Datalore
Feb 2 '15 at 0:37
add a comment |Â
up vote
8
down vote
accepted
up vote
8
down vote
accepted
I found a solution just by chance:
Settings -> Kate config -> Open/Save -> File types
If I click on "Download syntax-highlighting files", all files which are already installed and can be updated (a newer version is available) are marked here. Then a click on "Install" updates alle these files. After that the folder
~/.kde/share/apps/katepart/syntax
exists and includes all installed XML files. Now I can add additional files to that folder or can modify the existing files therein. The modifications will be applied after restarting Kate.
This solves my problem for the moment. But I don't understand why it works in this way! (Maybe someone can comment on that)
The other open task is how one can choose a different folder for the XML files.
I found a solution just by chance:
Settings -> Kate config -> Open/Save -> File types
If I click on "Download syntax-highlighting files", all files which are already installed and can be updated (a newer version is available) are marked here. Then a click on "Install" updates alle these files. After that the folder
~/.kde/share/apps/katepart/syntax
exists and includes all installed XML files. Now I can add additional files to that folder or can modify the existing files therein. The modifications will be applied after restarting Kate.
This solves my problem for the moment. But I don't understand why it works in this way! (Maybe someone can comment on that)
The other open task is how one can choose a different folder for the XML files.
answered Jan 10 '14 at 9:20
Chrispie
1,8231914
1,8231914
5
As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
â Datalore
Feb 2 '15 at 0:37
add a comment |Â
5
As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
â Datalore
Feb 2 '15 at 0:37
5
5
As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
â Datalore
Feb 2 '15 at 0:37
As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
â Datalore
Feb 2 '15 at 0:37
add a comment |Â
up vote
2
down vote
For the latest version of Kate, placing syntax xml files in this directory works:
~/.local/share/katepart5/syntax
Thanks @Datalore
add a comment |Â
up vote
2
down vote
For the latest version of Kate, placing syntax xml files in this directory works:
~/.local/share/katepart5/syntax
Thanks @Datalore
add a comment |Â
up vote
2
down vote
up vote
2
down vote
For the latest version of Kate, placing syntax xml files in this directory works:
~/.local/share/katepart5/syntax
Thanks @Datalore
For the latest version of Kate, placing syntax xml files in this directory works:
~/.local/share/katepart5/syntax
Thanks @Datalore
answered Mar 13 at 14:52
Alexander
5,64812043
5,64812043
add a comment |Â
add a comment |Â
up vote
0
down vote
Yes, thank You, for new Kate version I need go to the new location from katepart5
and I need use version downloaded from Kate site, because version from Ubuntu repository is not working. Is not possible to add or change syntax if is needed.
~/.local/share/katepart5/syntax
New contributor
We already have an Answer with that path so thereâÂÂs no need to repeat it.
â Jeff Schaller
2 mins ago
add a comment |Â
up vote
0
down vote
Yes, thank You, for new Kate version I need go to the new location from katepart5
and I need use version downloaded from Kate site, because version from Ubuntu repository is not working. Is not possible to add or change syntax if is needed.
~/.local/share/katepart5/syntax
New contributor
We already have an Answer with that path so thereâÂÂs no need to repeat it.
â Jeff Schaller
2 mins ago
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Yes, thank You, for new Kate version I need go to the new location from katepart5
and I need use version downloaded from Kate site, because version from Ubuntu repository is not working. Is not possible to add or change syntax if is needed.
~/.local/share/katepart5/syntax
New contributor
Yes, thank You, for new Kate version I need go to the new location from katepart5
and I need use version downloaded from Kate site, because version from Ubuntu repository is not working. Is not possible to add or change syntax if is needed.
~/.local/share/katepart5/syntax
New contributor
New contributor
answered 5 mins ago
maxim-25
1
1
New contributor
New contributor
We already have an Answer with that path so thereâÂÂs no need to repeat it.
â Jeff Schaller
2 mins ago
add a comment |Â
We already have an Answer with that path so thereâÂÂs no need to repeat it.
â Jeff Schaller
2 mins ago
We already have an Answer with that path so thereâÂÂs no need to repeat it.
â Jeff Schaller
2 mins ago
We already have an Answer with that path so thereâÂÂs no need to repeat it.
â Jeff Schaller
2 mins ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f107957%2fchange-directory-for-kate-syntax-highlighting-files%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I'm using Debian Wheezy, KDE 4.8.4, Kate 3.8.4 and the current directory is:
/usr/share/kde4/apps/katepart/syntax
â Dr Beco
Sep 27 '14 at 3:18
You're right. This was only typo. I corrected this in my question, thanks.
â Chrispie
Oct 6 '14 at 13:32
reddit.com/r/kde/comments/67o0sd/â¦
â sancho.s
Oct 21 '17 at 10:19