|
Cube & Cube 2 FORUM
|
Cubescript Syntax Highlighting Rules |
by Hirato Kirata
on 07/18/2011 19:30, 3 messages, last message: 07/30/2011 17:35, 1616 views, last view: 05/01/2024 19:10 |
|
Greetings.
I've spend the last 8 or so hours messing with KATE's ( http://kate-editor.org/ ) XML files, and I've managed to get a basic and functional ruleset going.
http://dl.dropbox.com/u/23891252/CubeScript2.jpeg
So if you utilise a text editor that uses the kate kpart, such as kate, kdevelop, kwrite or qtCreator (they only use the highlighting rules), just grab the following pastebin and save it in ~/.kde4/share/apps/katepart/syntax as cubescript.xml and you should be golden.
http://pastebin.com/06p9ZBCL
Feedback is most welcome and I hope it helps a few of you :)
(and no, I'm not going to convert it for EMACS, vim or <insert favourite editor here>)
|
|
Board Index
|
|
#1: Update |
by Hirato Kirata
on 07/22/2011 17:00
|
|
I've made numerous changes since that above post, including fixes, better compliance with the langauge.dtd as well as improved whatever.
In any case, the updated version can be found here
http://pastebin.com/PzZ8F78T
I've also sent it off to the kwrite/kate developers, and it MAY make it into a future release.
If you care to follow mailing lists and what not, you can currently monitor the progress of that here, though I'll warn you it has been mostly uneventful
http://lists.kde.org/?l=kwrite-devel&m=131106812007216&w=2
reply to this message
|
|
#2: Re: Update |
by marco23
on 07/29/2011 19:28, refers to #1
|
|
maybe is a dumb question, but how can i import your language file in kate?
the list seems armored... i cant' find an option to add the new file in the list :(
reply to this message
|
|
#3: Re: Update |
by Hirato Kirata
on 07/30/2011 17:35, refers to #2
|
|
If you've placed it in an appropriate location, it'll be available under the list of highlighters in the scripts area as CubeScript.
Locations you can place it include
~/.kde/share/apps/katepart/syntax (most distros)
`/.kde4/share/apps/katepart/syntax (other distros)
/usr/share/apps/katepart/syntax
There is no import option (unfortunately)
reply to this message
|
|
|
Board Index
|
|
Unvalidated accounts can only reply to the 'Permanent Threads' section!
|
|
|
|
|