Anno domini 2024 Mon, 5 Aug 22:53:07 +0900 Michele Calgaro via tde-users scripsit: > On 2024/08/05 05:44 PM, Dr. Nikolaus Klepp via tde-users wrote: > > Hi all! > > > > Does somebody know where I can add global syntax highlighing styles for kate? IMO the users styles are created in /etc/trinity/katesyntaxhighlightingrc by the first invocation of /opt/trinity/lib/trinity/libkatepart.so. But I did bot find a config file where these globals come from or where to change/add styles. > > > > Nik > > > > Hi Nik, > Kate syntax files are stored in /opt/trinity/share/apps/katepart/syntax and if you want to add one, you need to do two > things: > > 1. create the syntax file > 2. add the new file in the list in update-files.xml > > Cheers > Michele > > Hi Michele, Not exactly what I'm looking for. /opt/trinity/share/apps/katepart/syntax lets me add a language-to-identifier mapping. I'm looking for the identifies-to-color mapping, as they are created in ~/.trinity/share/config/katesyntaxhighlightingrc. e,g,: This is the standard "Normal" style / color schema that's created when kate is started the first time: [Default Item Styles - Schema kate - Normal] Alert=ff000000,ffffcccc,1,,,,ffffcccc,-,--- Base-N Integer=ff008080,ff00ffff,,,,,-,-,--- Character=ffff00ff,ffff00ff,,,,,-,-,--- Comment=ff808080,ffa0a0a4,,1,,,-,-,--- Data Type=ff800000,ffffffff,,,,,-,-,--- Decimal/Value=ff0000ff,ff00ffff,,,,,-,-,--- Error=ffff0000,ffff0000,,,,1,-,-,--- Floating Point=ff800080,ff00ffff,,,,,-,-,--- Function=ff000080,ffffffff,,,,,-,-,--- Keyword=ff000000,ffffffff,1,,,,-,-,--- Normal=ff000000,ffffffff,,,,,-,-,--- Others=ff008000,ff00ff00,,,,,-,-,--- Region Marker=ffffffff,ffa0a0a4,,,,,ffa0a0a4,-,--- String=ffdd0000,ffff0000,,,,,-,-,--- Now I'd like to add dark themes globally to the list, in my case e.g for "Default" and "C": [Default Item Styles - Schema Dunkel] Alert=ffffcccc,ffffcccc,1,,,,ff406080,-,--- Base-N Integer=ff80ffff,ff00ffff,,,,,-,-,--- Character=ffff80ff,ffff00ff,,,,,-,-,--- Comment=ff5555ff,ff5555ff,0,1,0,,-,-,--- Data Type=ffffa000,ffdd8000,1,,,,-,-,--- Decimal/Value=ff8080ff,ff00ffff,,,,,-,-,--- Error=ffff0000,ffff0000,,,,1,-,-,--- Floating Point=ffff80ff,ff00ffff,,,,,-,-,--- Function=ff8080ff,ffffffff,,,,,-,-,--- Keyword=ffaaaaaa,ffaaaaaa,0,,,,-,-,--- Normal=ffffffff,ffffffff,,,,,-,-,--- Others=ff80ff80,ff00ff00,,,,,-,-,--- Region Marker=ffffffff,ffeeeeee,,,,,ff333333,-,--- String=ff64c864,ff64c864,1,,,,-,-,--- [Highlighting C - Schema Dunkel] Alerts:Alert=10,,,,,,,,,--- Alerts:Normal Text=0,,,,,,,,,--- C:Alert=10,,,,,,,,,--- C:Binary=4,,,,,,,,,--- C:Char=6,,,,,,,,,--- C:Comment=8,ff4040ff,ff8080ff,1,1,,,,,--- C:Data Type=2,,,,,,,,,--- C:Decimal=3,,,,,,,,,--- C:Error=13,,,,,,,,,--- C:Float=5,,,,,,,,,--- C:Hex=4,,,,,,,,,--- C:Keyword=1,ffffeedd,ffffffff,1,,,,,,--- C:Normal Text=0,,,,,,,,,--- C:Octal=4,,,,,,,,,--- C:Prep. Lib=9,,,,,,,,,--- C:Preprocessor=9,,,,,,,,,--- C:Region Marker=12,,,,,,,,,--- C:String=7,,,,,,,,,--- C:String Char=6,,,,,,,,,--- C:Symbol=0,ffccffcc,ffffffff,,,,,,,--- Doxygen:Attention=1,ffe85848,ffe85848,1,0,,,,,--- Doxygen:Code=8,,,,,,,,,--- Doxygen:Comment=8,ff0000ff,ffffffff,,1,,,,,--- Doxygen:Custom Tags=0,ff458c61,,1,0,,,,,--- Doxygen:Description=7,ffff0000,,,,,,,,--- Doxygen:Dot Graph=8,ff00a000,ffffffff,,1,,,,,--- Doxygen:Entities=9,ff4086c0,,1,1,,,,,--- Doxygen:Formulas=8,ff00a000,ffffffff,,1,,,,,--- Doxygen:HTML Comment=8,,,,,,,,,--- Doxygen:HTML Tag=1,ffffffff,ffffffff,1,0,,,,,--- Doxygen:Identifier=9,,,,,,,,,--- Doxygen:Message Sequence Chart=8,ff00a000,ffffffff,,1,,,,,--- Doxygen:Normal Text=0,,,,,,,,,--- Doxygen:Note=1,ff81ca2d,ff81ca2d,1,0,,,,,--- Doxygen:Region=12,,,,,,,,,--- Doxygen:Tags=1,ffca60ca,ffffffff,1,0,,,,,--- Doxygen:Todo=1,ffca60ca,ffffffff,1,0,,,,,--- Doxygen:Types=2,,,,,,,,,--- Doxygen:Verbatim=8,,,,,,,,,--- Doxygen:Warning=1,ffca9219,ffca9219,1,0,,,,,--- Doxygen:Word=1,ff0095ff,ffffffff,1,0,,,,,--- Now my question is, where do I put that to make it available to all users? Nik -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ... ____________________________________________________ tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx