Change directory for Kate syntax highlighting files

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question























  • 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














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?










share|improve this question























  • 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












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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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
















  • 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










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.






share|improve this answer
















  • 5




    As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
    – Datalore
    Feb 2 '15 at 0:37

















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






share|improve this answer



























    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





    share








    New contributor




    maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

















    • We already have an Answer with that path so there’s no need to repeat it.
      – Jeff Schaller
      2 mins ago










    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
















    • 5




      As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
      – Datalore
      Feb 2 '15 at 0:37














    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.






    share|improve this answer
















    • 5




      As of katepart5, the standard directory is now ~/.local/share/katepart5/syntax
      – Datalore
      Feb 2 '15 at 0:37












    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.






    share|improve this answer












    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.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    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












    • 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












    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






    share|improve this answer
























      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






      share|improve this answer






















        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






        share|improve this answer












        For the latest version of Kate, placing syntax xml files in this directory works:



        ~/.local/share/katepart5/syntax


        Thanks @Datalore







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 13 at 14:52









        Alexander

        5,64812043




        5,64812043




















            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





            share








            New contributor




            maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

















            • We already have an Answer with that path so there’s no need to repeat it.
              – Jeff Schaller
              2 mins ago














            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





            share








            New contributor




            maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

















            • We already have an Answer with that path so there’s no need to repeat it.
              – Jeff Schaller
              2 mins ago












            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





            share








            New contributor




            maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            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






            share








            New contributor




            maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.








            share


            share






            New contributor




            maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            answered 5 mins ago









            maxim-25

            1




            1




            New contributor




            maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





            New contributor





            maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






            maxim-25 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.











            • 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




            We already have an Answer with that path so there’s no need to repeat it.
            – Jeff Schaller
            2 mins ago

















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay