[gedit-list] creating a new snippet language file
- From: Joachim Noreiko <jnoreiko yahoo com>
- To: gedit-list gnome org
- Subject: [gedit-list] creating a new snippet language file
- Date: Sat, 19 Aug 2006 18:13:46 +0100 (BST)
Hi.
I am trying to create a new set of snippets for
docbook.
I have created a file
/usr/share/gedit-2/plugins/snippets/docbook.xml
which is attached.
When I run gedit with debug output, I get this:
('Adding library (docbook):
/usr/share/gedit-2/plugins/snippets/docbook.xml',)
but there is no Docbook group shown in the Manage
Snippets dialog.
I can't see what's wrong with the file, so all I can
think of is that it's not working because Gedit
doesn't recognize docbook as a filetype (eg for syntax
highlighting).
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
<?xml version="1.0" encoding="UTF-8"?>
<snippets language="docbook">
<snippet id="menuchoice">
<text><![CDATA[<menuchoice><guimenu> </guimenu><guimenuitem> </guimenuitem></menuchoice>
]]></text>
<tag>menu</tag>
<description>menuchoice</description>
<accelerator />
</snippet>
</snippets>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]