Linux IDE Kate (Syntax incl)

Monkey Archive Forums/Monkey Discussion/Linux IDE Kate (Syntax incl)

Super Slimer(Posted 2013) [#1]
Hi all,

Thought I would post this incase anyone else might find it useful.

Desktop shot.


I have a full setup running on Kate edtior (KDE Advanced Text Editor).
http://kate-editor.org/

I have this working.
- Syntax highlighting (for Monkey, mojo, and fantomEngine)
- Project Management (3.10 version only) using git
- Build support.

I am using a locally running nginx webserver to run the html5 builds.


I created the syntax file from the Monkey Docs, the gEdit Syntax file, and the fantomEngine Docs (You could easily strip out the fantom syntax if you wanted).

Syntax file, this goes in ~/.kde/share/apps/katepart/syntax/ or /usr/share/apps/katepart/syntax/ depending on your preference).
http://pastebin.com/RXFz5qV7

Load up Kate and test a monkey file it should have colours!


For project management you need Kate 3.10 or better. All that is required is to create a .kateproject file in the root of your project. This is what I am using, there are other options for file control.
http://pastebin.com/rTcFCrG3

See here for more info
http://kate-editor.org/2012/11/02/using-the-projects-plugin-in-kate/


Build support is nice and easy. (Note: I had to tell the build to run [build->build] before I could access the Target settings tab)



You just need to fill in your requirements on the Target settings tab it should be pretty self explanatory.


I actually have a copy of Jungle IDE, and I have to say I actually prefer Kate as an IDE. But then I don't use the auto-complete stuff.
EDIT: Kate does support auto-complete for local variables/methods btw.


Super Slimer(Posted 2013) [#2]
Fixed the syntax, was highlighting types incorrectly.

http://pastebin.com/HnUY9w50


slenkar(Posted 2013) [#3]
looks good
downloading...


I put the monkey.xml in the same folder as all the other xml files

/usr/share/kde4/apps/katepart/syntax

but it doesnt highlight
I even edited
/root/.kde/share/config/katesyntaxhighlightingrc
and added a monkey entry but still no luck


If I choose monkey from the highlighting menu it works though
it just doesnt detect the monkey extension by itself


P.s. how do access the build dialog?


Super Slimer(Posted 2013) [#4]
I am not sure about the monkey highlighting thing I do remember the first time I started it it did not auto detect but every time after it did. You may need to save a default Session in Kate?

For reference I am using Kate 3.10.3 on KDE 4.10.3 but it was working fine on KDE 4.8.5 as well.

Here is the monkey config from my ~/.kde/share/config/katesyntaxhighlightingrc

[Cache /home/daniel/.kde/share/apps/katepart/syntax/monkey.xml]
author=Daniel Rammelt (drammelt@...)
extension=*.monkey
hidden=false
indenter=
lastModified=1370303967
license=
mimetype=text/x-monkey
name=Monkey
priority=
section=Sources
style=
version=1.0

Also why /root/.kde ?????? Are you running it as root or your user?

The build dialog, you need to load the Build plugin if its not already loaded (Settings->Configure Kate->Plugins)
Then from the Build menu click Build and it pops up down the bottom. You can add as many targets as you like.


Super Slimer(Posted 2013) [#5]
Just a note...

it is ~/.kde or ~/.kde4 depending on your distro. I use Gentoo and Slackware and its different on each one so make sure you are putting it in the right folder in your home directory.