ubuntu gedit syntax highlighting

Started by Jonsul, December 04, 2010, 03:14:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jonsul

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.

handsource-dyko

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.

osk

Well, you can get gtksourceview's bennu-highlighting files from here:
https://launchpad.net/~josebagar/+archive/ppa

josebita

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:

josebita

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.

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 :(

DCelso

Oh, and Is possible to compile and run inside of gedit?
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

josebita

Not directly, I believe you can configure some plugins for that, but I'm not sure.

DCelso

cagoen, If you discover how to do it say me, ok?
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/


Sslaxx

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?
Stuart "Sslaxx" Moore.

josebita

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?

Sslaxx

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.
Stuart "Sslaxx" Moore.

gecko

#12
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
Torres Baldi Studio
http://torresbaldi.com

josebita

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, 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. 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 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).

gecko

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.
Torres Baldi Studio
http://torresbaldi.com