Add documentation for hideSelectionFromResult

Update to PR #2066

Add documentation and example for the `hideSelectionFromResult` function. Fix formatting issue with prettyprint.