Hi, Thanks for this information. I guess I should have read the manual.
Cheers Nick 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>

