Plugin_XMLSnippets

With this plugin, the user can add premade XML Snippets into the document.

Add for example the following to your config.xml:

<plugins>
{panel}
    <plugin name="XMLSnippets">
        <option name="block">
            <xhtml:h1 xmlns:xhtml="http://www.w3.org/1999/xhtml">hello</xhtml:h1>
            <xhtml:p xmlns:xhtml="http://www.w3.org/1999/xhtml">world</xhtml:p>
        </option>
        <option name="inline">
            <xhtml:a xmlns:xhtml="http://www.w3.org/1999/xhtml">hello</xhtml:a>
        </option>
        <option name="invalid">
            <foobar> jkjkj </foobar>
            <bar></bar>
        </option>
    </plugin>
{panel}
</plugins>

Then you will get a new button in the toolbar. If you click that, a dialog pops up, where you can choose the snippet you want to be inserted. Click ok, and BXE will insert that snippet (and take the appropriate steps to make it valid, except for the last one, which will be rejected anywhere)

TODO

Checking, if you can insert it, before building the chooser, so that you can't at all choose a snippet, which will be invalid anyway

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
These projects are supported by Liip AG