Bennu Game Development

English Forums => Helpdesk => Topic started by: Jonsul on December 04, 2010, 03:14:36 AM

Title: ubuntu gedit syntax highlighting
Post by: Jonsul on December 04, 2010, 03:14:36 AM
I saw the post on the blog saying that ubuntu now had bennu syntax highlighting by default, but I can't seem to find it at all. Did they decide to take it out suddenly. I installed both ubuntu and jolicloud on a netbook cause my main computer just died :/  Reason why I've been gone a few weeks by the way. I left something too close to my computer and blocked the fan.
Title: Re: ubuntu gedit syntax highlighting
Post by: handsource-dyko on December 04, 2010, 09:39:14 AM
Well, I couldn't find it either. I'm using ububtu as well. I guess the ubuntu people like to
mess about with things once in a while.

Anyway I mainly devlop on windows, I'm running ubuntu in the so called wubi mode, since
I only use it for testing.
Title: Re: ubuntu gedit syntax highlighting
Post by: osk on December 04, 2010, 11:30:17 AM
Well, you can get gtksourceview's bennu-highlighting files from here:
https://launchpad.net/~josebagar/+archive/ppa
Title: Re: ubuntu gedit syntax highlighting
Post by: josebita on December 04, 2010, 05:16:54 PM
No, don't use that. That's outdated.
You just have to select "BennuGD" in "View->Highlight modes->Sources", or in the menu in the bottom:
(http://forum.bennugd.org/index.php?action=dlattach;topic=1847.0;attach=1637)
Title: Re: ubuntu gedit syntax highlighting
Post by: josebita on December 04, 2010, 05:26:33 PM
I'm very sorry for that, I'm seeing that it ins't actually included by default. It is in Fedora and in the next Ubuntu release (natty) as seen here (http://packages.ubuntu.com/search?searchon=contents&keywords=bennugd.lang&mode=exactfilename&suite=natty&arch=any).

I'm really sorry. When I published that post I really thought it was included. Please copy the attached file to /usr/share/gtksourceview-2.0/language-specs/ by typing this in a console from the directory where it was downloaded:
[code language="bash"]sudo cp bennugd.txt /usr/share/gtksourceview-2.0/language-specs/bennugd.lang[/code]
And that should do it.

Again, I'm sorry for that :(
Title: Re: ubuntu gedit syntax highlighting
Post by: DCelso on December 04, 2010, 05:35:19 PM
Oh, and Is possible to compile and run inside of gedit?
Title: Re: ubuntu gedit syntax highlighting
Post by: josebita on December 04, 2010, 07:14:37 PM
Not directly, I believe you can configure some plugins for that, but I'm not sure.
Title: Re: ubuntu gedit syntax highlighting
Post by: DCelso on December 04, 2010, 08:03:37 PM
cagoen, If you discover how to do it say me, ok?
Title: Re: ubuntu gedit syntax highlighting
Post by: Jonsul on December 06, 2010, 09:28:54 AM
Thanks guys^^
Title: Re: ubuntu gedit syntax highlighting
Post by: Sslaxx on May 16, 2011, 03:11:51 PM
I really don't want to dredge up this old topic, but the highlighting file was not included with Gedit in Natty, though josebita's attachment supplied here works just fine. I suspect that this might be because BennuGD is not supplied in the default Ubuntu repos?
Title: Re: ubuntu gedit syntax highlighting
Post by: josebita on May 16, 2011, 06:36:24 PM
It's included in libgtksourceview-3.0-common in natty. Have a look at:
http://packages.ubuntu.com/natty/all/libgtksourceview-3.0-common/filelist

Maybe you've got some other version installed manually that is conflicting with that file?
Title: Re: ubuntu gedit syntax highlighting
Post by: Sslaxx on May 18, 2011, 11:37:35 AM
Ah, that's the version GTK+3 uses, which I don't have installed. No real use for installing GTK+3 yet, seeing as none of the GNOME/GTK+ apps I use have actually switched to it it, so I'll just do what I did.
Title: Re: ubuntu gedit syntax highlighting
Post by: gecko on September 11, 2011, 09:21:27 PM
Is copying it manually still the only way of getting syntax highlight in Ubuntu?

I've installed ubuntu using josebita's repositories and there wasn't any package for syntax highlight
Title: Re: ubuntu gedit syntax highlighting
Post by: josebita on September 11, 2011, 09:43:16 PM
You shouldn't use the syntax highlighting package provided by my repo anymore.
BennuGD syntax highlighting has been available by default for a long time in gedit but, unfortunately, it hasn't arrived to default ubuntu desktops yet because ubuntu is still using and old gnome2 version of gedit/gtksourceview.
If you install the gnome3 desktop (from the gnome3-team ppa (https://launchpad.net/~gnome3-team/+archive/gnome3), for example) you'll see that it's there by default. In fact, it entered the gtksourceview source tree on the 21st of June 2010 (https://bugzilla.gnome.org/show_bug.cgi?id=618552#c15). It's sad that usersle haven't already received this after more than a year in the official repo...

I'm sorry this hasn't arrived yet but I _believe_ that the next version of Ubuntu shipping this October, which is going to feature a version of Unity based upon gnome3 should (http://packages.ubuntu.com/search?searchon=contents&keywords=bennugd.lang&mode=exactfilename&suite=oneiric&arch=any) bring bennugd syntax highlighting by default, but I've said this a couple of times already...

So, to sum up, you can either install it manually or switch to the gnome3 desktop (please remember that gnome3 and unity cannot coexist in natty).
Title: Re: ubuntu gedit syntax highlighting
Post by: gecko on September 11, 2011, 10:56:38 PM
Thanks for the info!

I'm waiting the next ubuntu version to see if it is there by default, meanwhile im just using the "hand-copied" file.
Title: Re: ubuntu gedit syntax highlighting
Post by: MisterN on September 12, 2011, 02:41:23 AM
I couldnt get bennu in the latest ubuntu :/
Title: Re: ubuntu gedit syntax highlighting
Post by: josebita on September 12, 2011, 11:11:11 AM
Quote from: DoctorN on September 12, 2011, 02:41:23 AM
I couldnt get bennu in the latest ubuntu :/
What does that mean? Bennu works flawlessly in the latest Ubuntu, at least for me.
Title: Re: ubuntu gedit syntax highlighting
Post by: gecko on September 12, 2011, 03:56:07 PM
For me too :)

The wiki tutorial is perfect.