This is very helpful! I hadn't realized this capability existed. Might I ask a question? I placed the file you attached in the directory structure (I am on Windows 2000), but I get the following error when I start XMLMind:
File <path to mydocbook.xxe> invalid configuration file; in file <path to configuration file> at line 7, column 1: "xxe-config:docbook/docbook.xxe" invalid value for "location" attribute Any thoughts why this error might occur? Hussein Shafie wrote: > Nick Liebmann wrote: > >> I would like to be able to use Ctrl+B and Ctrl+I to set emphasis on the >> selected text (as bold and italics) > > > The basic idea in XXE is: > [1] Give the user a basic set of accelerators. > [2] Let the user add or redefine accelerators (almost) at will. See > http://www.xmlmind.com/xmleditor/_distrib/docs/configure/ch06s01.html. > > If you copy the attached file in your > <XXE_user_preferences_dir>/config/ (C:\Documents and > Settings\<user>\xxe\config\ on Windows), you'll get what you want for > *DocBook* documents (I supposed that you were talking about DocBook's > emphasis element). > > The attached file contains these 2 bindings: > > --- > <binding> > <keyPressed code="B" modifiers="ctrl shift" /> > <command name="docb.convertWithAttribute" > parameter="emphasis role bold" /> > </binding> > > <binding> > <keyPressed code="I" modifiers="ctrl shift" /> > <command name="convert" > parameter="[implicitElement] emphasis" /> > </binding> > --- > > Note that you'll need to use Ctrl-Shift-B and Ctrl-Shift-I instead of > Ctrl-B and Ctrl-I. > > It is possible to bind Ctrl-B to a command, but not Ctrl-I which is > used by the Edit menu. For consistency, I have specified Ctrl-Shift- > for both commands. > >------------------------------------------------------------------------ > ><?xml version='1.0' encoding='ISO-8859-1'?> ><configuration name="DocBook" > xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" > xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <include location="xxe-config:docbook/docbook.xxe"/> > > <binding> > <keyPressed code="B" modifiers="ctrl shift" /> > <command name="docb.convertWithAttribute" parameter="emphasis role bold" /> > </binding> > > <binding> > <keyPressed code="I" modifiers="ctrl shift" /> > <command name="convert" parameter="[implicitElement] emphasis" /> > </binding> ></configuration> > > >------------------------------------------------------------------------ > > >-- >XMLmind XML Editor Support List >xmleditor-support at xmlmind.com >http://www.xmlmind.com/mailman/listinfo/xmleditor-support >

