OpenSCAD/kate syntax file

by nerd256, published

OpenSCAD/kate syntax file by nerd256 Aug 30, 2012


Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Thing Statistics

4426Views 1177Downloads Found in 3D Printing


For those Linux users. Adds syntax highlighting for OpenSCAD files in the kate (and thus kwrite, among others) editors.


Install openscad.xml into your kate syntax file directory. For me (Kubuntu), this is:


Note: You must re-open kate/kwrite to recognize the new file. You may also have to manually set the highlighting via "Tools->Mode->Other->OpenSCAD"

Adapted from the notepad++ syntax file and the povray.xml syntax file which came with kate.

More from 3D Printing

view more

All Apps

Upgrade this Thing with Thingiverse Apps

No results.


to add highlighting new way:

1) in Kate go to Settings menu, choose Configure Kate..., go into Open/Save and on Modes & Filetypes tab click Download Highlighting Files... and then Install.

2) locate your KDE default configuration directory by this command as user qtpaths --paths GenericDataLocation

You will get few of them, but use the users one (/home/user/.local/share on first place in most cases) and than navigate to org.kde.syntax-highlighting/syntax in that directory.

3) extract xml file to this directory and restart Kate

On Windows copy xml to \AppData\Local\org.kde.syntax-highlighting\syntax in your user profile directory. (I did not tested that one, but should work according to KDE website.

Hi, thank you for this.

Is possible to you upload the file on github? For things that are code is easier to improve and contribute!

Hello Nerd and others,

In KDE 5 the location for the syntax file has changend!

You need to put it in here now:


If that does not help, make sure to "Download Highlighting" in the kate settings.

PS: Nerd does the highlighting needs updating for the new openscad version ?

NIce addition crunch. I didn't really have any problem uploading my file but the interface has probably changed since then.


Many thanks for your work with syntax higlighting, without you i would have never used openscad (as i dont like the build in editor)!

So i made a little "code completion" addon for kate to make it easyer for me to code.

Check out my kate openscad snippet colletion for added fun in creating stuff with kate and openscad: http://www.thingiverse.com/thing:570634

PS: how did you get around the upload a 3d objekt as a file ?


OpenSCAD Kate Snippets - Code completion and more

Exactly what I was looking for, thanks!

Very useful! Thanks :-)