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
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
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
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:
- create the syntax file
- 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 ...
Anno domini 2024 Mon, 5 Aug 16:10:48 +0200 Dr. Nikolaus Klepp via tde-users scripsit:
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:
Ok, I found a workaround, but there should be an easier way:
- create a color schema tt you'd like to use globally - give it a nice name ("Darkness" in my case) - as root: # cat .trinity/share/config/katesyntaxhighlightingrc | awk '/Darkness/ { a=1; } /^$/ { if (a==1) print ""; a=0 } { if (a==1) print $0 }' >> /etc/trinity/katesyntaxhighlightingrc # cat .trinity/share/config/kateschemarc | awk '/Darkness/ { a=1; } /^$/ { if (a==1) print ""; a=0 } { if (a==1) print $0 }' >> /etc/trinity/kateschemarc
Now when you open kate you can select "Color Schema: Darkness" from the list of available schemas.
In case somebody else want's to test it: I've included /etc/tinity/kateschemarc and /etc/trinity/katesyntaxhighlightingrc in the attached archive. Just unpack it to /etc/trinity/ and try.
As kate is missing a dark theme, is there a way to include it in TDE to make it available to everybody?
Nik
- create the syntax file
- 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@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On 2024/08/05 11:54 PM, Dr. Nikolaus Klepp via tde-users wrote:
As kate is missing a dark theme, is there a way to include it in TDE to make it available to everybody?
Hi Nik, you can create a PR on TGW for inclusion into TDE code :-) Don't remember if you are a Contributor or not, if not let us know and we can enable that. You need to be a Contributor to create PRs. Cheers Michele
Anno domini 2024 Sun, 11 Aug 17:43:29 +0900 Michele Calgaro via tde-users scripsit:
On 2024/08/05 11:54 PM, Dr. Nikolaus Klepp via tde-users wrote:
As kate is missing a dark theme, is there a way to include it in TDE to make it available to everybody?
Hi Nik, you can create a PR on TGW for inclusion into TDE code :-) Don't remember if you are a Contributor or not, if not let us know and we can enable that. You need to be a Contributor to create PRs.
Hi Michele,
I have a account on TGW (office@klepp.biz), but I don't know if I can create PRs. Would be nice, then I could add some wallpaters (my stuff) and themes :)
Nik
Cheers Michele
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
Hi Michele,
I have a account on TGW (office@klepp.biz), but I don't know if I can create PRs. Would be nice, then I could add some wallpaters (my stuff) and themes :)
Hi Nik,
I have added you to the Contributors list. A guide on how to create a PR is here: https://wiki.trinitydesktop.org/TDE_Gitea_Workspace#To_contribute_code_chang... Please note the branch-based contribution model (instead of the more common fork-based) and the DCO "-s" requirement.
Cheers Michele
Dr. Nikolaus Klepp via tde-users wrote:
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.
Nothing but root should be able to write in /etc, so how can it be written by first invocation? Everything user specific goes under ~/.trinity
--------------------------------------------------------------------- To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
Anno domini 2024 Mon, 12 Aug 16:08:06 +0200 deloptes via tde-users scripsit:
Dr. Nikolaus Klepp via tde-users wrote:
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.
Nothing but root should be able to write in /etc, so how can it be written by first invocation? Everything user specific goes under ~/.trinity
Sorry, I was not clear here: /etc/trinity/katesyntaxhighlightingrc is created when tde is installed. ~/.trinity/share/config/katesyntaxhighlightingrc is created when the user starts TDE (or kate?) for the first time. The styles placed there come from /opt/trinity/lib/trinity/libkatepart.so - but IMO there is no option to add styles. At least that was my thinking, till Michele pointed to /opt/trinity/share/config . I have not tried what hppens if I put styles there :)
Nik
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
Dr. Nikolaus Klepp via tde-users wrote:
Sorry, I was not clear here: /etc/trinity/katesyntaxhighlightingrc is created when tde is installed. ~/.trinity/share/config/katesyntaxhighlightingrc is created when the user starts TDE (or kate?) for the first time. The styles placed there come from /opt/trinity/lib/trinity/libkatepart.so - but IMO there is no option to add styles. At least that was my thinking, till Michele pointed to /opt/trinity/share/config . I have not tried what hppens if I put styles there :)
But you and I do not have /opt/trinity/share/config, so I do not know if Michele is actually right.
--------------------------------------------------------------------- To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting