16. copyChars
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 16. copyChars

Parameter syntax:

    [ implicit_selection ]? [ '[separateParagraphs]'|'[separateNodes]' ]?

Copies characters found in text selection or in selected nodes to system clipboard. Unlike command copy, this command only copies characters.

By default, characters coming from different textual nodes (i.e. text, comment, PI) are simply concatenated . The following options allow to change this behavior.

[separateParagraphs]

  Automatically add a line separator after the characters of each copied ``paragraph''.

  However, this automatic detection of paragraphs is easily puzzled by content models such as XHTML `li`, `div`, `td` (``flows'').

[separateNodes]

  Automatically add a line separator after the characters of each copied textual node.

Examples:

    copyChars [implicitElement]
    copyChars [implicitNode]
    copyChars [implicitElement][separateParagraphs]
    copyChars [separateNodes]

Prev | Up | Next
15. copyAsInclusion | Home | 17. copyImage