vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
542 stars 90 forks source link

KDE syntax highlighting erratum #320

Closed jamadagni closed 2 years ago

jamadagni commented 2 years ago

Hello. The docs page on editing modes says:

Syntax highlighting support for the KDE editor Kate can be enabled by running asy-kate.sh in the /usr/local/share/asymptote directory and putting the generated asymptote.xml file in ~/.kde/share/apps/katepart/syntax/.

However, this is no longer true with KDE 5. As per the KDE documentation:

Custom .xml highlight definition files are located in org.kde.syntax-highlighting/syntax/ in your user folder found with qtpaths --paths GenericDataLocation which usually are $HOME/.local/share/ and /usr/share/.

I confirm that the above new location works with latest Kate on Kubuntu 22.04.

Hence the document should be updated to refer to the current path.

While we are at it, it would be good if in the XML file, the name="asymptote" be capitalized to name="Asymptote". Makes for nicer reading in the UI.

johncbowman commented 2 years ago

Could you please confirm that commit 694902944ba06f3c77dad9bc0bcc4e465fa7e1d4 satisfactorily addresses this issue?

jamadagni commented 2 years ago

Hello. Thanks for your attention. The full path is $HOME/.local/share/org.kde.syntax-highlighting/syntax/ and not just till share/.

jamadagni commented 2 years ago

Thanks!