prs
November 24th, 2006, 10:47 AM
In gedit there are really useful snippets that can be used when coding. What really baffled me was why I didn't get any when I was in c++-mode.
I looked in /usr/share/gedit-2/plugins/snippets and there was a c++.xml file there.
When I created a dummy snippet inside gedit the snippet was saved in ~/.gnome2/gedit/snippets/c@43@@43@.xml and the title-element in the xml-file also said c@43@@43@ - no wonder the default snippets wasn't loaded. There seems to be some kind of problem with character encodings - either with Ubuntu/Gnome or the snippet plugin.
Am I the only one who experience this behavior? I've been looking around the web, bugzilla and launchpad but noone else seem to be experiencing this.
It's easily solved by copying the original c++.xml to my local directory and renaming it and it's title-element to c@43@@43@. A bit annoying nonetheless.
I'm running Ubuntu Edgy Eft in English but with Swedish keyboard settings.
I looked in /usr/share/gedit-2/plugins/snippets and there was a c++.xml file there.
When I created a dummy snippet inside gedit the snippet was saved in ~/.gnome2/gedit/snippets/c@43@@43@.xml and the title-element in the xml-file also said c@43@@43@ - no wonder the default snippets wasn't loaded. There seems to be some kind of problem with character encodings - either with Ubuntu/Gnome or the snippet plugin.
Am I the only one who experience this behavior? I've been looking around the web, bugzilla and launchpad but noone else seem to be experiencing this.
It's easily solved by copying the original c++.xml to my local directory and renaming it and it's title-element to c@43@@43@. A bit annoying nonetheless.
I'm running Ubuntu Edgy Eft in English but with Swedish keyboard settings.