On Tue, 19 Oct 2010 12:35:23 +0100% Nick Treleaven <[email protected]> wrote:
> On Tue, 19 Oct 2010 14:01:09 +0400 > Eugene Arshinov <[email protected]> wrote: > > > I have a suggestion and want to know if it makes sense for anyone > > else. Currently if you turn on "XML tag autocompletion" in > > Preferences > Editor > Completions, a table template is > > automatically inserted after you write "<table>". It seems that > > the template is in Geany's source code and can't be changed. > > > > The suggestion is to make use of snippets: if "table" or "<table>" > > snippet is specified in [HTML] section of snippets.conf, the > > snippet is automatically inserted, otherwise <table> tag is just > > closed, like other tags now. This should also work for any other > > tag. > > > > Though, you can just define a snippet (say, "table") and use it when > > you want to insert a table. I doubt it's worth implementing the > > suggestion if everything it gives is the ability to type "<table>" > > instead of typing "table" and pressing complete-snippet keybinding. > > Perhaps the behaviour could be moved to the 'HTML chars' plugin, which > could be renamed HTML or Markup. Geany will have to notify the plugin about every char added. Won't it be too "heavy" to send a signal in this case? > > We could add a 'table' snippet. With the <> angle brackets you would > probably get the automatic closing tag before pressing tab to complete > the snippet. I think it's reasonable to remove "autotable" and add "table" snippet instead. Best regards, Eugene. _______________________________________________ Geany mailing list [email protected] http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
