Home Forums DITA and XMetaL Discussion Highlighting Text and Applying User Interface Style Works…Sometimes Reply To: Highlighting Text and Applying User Interface Style Works…Sometimes

Derek Read

Reply to: Highlighting Text and Applying User Interface Style Works…Sometimes

This is not you, this is a limitation in the software. It always occurs for because we do not have any code that attempts to preserve what is currently selected in this case. I assume we will try to correct this at some point.

There are two workarounds I can think of for the 5.1 and 5.5 releases:

Using the Insert Menu:
Assuming you have something like this:
[code]

text1 text2 text3

[/code]
1. Select each of text1, text2, text3 in turn and select “User Interface Control” from the Insert menu.
2. Place your insertion point before all of the first elements you just inserted and select Menu Cascade from the Insert menu. You should now have the following (carriage returns added for clarity here):
[code]

 
 
text1
text2
text3

[/code]
3. Select all of the items, press Ctrl+X to cut them.
4. Select all of the
elements inside and press Ctrl+V to paste over them. You will end up with this:
[code]

text1
text2
text3

[/code]

Using the Element List:
Assuming you have something like this:
[code]

textitem1 textitem2 textitem3

[/code]

1. Select each of textitem1, textitem2, textitem3 in turn and double click on the element in the Element List. You will then have this:
[code]

text1
text2
text3

[/code]
2. Select all of the elements you just inserted and then double click on in the Element List. You will then have this:
[code]

text1
text2
text3

[/code]

Reply

Products
Downloads
Support