Detects a selected word in an open document. This was written for Rmarkdown writing, but it can be used for an open document. Using the addin is the most preferred means to call this function, albeit it can be called directly from the console.
definition of the selected text
1 2 3 4
## Not run: defineSelected() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.