Thank you very much!!! This works like a charm.

I'll have to look at the macro language a bit more.

Here is something else that I'd like to have automated. I often need to
set the class of an element (for CSS styling). It is a bit tedious to
type Ctrl+E cl Down Enter (type name) Enter. It would be really nifty if
I could hit, say, Esc K, and get a popup like with the Esc C "insert
character". I'd like to pre-populate it with my favorite choices so I
get autocomplete. Can I do that?

NB. I am in the middle of writing a book with XXE, using XHTML and CSS,
and I am very happy with it.

Cheers,

Cay

>> But Ins does nothing if I am at the end of a tt element and there is a
>> (text) block as its next sibling.
>>
>> Would it be possible to overload the semantics of Ins so that it does
>> the right thing in this situation?
> 
> We'll have to think about your suggestion. For now, please copy this
> very simple macro[*] to your customize.xxe, restart XXE, and you'll be done:
> 
> ---
>   <binding>
>     <keyPressed code="INSERT" />
>     <command name="insertTextAfterOrMoveDot" />
>   </binding>
> 
>   <command name="insertTextAfterOrMoveDot">
>     <macro>
>       <choice>
>         <command name="insertNode"
>                  parameter="textAfter[implicitElement]" />
>         <command name="moveDotTo"
>                  parameter="nextTextNode" />
>       </choice>
>     </macro>
>   </command>
> ---
> 
> ---
> [*] Could be improved to test if next sibling is really a text node.
> 
> 


-- 

Cay S. Horstmann | http://horstmann.com | mailto:cay at horstmann.com


Reply via email to