Re: Mallard plugin for gedit?



On Sun, 2011-06-12 at 23:11 +0200, Mario Blättermann wrote:
> Hi all,
> 
> I'm still missing a convenient way to write Mallard based XML files.
> Good old Conglomerate cannot handle Mallard, and it rests in peace
> anyway for a long time.
> 
> But there is the so-called "tag list" plugin for gedit. It provides a
> simple way to paste some kind of tags in text files. Currently HTML,
> XHTML, XUL and some other formats are supported. The plugin is part of
> the gedit-plugins package. Having a first look at it, I've seen that the
> list is parsed from XML definitions like this:
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <TagList xmlns="http://gedit.sourceforge.net/some-location";>
> <TagGroup _name="Latex — Tags" sort="true">
>   <Tag _name="Bibliography (cite)">
>     <Begin>\cite{ </Begin>
>     <End> } </End>
>   </Tag>
> 
>   <Tag _name="Bibliography (item)">
>     <Begin>\bibitem{ </Begin>
>     <End> }{} &#10;</End>
>   </Tag>
> 
> ...
> 
> (Example from the file for LaTeX)
> 
> 
> Would it be an advantage to have such a plugin? If yes, I would write it
> and send it to the gedit-plugin maintainers. Or knows anybody a better way?

There is a plugin for snippets, which provides auto-completion.  I think
there is room for improvement, but it is better to improve what we have
rather to start something from scratch.

So, you can take mallard.xml from
https://gitorious.org/~gpoo/mallard-gedit-snippets/mallard-gedit-snippets-gpoo and leave it under .../gedit/snippets[1].  Once you enable snippets plugin, you can set the page as Mallard and you can auto-complete.

-- 
Germán Póo-Caamaño
http://people.gnome.org/~gpoo/

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]